![]() |
Klang C++ 0.7.15
Language Reference (draft)
|
Language Guide / Controls and Parameters · Generated API signature Creates a MIDI modulation-wheel control. Add a modulation wheel to receive MIDI CC 1. The value runs from 0 to 127 and starts at 0. Scale it to the parameter you want to modulate. The label and range are built in. Add the control to the model’s Controls collection during setup. Pass ModWheel
klang::ModWheelBasic use
controls = { ModWheel() };Optional placement and size
Control::Size as the only argument. Its values are x, y, width, and height. Omit it for automatic layout.controls = { ModWheel({ 0, 0, 32, 96 }) };