Beispiel #1
0
        public void ExecuteMidiEventOneDelta(MetaStatus aMetaStatus, MidiSynthesizer aMidiSynthesizer, int aDivision)
        {
            int lDelta = aMetaStatus.GetDelta();

            if (midiEventAffecterListDictionary.ContainsKey(lDelta))
            {
                for (int i = 0; i < midiEventAffecterListDictionary[lDelta].Count; i++)
                {
                    midiEventAffecterListDictionary[lDelta][i].Execute(aMidiSynthesizer, aDivision, aMetaStatus.GetBpm());
                }
            }
        }
Beispiel #2
0
 public void ExecuteMidiEventSeek(MetaStatus aMetaStatus, MidiSynthesizer aMidiSynthesizer, int aDivision, int aDelta)
 {
     for (int i = 0; i < aDelta; i++)
     {
         if (midiEventAffecterListDictionary.ContainsKey(i))
         {
             for (int j = 0; j < midiEventAffecterListDictionary[i].Count; j++)
             {
                 if (midiEventAffecterListDictionary[i][j].GetType().ToString() != "LayerMiddle.Sound.Controller.Midi.Affecter.MidiEventAffecterNoteOn")
                 {
                     midiEventAffecterListDictionary[i][j].Execute(aMidiSynthesizer, aDivision, aMetaStatus.GetBpm());
                 }
             }
         }
     }
 }
 public double GetBpm()
 {
     return(metaStatus.GetBpm());
 }