private void processTrigger(int[] side, int[] v) {
		
		p.println("side "+side);
		int key = v[1];
		int note = v[2];
		int depth = v[3];
		int channel = 0;
		if (key == -1) {
			// note off
			p.println("stop sound 0");
			if (side[0] != -1) {
				p.println("stop sound 1");
				if(side[1] > 1){
					channel = 1;
				} else {
					channel = 0;
				}
				midi.noteOff(channel, pitches[side[1]][side[2]], -1);
				side[0] = -1;
			}
			return;
		} else if (side[0] != -1 && key == side[1] && note == side[2]) {
			p.println("continue sound 1");
			return;
		} else {
			if (side[0] != -1){
				p.println("stop sound befor start new ");
				if(side[1] > 1){
					channel = 1;
				} else {
					channel = 0;
				}
				midi.noteOff(channel, pitches[side[1]][side[2]], -1);
				side[0] = -1;
			} else {
				
			}
			p.println("start new sound 1");
			if(key > 1){
				channel = 1;
			} else {
				channel = 0;
			}
			midi.noteOn(channel, pitches[key][note], -1);
			side[0] = v[0];
			side[1] = v[1];
			side[2] = v[2];
			side[3] = v[3];
		}

	}