AUDIO
Source snapshot · 11 November 2026

API reference / ravet_foundation::EventData

Enum EventData 

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.

Fields

§target: NoteTarget
§value: f64
§

ParameterModulationScoped

Signed replacement modulation for a matching endpoint scope, separate from saved base state. Full finite f64 range; receiver owns application.

Fields

§target: NoteTarget
§amount: f64
§

NoteOffScoped

Key release for a matching scope within a routed endpoint. Velocity is finite 0..=1; receiver owns matching, release envelope and voice lifetime.

Fields

§target: NoteTarget
§velocity: f32
§

NoteChoke

Immediate choke of matching voices; no velocity or automatic allocation. Receiver DSP defines its actual termination/fade policy.

Fields

§target: NoteTarget
§

NoteEnd

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: NoteTarget
§

NoteExpression

Sample-timed standard expression with full f64 value and wildcard target. No voice matching, base-state edit, unit conversion or reset is inferred.

Fields

§target: NoteTarget
§expression: NoteExpression
§value: f64
§

NoteWithId

Concrete channel/key note with explicit identity. On velocity zero remains an On; receivers own voice matching/lifetime, duplication and release policy.

Fields

§channel: u8
§key: u8
§velocity: f32
§

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.

Fields

§amount: f32
§

ParameterValue

Fields

§value: f32
§

NoteOn

Fields

§channel: u8
§key: u8
§velocity: f32
§

NoteOff

Fields

§channel: u8
§key: u8
§velocity: f32
§

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.

Trait Implementations§

§

impl Clone for EventData

§

fn clone(&self) -> EventData

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Copy for EventData

§

impl Debug for EventData

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl PartialEq for EventData

§

fn eq(&self, other: &EventData) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · §

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
§

impl StructuralPartialEq for EventData

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.