Musical Instrument Shield Note Strike

Hi, so my project is essentially a musical instrument that when you touch the keys or a combination of keys, using a capacitive sensor, it will play a note. However, my problem is that if I want to press and hold a note, it will play the note, and then re attack the note after a certain time with the given velocity. Is there any way I can stop this?
Here is my code:

#include<CapacitiveSensor.h>
#include <SoftwareSerial.h>

CapacitiveSensor   cs_11_2 = CapacitiveSensor(11,2); //resistor from 11 to touch sensor, which is then connected to 2
CapacitiveSensor   cs_11_5 = CapacitiveSensor(11,5);
CapacitiveSensor   cs_11_6 = CapacitiveSensor(11,6);
CapacitiveSensor   cs_11_7 = CapacitiveSensor(11,7);
CapacitiveSensor   cs_11_8 = CapacitiveSensor(11,8);
CapacitiveSensor   cs_11_9 = CapacitiveSensor(11,9);
CapacitiveSensor   cs_11_10 = CapacitiveSensor(11,10);

SoftwareSerial mySerial(2, 3); // RX, TX

byte C1 = 0; //The MIDI note value to be played
byte C2 = 0;
byte C3 = 0;
byte Cs1 = 0;
byte Cs2 = 0;
byte Cs3 = 0;
byte D1 = 0;
byte D2= 0;
byte D3 = 0;
byte Ds1 = 0;
byte Ds2 = 0;
byte Ds3 = 0;
byte E1 = 0;
byte E2 = 0;
byte E3 = 0;
byte F1 = 0;
byte F2 = 0;
byte F3 = 0;
byte Fs1 = 0;
byte Fs2 = 0;
byte Fs3 = 0;
byte G1 = 0;
byte G2 = 0;
byte G3 = 0;
byte Gs1 = 0;
byte Gs2 = 0;
byte Gs3 = 0;
byte A01 = 0;
byte A02 = 0;
byte A03 = 0;
byte As1 = 0;
byte As2 = 0;
byte As3 = 0;
byte BO1= 0;
byte BO2 = 0;
byte BO3 = 0;
byte resetMIDI = 4; //Tied to VS1053 Reset line
byte ledPin = 13; //MIDI traffic inidicator
int  instrument = 0;
int threshold = 100;

void setup() {
  Serial.begin(57600);

  //Setup soft serial for MIDI control
  mySerial.begin(31250);

  //Reset the VS1053
  pinMode(resetMIDI, OUTPUT);
  digitalWrite(resetMIDI, LOW);
  delay(100);
  digitalWrite(resetMIDI, HIGH);
  delay(100);
  talkMIDI(0xB0, 0x07, 120); //0xB0 is channel message, set channel volume to near max (127)
}

void loop() {
long start = millis();
long total0= cs_11_2.capacitiveSensor(30);
long total1= cs_11_5.capacitiveSensor(30);
long total2= cs_11_6.capacitiveSensor(30);
long total3= cs_11_7.capacitiveSensor(30);
long total4= cs_11_8.capacitiveSensor(30);
long total5= cs_11_9.capacitiveSensor(30);
long total6= cs_11_10.capacitiveSensor(30);


  Serial.println("Melodic Sounds");
  talkMIDI(0xB0, 0, 0x79); //Bank select Melodic

  //Change to different instrument
  for(instrument = 66 ; instrument < 67 ; instrument++) {

    Serial.print(" Instrument: ");
    Serial.println(instrument, DEC);

    talkMIDI(0xC0, instrument, 0); //Set instrument number. 0xC0 is a 1 data byte command

    //Play notes from F#-0 (30) to F#-5 (90):
    for (C1 =60 ; C1 < 61 ; C1++) {
      Serial.print("N:");
      Serial.println(C1, DEC);
      Serial.print("\t");
      Serial.print(total0);                  
      Serial.print("\t");
      Serial.print(total1);
      Serial.print("\t");
      Serial.print(total2);
      Serial.print("\t");
      Serial.print(total3);
      Serial.print("\t");
      Serial.print(total4);
      Serial.print("\t");
      Serial.print(total5);
      Serial.print("\t");
      Serial.print(total6);
      Serial.print("\t");
        
    }
    for (C2 =72; C2 < 73 ; C2++) {
      Serial.print("N:");
      Serial.println(C1, DEC);
      Serial.print("\t");
      Serial.print(total0);                  
      Serial.print("\t");
      Serial.print(total1);
      Serial.print("\t");
      Serial.print(total2);
      Serial.print("\t");
      Serial.print(total3);
      Serial.print("\t");
      Serial.print(total4);
      Serial.print("\t");
      Serial.print(total5);
      Serial.print("\t");
      Serial.print(total6);
      Serial.print("\t");
    }
    
      if (total0> threshold && total1> threshold && total2> threshold && total3> threshold) {
      
      //Note on channel 1 (0x90), some note value (note), middle velocity (0x45):
      noteOn(0, C1, 1);//INCORRECT NOTE, JUST TESTER 
   
      }
     else if (total1>threshold && total2>threshold && total3>threshold && total5>threshold){
      noteOn(0, C2, 60);
     }
      else {
      //Turn off the note with a given off/release velocity
      noteOff(0, C1, 60);
      noteOff(0,C2,60);
      }
    }




}

//Send a MIDI note-on message.  Like pressing a piano key
//channel ranges from 0-15
void noteOn(byte channel, byte note, byte attack_velocity) {
  talkMIDI( (0x90 | channel), note, attack_velocity);
}

//Send a MIDI note-off message.  Like releasing a piano key
void noteOff(byte channel, byte note, byte release_velocity) {
  talkMIDI( (0x80 | channel), note, release_velocity);
}

//Plays a MIDI note. Doesn't check to see that cmd is greater than 127, or that data values are less than 127
void talkMIDI(byte cmd, byte data1, byte data2) {
  digitalWrite(ledPin, HIGH);
  mySerial.write(cmd);
  mySerial.write(data1);

  //Some commands only have one data byte. All cmds less than 0xBn have 2 data bytes 
  //(sort of: http://253.ccarh.org/handout/midiprotocol/)
  if( (cmd & 0xF0) <= 0xB0)
    mySerial.write(data2);

  digitalWrite(ledPin, LOW);
}

Thank you very much.

Your code includes so many nested for loops, that some repetition (re-attack) is very likely.