Skip to main content

Modulatable

Trait Modulatable 

Source
pub trait Modulatable<T: Transcendental>: Effect<T> {
    // Required methods
    fn num_mod_inputs(&self) -> usize;
    fn apply_modulation(&mut self, index: usize, value: T);
    fn modulation_depth(&self, index: usize) -> f32;
    fn set_modulation_depth(&mut self, index: usize, depth: f32);
}
Expand description

Effect with modulation

Required Methods§

Source

fn num_mod_inputs(&self) -> usize

Number of modulation inputs

Source

fn apply_modulation(&mut self, index: usize, value: T)

Apply modulation

Source

fn modulation_depth(&self, index: usize) -> f32

Modulation depth

Source

fn set_modulation_depth(&mut self, index: usize, depth: f32)

Set modulation depth

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§