void sendNote(int channel, int pitch, int velocity, int noteLength) {
		if(isThreadRunning()) {
			midi.sendNoteOn(channel, pitch, velocity);
			MidiNote note(channel, pitch, noteLength);
			lock();
			frontNotes.push_back(note);
			unlock();
		}
	}
 Note(ofxMidiOut * midi, int pich, int velo, int channel):
 mMidi(midi), mCh(channel), mPich(pich)
 {
     mMidi->sendNoteOn(channel, pich, velo);
 }