Klang C++ 0.7.15
Language Reference (draft)
Loading...
Searching...
No Matches
ModWheel

Language Guide / Controls and Parameters · Generated API signature

ModWheel

klang::ModWheel

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.

Basic use

Add the control to the model’s Controls collection during setup.

controls = { ModWheel() };

Optional placement and size

Pass 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 }) };