public void SetKnobRingState(int knob, KnobRingStyle style, int value) { int midiValue = style switch { KnobRingStyle.Single => value, KnobRingStyle.Trim => value + 16, KnobRingStyle.Fan => value + 32, KnobRingStyle.Spread => value + 48, _ => 0 }; SendMidiMessage(0xb0, (byte)(0x2f + knob), (byte)midiValue); } }
public void SetKnobRingStyle(int knob, KnobRingStyle style) => SendMidiMessage(0xb0, (byte)knob, (byte)style);