Struct moa_peripherals_yamaha::ym2612::Operator
source · struct Operator {
debug_name: String,
phase: PhaseGenerator,
envelope: EnvelopeGenerator,
output: i16,
}
Fields§
§debug_name: String
§phase: PhaseGenerator
§envelope: EnvelopeGenerator
§output: i16
Implementations§
source§impl Operator
impl Operator
fn new(debug_name: String) -> Self
fn set_block_and_fnumber(&mut self, block: u8, fnumber: u16)
fn set_detune_and_multiple(&mut self, detune: u8, multiple: u8)
fn set_total_level(&mut self, level: u16)
fn set_sustain_level(&mut self, level: u16)
fn set_rate(&mut self, etype: EnvelopeState, rate: u8)
fn set_rate_scaling(&mut self, rate_scaling: u8)
fn notify_key_change(&mut self, state: bool, envelope_clock: u64)
fn get_output(&mut self, modulator: i16, clocks: (u64, u64)) -> i16
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Operator
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnwindSafe for Operator
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
source§impl<T, S> IntoAddress<T> for Swhere
T: FromAddress<S>,
impl<T, S> IntoAddress<T> for Swhere
T: FromAddress<S>,
source§fn into_address(self) -> T
fn into_address(self) -> T
Translate the given address into an address of type
T