Enum Event Data
pub enum EventData {
Show 14 variants
ParameterValueScoped {
id: ParameterId,
target: NoteTarget,
value: f64,
},
ParameterModulationScoped {
id: ParameterId,
target: NoteTarget,
amount: f64,
},
NoteOffScoped {
target: NoteTarget,
velocity: f32,
},
NoteChoke {
target: NoteTarget,
},
NoteEnd {
target: NoteTarget,
},
NoteExpression {
target: NoteTarget,
expression: NoteExpression,
value: f64,
},
NoteWithId {
id: NoteId,
phase: NotePhase,
channel: u8,
key: u8,
velocity: f32,
},
ParameterGesture {
id: ParameterId,
phase: ParameterGesturePhase,
},
ParameterModulation {
id: ParameterId,
amount: f32,
},
ParameterValue {
id: ParameterId,
value: f32,
},
NoteOn {
channel: u8,
key: u8,
velocity: f32,
},
NoteOff {
channel: u8,
key: u8,
velocity: f32,
},
Midi(MidiMessage),
Ump(UmpPacket),
}Expand description
Borrowed events never own heap data. Parameter values use physical units.
Variants§
ParameterValueScoped
Physical value for a matching scope within a routed note input endpoint. Full f64 precision; receiver owns voice/global precedence, ranges, state and smoothing. Even an all-wildcard target remains endpoint-scoped.
ParameterModulationScoped
Signed replacement modulation for a matching endpoint scope, separate from saved base state. Full finite f64 range; receiver owns application.
NoteOffScoped
Key release for a matching scope within a routed endpoint. Velocity is finite 0..=1; receiver owns matching, release envelope and voice lifetime.
NoteChoke
Immediate choke of matching voices; no velocity or automatic allocation. Receiver DSP defines its actual termination/fade policy.
Fields
target: NoteTargetNoteEnd
Processor-to-controller completion notification for matching voices on the originating note INPUT endpoint. This is distinct from key release and choke. The carrier offset only orders delivery, not voice termination time. Receivers own identity reuse and lifecycle bookkeeping.
Fields
target: NoteTargetNoteExpression
Sample-timed standard expression with full f64 value and wildcard target. No voice matching, base-state edit, unit conversion or reset is inferred.
NoteWithId
Concrete channel/key note with explicit identity. On velocity zero remains an On; receivers own voice matching/lifetime, duplication and release policy.
ParameterGesture
An explicit global parameter edit boundary; receivers declare support.
ParameterModulation
Global physical-unit modulation amount, independent of saved base value. Amount replaces the prior modulation amount; consumer DSP owns combining, clipping, smoothing, persistence and reset policy. No per-note scope.
ParameterValue
NoteOn
NoteOff
Midi(MidiMessage)
Validated MIDI 1.0 short message; adapters preserve sample timing.
Ump(UmpPacket)
One framed UMP, preserving numeric words and sample timing. Message semantics and negotiated protocol are processor/adapter responsibilities.