/// <summary> This is the background thread responsible for playing the SingleBeats. </summary> private void ThreadEntryPrt() { while (_running) { //Get next MIDI Command, waiting until it is time to play it. SimpleMidiMessage next = _source.GetNextMidiCommand(block: true); Winmm.midiOutShortMsg(_handle, next.Data); //Send MIDI Comand to winmm } }
Internal.SimpleMidiMessage IOrchestra.NextToPlay(bool block) { return(_beatScheduler.GetNextMidiCommand(block)); }