コード例 #1
0
	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();
		}
	}
コード例 #2
0
 Note(ofxMidiOut * midi, int pich, int velo, int channel):
 mMidi(midi), mCh(channel), mPich(pich)
 {
     mMidi->sendNoteOn(channel, pich, velo);
 }