Repository navigation
v0.3.0
chardraw
- Stepped parameters step. A parameter the plugin marks
CLAP_PARAM_IS_STEPPED(its "params" message now carriesstepped) moves
in whole values only: a drag divides the travel evenly between the steps,
an arrow key or a wheel notch moves one step, typed values truncate as CLAP does,
and a stepped toggle is on only at its top step. Knobs show a notch at each
step (ui.detents, on by default, up to 32 steps). - Typed values are a bare number in the smaller unit shown. On a knob
showing "300 ms", typing 300 now means 300 ms, not 300 s.
Ui::Format::typedScalesets the unit (1000 types seconds as ms, 100 a
0..1 range as a percent), and a value opens for typing in it. Text with a
unit ("2k", "1.2 s", "40 %") isn't taken.
Changes in the starters
- A stepped Waveform (saw, square, triangle) in both instrument starters.
- Each unit's text is in
params.h:value_to_text,text_to_valueand
the chardraw interface share it, so a typed number reads the same in the
interface and the host.text_to_valuetakes a bare number in the smaller
unit, or the textvalue_to_textwrites, with '.' or ',' as the decimal
point whatever the host's locale. It no longer reads "2k" or a unit in
another case ("khz").
Upgrading from v0.2.1
Set GIT_TAG v0.3.0, then:
- Rename
isDarkMode:View::darkModeandplatform::darkModeare now
isDarkMode(ui.theme.withColors (isDarkMode)). - Typed values in a format with units: set
typedScaleto the unit shown
(e.g. 100 for a 0..1 percent), or typing stays in the raw value. Typed text
with anything after the number is no longer read. - Your
plugin.cppis your own copy, so the starters' changes don't arrive
with the tag. To get them, copy the newparams.htext functions and point
value_to_textandtext_to_valueat them, as the starters'plugin.cpp
does now. To make a parameter step, sendstepped(a JSON bool, not 1) in
your "params" message.
Known issues
- The instrument web page's knobs step but show no detent notches; the effect
web page doesn't handlesteppedyet (it has no stepped parameter). Web pages
have no typed entry.