Ejemplo n.º 1
0
 private void SilentProcess(int amount)
 {
     if (amount <= 0)
     {
         return;
     }
     while (_eventIndex < _synthData.Length && _synthData[_eventIndex].Delta < (CurrentTime + amount))
     {
         if (_synthData[_eventIndex].Event.Command != MidiEventTypeEnum.NoteOn)
         {
             var m = _synthData[_eventIndex];
             Synth.ProcessMidiMessage(m.Event);
         }
         _eventIndex++;
     }
     CurrentTime += amount;
 }