pub struct RillProgram<T: Transcendental> { /* private fields */ }Expand description
A compiled program ready to run inside the rill graph.
Implementations§
Source§impl<T: Transcendental> RillProgram<T>
impl<T: Transcendental> RillProgram<T>
Sourcepub fn param_index(&self, name: &str) -> Option<usize>
pub fn param_index(&self, name: &str) -> Option<usize>
Index of a named parameter, if present.
Sourcepub fn set_param(&mut self, idx: usize, value: f64)
pub fn set_param(&mut self, idx: usize, value: f64)
Set a parameter by index (clamped to its range). RT-safe (plain store).
Sourcepub fn params_meta(&self) -> &[ParamDef]
pub fn params_meta(&self) -> &[ParamDef]
Metadata for all parameters (name, default, range).
Sourcepub fn process_reference(
&mut self,
input: Option<&[T]>,
output: &mut [T],
) -> ProcessResult<()>
pub fn process_reference( &mut self, input: Option<&[T]>, output: &mut [T], ) -> ProcessResult<()>
Reference implementation: the MVP per-sample interpreter. Used by tests as a numerical oracle; not the production path.
Trait Implementations§
Source§impl<T: Transcendental> Algorithm<T> for RillProgram<T>
impl<T: Transcendental> Algorithm<T> for RillProgram<T>
Source§fn process(
&mut self,
input: Option<&[T]>,
output: &mut [T],
) -> ProcessResult<()>
fn process( &mut self, input: Option<&[T]>, output: &mut [T], ) -> ProcessResult<()>
Process one block of signal. Read more
Source§fn apply_command(&mut self, _value: T)
fn apply_command(&mut self, _value: T)
Receive a real-time command value from the control path. Read more
Source§fn metadata(&self) -> AlgorithmMetadata
fn metadata(&self) -> AlgorithmMetadata
Descriptive metadata (defaults to empty).
Auto Trait Implementations§
impl<T> !RefUnwindSafe for RillProgram<T>
impl<T> !UnwindSafe for RillProgram<T>
impl<T> Freeze for RillProgram<T>
impl<T> Send for RillProgram<T>
impl<T> Sync for RillProgram<T>
impl<T> Unpin for RillProgram<T>where
T: Unpin,
impl<T> UnsafeUnpin for RillProgram<T>
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