示例#1
0
        internal static MidiMessage FromOscPacket(OscPacket oscPacket)
        {
            var message = (OscMessage)oscPacket;

            return(new MidiMessage(MidiNote.FromInteger((int)message[0]), (int)message[1]));
        }
示例#2
0
 private MidiMessage(MidiNote midiNote, int velocity)
 {
     MidiNote = midiNote;
     Velocity = velocity;
 }