pub struct Synth {
pub ext_filter: ExternalFilter,
pub filter: Filter,
pub voices: [Voice; 3],
pub ext_in: i32,
}Fields§
§ext_filter: ExternalFilter§filter: Filter§voices: [Voice; 3]§ext_in: i32Implementations§
Source§impl Synth
impl Synth
pub fn new(chip_model: ChipModel) -> Self
pub fn syncable_voice(&self, i: usize) -> Syncable<&Voice>
pub fn syncable_voice_mut(&mut self, i: usize) -> Syncable<&mut Voice>
pub fn clock(&mut self)
pub fn clock_delta(&mut self, delta: u32)
pub fn output(&self) -> i16
pub fn reset(&mut self)
pub fn read(&self, reg: u8, bus_value: u8) -> u8
pub fn write(&mut self, reg: u8, value: u8)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Synth
impl RefUnwindSafe for Synth
impl Send for Synth
impl Sync for Synth
impl Unpin for Synth
impl UnsafeUnpin for Synth
impl UnwindSafe for Synth
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