Skip to content

v0.3.0

Choose a tag to compare

@charCulbert charCulbert released this 21 Oct 11:39
· 15 commits to main since this release

chardraw

  • Stepped parameters step. A parameter the plugin marks
    CLAP_PARAM_IS_STEPPED (its "params" message now carries stepped) 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::typedScale sets 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_value and
    the chardraw interface share it, so a typed number reads the same in the
    interface and the host. text_to_value takes a bare number in the smaller
    unit, or the text value_to_text writes, 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::darkMode and platform::darkMode are now
    isDarkMode (ui.theme.withColors (isDarkMode)).
  • Typed values in a format with units: set typedScale to 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.cpp is your own copy, so the starters' changes don't arrive
    with the tag. To get them, copy the new params.h text functions and point
    value_to_text and text_to_value at them, as the starters' plugin.cpp
    does now. To make a parameter step, send stepped (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 handle stepped yet (it has no stepped parameter). Web pages
    have no typed entry.