480
//---------------------------------------------------------
482
//---------------------------------------------------------
484
void EventCanvas::startPlayEvent(int note, int velocity, int port, int channel)
486
if (MusEGlobal::debugMsg)
487
printf("EventCanvas::startPlayEvent %d %d %d %d\n", note, velocity, port, channel);
488
playedPitch = note + track()->transposition;
491
MusECore::MidiPlayEvent e(0, port, channel, 0x90, playedPitch, velocity);
492
MusEGlobal::audio->msgPlayMidiEvent(&e);
495
void EventCanvas::startPlayEvent(int note, int velocity)
497
int port = track()->outPort();
498
int channel = track()->outChannel();
499
startPlayEvent(note, velocity, port, channel);
502
//---------------------------------------------------------
504
//---------------------------------------------------------
506
void EventCanvas::stopPlayEvent()
508
int port = track()->outPort();
509
int channel = track()->outChannel();
512
MusECore::MidiPlayEvent ev(0, port, channel, 0x90, playedPitch, 0);
513
MusEGlobal::audio->msgPlayMidiEvent(&ev);
479
517
} // namespace MusEGui