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); }
public static OSCValue Midi(OSCMidi value) { return(new OSCValue(OSCValueType.Midi, value)); }
public static OSCValue Midi(OSCMidi value) => new OSCValue(OSCValueType.Midi, value);