Esempio n. 1
0
        /// <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
            }
        }
Esempio n. 2
0
 Internal.SimpleMidiMessage IOrchestra.NextToPlay(bool block)
 {
     return(_beatScheduler.GetNextMidiCommand(block));
 }