pub struct FmVoice { /* private fields */ }Expand description
Tier A two-operator FM (modulator → carrier index).
Implementations§
Source§impl FmVoice
impl FmVoice
pub const fn new() -> Self
Sourcepub fn start(
&mut self,
carrier_hz: u32,
mod_ratio_cent: u16,
mod_depth_q8: u8,
sample_rate_hz: u32,
)
pub fn start( &mut self, carrier_hz: u32, mod_ratio_cent: u16, mod_depth_q8: u8, sample_rate_hz: u32, )
mod_ratio_cent is mod/carrier ratio × 100 (e.g. 200 = 2.00).
pub fn stop(&mut self)
pub fn is_active(&self) -> bool
pub fn next_sample(&mut self) -> Option<i8>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FmVoice
impl RefUnwindSafe for FmVoice
impl Send for FmVoice
impl Sync for FmVoice
impl Unpin for FmVoice
impl UnsafeUnpin for FmVoice
impl UnwindSafe for FmVoice
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