pub struct NoteEchoConfig {
pub repeats: u8,
pub feedback_count: u8,
pub time_offset: TickTime,
pub fallback_gate: TickTime,
pub velocity_decay: u8,
pub pitch_offset: i8,
pub scale_snap: NoteEchoScaleSnap,
pub channel_policy: NoteEchoChannelPolicy,
pub include_source: bool,
}Expand description
Configuration for the NoteEchoPlayer echo/delay transform.
Fields§
§repeats: u8Number of echo repeats to emit per source note.
feedback_count: u8Cap on the number of repeats actually rendered (0 means no cap).
time_offset: TickTimeTime delay added per repeat.
fallback_gate: TickTimeNote length used when no matching note-off is found in the input.
velocity_decay: u8Velocity reduction applied per repeat.
pitch_offset: i8Semitone pitch shift applied per repeat before snapping.
scale_snap: NoteEchoScaleSnapScale-snapping policy for shifted pitches.
channel_policy: NoteEchoChannelPolicyChannel-assignment policy for echoes.
include_source: boolWhether the original input events are included in the render.
Implementations§
Source§impl NoteEchoConfig
impl NoteEchoConfig
Sourcepub fn new(time_offset: TickTime) -> Self
pub fn new(time_offset: TickTime) -> Self
Creates a default single-repeat config delayed by time_offset.
Sourcepub fn repeat_count(&self) -> u8
pub fn repeat_count(&self) -> u8
Returns the effective number of repeats after applying the
feedback_count cap.
Trait Implementations§
Source§impl Clone for NoteEchoConfig
impl Clone for NoteEchoConfig
Source§fn clone(&self) -> NoteEchoConfig
fn clone(&self) -> NoteEchoConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NoteEchoConfig
impl Debug for NoteEchoConfig
impl Eq for NoteEchoConfig
Source§impl PartialEq for NoteEchoConfig
impl PartialEq for NoteEchoConfig
Source§fn eq(&self, other: &NoteEchoConfig) -> bool
fn eq(&self, other: &NoteEchoConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NoteEchoConfig
Auto Trait Implementations§
impl Freeze for NoteEchoConfig
impl RefUnwindSafe for NoteEchoConfig
impl Send for NoteEchoConfig
impl Sync for NoteEchoConfig
impl Unpin for NoteEchoConfig
impl UnsafeUnpin for NoteEchoConfig
impl UnwindSafe for NoteEchoConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more