Struct moa_peripherals_yamaha::ym2612::EnvelopeGenerator
source · struct EnvelopeGenerator {
debug_name: String,
total_level: u16,
sustain_level: u16,
rates: [u8; 4],
envelope_state: EnvelopeState,
envelope: u16,
last_envelope_clock: u64,
}
Fields§
§debug_name: String
§total_level: u16
§sustain_level: u16
§rates: [u8; 4]
§envelope_state: EnvelopeState
§envelope: u16
§last_envelope_clock: u64
Implementations§
source§impl EnvelopeGenerator
impl EnvelopeGenerator
fn new(debug_name: String) -> Self
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 get_scaled_rate(&self, etype: EnvelopeState, rate_adjust: usize) -> usize
fn notify_key_change( &mut self, state: bool, _envelope_clock: u64, rate_adjust: usize )
fn update_envelope(&mut self, envelope_clock: u64, rate_adjust: usize)
fn get_envelope(&mut self, envelope_clock: u64, rate_adjust: usize) -> u16
Trait Implementations§
source§impl Clone for EnvelopeGenerator
impl Clone for EnvelopeGenerator
source§fn clone(&self) -> EnvelopeGenerator
fn clone(&self) -> EnvelopeGenerator
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for EnvelopeGenerator
impl RefUnwindSafe for EnvelopeGenerator
impl Send for EnvelopeGenerator
impl Sync for EnvelopeGenerator
impl Unpin for EnvelopeGenerator
impl UnwindSafe for EnvelopeGenerator
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