pub struct NoteEchoPlayer {
pub config: NoteEchoConfig,
}Expand description
Renders rhythmic note echoes from an input event stream per a
NoteEchoConfig.
Fields§
§config: NoteEchoConfigThe echo configuration driving this player.
Implementations§
Source§impl NoteEchoPlayer
impl NoteEchoPlayer
Sourcepub fn new(config: NoteEchoConfig) -> Self
pub fn new(config: NoteEchoConfig) -> Self
Creates a player from config.
Sourcepub fn render(&self, input: &[MidiEvent]) -> NoteEchoRender
pub fn render(&self, input: &[MidiEvent]) -> NoteEchoRender
Renders echoes for input, returning the emitted events and traces.
Sourcepub fn freeze(&self, input: &[MidiEvent]) -> NoteEchoRender
pub fn freeze(&self, input: &[MidiEvent]) -> NoteEchoRender
Renders input and returns the result; an alias for
render reading as a commit-to-output step.
Trait Implementations§
Source§impl Clone for NoteEchoPlayer
impl Clone for NoteEchoPlayer
Source§fn clone(&self) -> NoteEchoPlayer
fn clone(&self) -> NoteEchoPlayer
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 NoteEchoPlayer
impl Debug for NoteEchoPlayer
impl Eq for NoteEchoPlayer
Source§impl PartialEq for NoteEchoPlayer
impl PartialEq for NoteEchoPlayer
Source§fn eq(&self, other: &NoteEchoPlayer) -> bool
fn eq(&self, other: &NoteEchoPlayer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NoteEchoPlayer
Auto Trait Implementations§
impl Freeze for NoteEchoPlayer
impl RefUnwindSafe for NoteEchoPlayer
impl Send for NoteEchoPlayer
impl Sync for NoteEchoPlayer
impl Unpin for NoteEchoPlayer
impl UnsafeUnpin for NoteEchoPlayer
impl UnwindSafe for NoteEchoPlayer
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