Example #1
0
        public static bool ToMidi(this OSCMessage message, out OSCMidi value)
        {
            var values = message.GetValues(OSCValueType.Midi);

            if (values.Length > 0)
            {
                var firstValue = values[0];

                value = firstValue.MidiValue;
                return(true);
            }

            value = default(OSCMidi);
            return(false);
        }
Example #2
0
 public static OSCValue Midi(OSCMidi value)
 {
     return(new OSCValue(OSCValueType.Midi, value));
 }
Example #3
0
 public static OSCValue Midi(OSCMidi value) => new OSCValue(OSCValueType.Midi, value);