コード例 #1
0
 public static void PlayNext(MidiMessage p_message, MidiSource p_source)
 {
     p_message.noteSource = p_source;
     messOutBuff.Add(p_message);
     if (p_message.getOwnerTrack() != null)
     {
         p_source.trackPPQAbsolutePos = p_message.getAbsTimeStamp(); //this sets write head for ppq
     }
 }
コード例 #2
0
 public static void PlayNext(MidiMessage p_message, MidiSource p_source)
 {
     if (Midi.debugLevel > 4)
     {
         Debug.Log("Add note to play " + p_message.getByteOne() + " " + p_message.getByteTwo() + " at time: " + p_message.getAbsTimeStamp());
     }
     p_message.noteSource = p_source;
     messOutBuff.Add(p_message);
     if (p_message.getOwnerTrack() != null)
     {
         p_source.setTrackPPQAbsolutePos(p_message.getAbsTimeStamp()); //this sets write head for ppq
     }
 }