Exemplo n.º 1
0
        public void Start(MidiFile file)
        {
            this.file = file;

            bail = false;

            ticksPerQuarterNote = file.TicksPerQuarterNote;
            currentTrackIndex   = 0;
            nextEventIndex      = 0;

            loopsRemaining = 0;
            loopStartBeat  = 1;
            loopStartTick  = 0;
            loopEndBeat    = 1;
            loopEndTick    = 0;

            currentTick = 0;

            //SetMicroSecondsPerQuarter(500000);
            //SetSpeed(file.ImuseHeader?.Speed ?? 128);

            nextEventTick = GetNextEventTick();

            tickInBeat  = 0;
            currentBeat = 1;

            status = SequencerStatus.On;
        }
Exemplo n.º 2
0
 public void Stop()
 {
     status = SequencerStatus.Off;
     bail   = true;
 }