Skip to content

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 01 Oct 13:52
· 215 commits to main since this release

Added

  • Notes with IDs and per-note expression. EventData::NoteOn and EventData::NoteOff carry a
    Note (channel, key, velocity in 0..=1, and an optional ID that tells overlapping notes on
    one key apart), and EventData::Expression a NoteExpression of the volume, pan, tuning,
    vibrato, expression, brightness or pressure of a note. CLAP plugins receive and send them as
    CLAP note and note expression events, and VST3 plugins as note events with their IDs, note
    expression values and poly pressure. Ports and formats that take only MIDI receive the MIDI
    1.0 form of notes and pressure (EventData::to_midi); other expressions do not reach them.
  • Plugin output in a format's note events arrives as notes and expressions, at the next slot and
    at the application. It used to be counted in diagnostics as having no MIDI 1.0 form.
  • Process::begin_render runs once as a render starts, before the latency and tail are read;
    its default does nothing.
  • plughost re-exports RenderError, so applications match Error::Render without depending on
    plughost-core.
  • EventPortInfo::note_expression and EventPortInfo::mpe tell whether notes keep their IDs
    and expressions arrive at a port (the CLAP dialect, or a VST3 controller's
    INoteExpressionController) and whether it takes MPE (CLAP's MIDI dialect with MPE, or an
    Audio Unit's supportsMPE).

Changed

  • MidiEvent is now Event, and MidiData is EventData. MidiData::Channel is
    EventData::Midi and MidiEvent::channel is Event::midi; note_on, note_off,
    control_change, sysex and on_port still build MIDI 1.0 events. Event is no longer
    Eq, and bytes and byte_count are gone: match on EventData, or use to_midi for
    a channel message's bytes. Move an event with at(offset) instead of struct update syntax.
  • VST3 plugins' notes and poly pressure arrive as EventData::NoteOn, NoteOff and pressure
    expressions instead of MIDI. to_midi gives the MIDI 1.0 messages that used to arrive.
  • MIDI input reaches plugins as before, and MIDI poly pressure now also reaches CLAP ports that
    take no MIDI, as pressure. MPE is MIDI 1.0 and is delivered as MIDI; it is not converted into
    notes with IDs or note expressions.
  • A chain's latency holds until it is prepared again or reset. A latency a VST3 plugin announces
    with kLatencyChanged, or an Audio Unit's changed latency, no longer stops processing or a
    render: the plugin keeps the latency it was activated with, and take_changes reports
    PluginTiming::latency_changed until reprepare or reset applies it. Many plugins delay by
    the new latency at once, so a render does not start while a change is pending: it fails with
    the new RenderError::LatencyNotApplied. Renders used to fail with
    RenderError::LatencyChanged when the read latency changed.
  • The helper reads VST3 latency and tail, which VST3 assigns to the UI thread, on its main thread
    instead of after every block on the processing thread; CLAP tails are read there too, and after
    a block in which the plugin reported a change. PluginTiming has the new field
    latency_changed.
  • TailPolicy::Reported plans the tail reported when the render starts, and a tail reported
    later no longer fails the render. RenderError::TailChanged is gone.
  • Types that later versions extend are #[non_exhaustive], so additions do not break
    applications again. Matches on Layout, PluginFormat, PluginKind, TailPolicy,
    RenderStatus, StatePurpose, PresetMetadata, FactoryPresetId, ParameterEvent and
    DiagnosticSeverity need a wildcard arm. Build RenderOptions, Transport, BlockContext,
    Timeouts, PluginInfo, EventPortInfo, AudioBusInfo, Capabilities,
    CapabilityReport, PluginTiming, ParameterInfo, ParameterFlags, ParameterDetails,
    FactoryPreset and PresetInfo with their new new constructors (or default) and then
    set their public fields, instead of struct literals: for example
    RenderOptions::new(TailPolicy::Reported, 0.0), Transport::new(position, true) with
    transport.tempo = Some(120.0), BlockContext::new(frames).with_transport(transport), and
    let mut timeouts = Timeouts::default(); timeouts.process = duration;. Rendered,
    RenderProgress and Delivery are read only.
  • In plughost-formats, HostedPlugin::latency and tail are HostedPlugin::timing, which
    reads the timing on the plugin's thread, and BlockProcessor::latency and tail are
    BlockProcessor::timing, which returns what was last read there without calling the plugin.