pub enum PitchTable {
NtscPulse,
NtscTriangle,
}Expand description
Eleven-bit NTSC period models: f=1789773/(divider*(timer+1)). Pulse divider=16, timer=8..=2047; triangle divider=32, timer=0..=2047. Requests clamp to this range rather than modelling hardware mute rules. See NESdev APU Pulse/Triangle.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PitchTable
impl Clone for PitchTable
Source§fn clone(&self) -> PitchTable
fn clone(&self) -> PitchTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PitchTable
Source§impl Debug for PitchTable
impl Debug for PitchTable
impl Eq for PitchTable
Source§impl Hash for PitchTable
impl Hash for PitchTable
Source§impl PartialEq for PitchTable
impl PartialEq for PitchTable
impl StructuralPartialEq for PitchTable
Auto Trait Implementations§
impl Freeze for PitchTable
impl RefUnwindSafe for PitchTable
impl Send for PitchTable
impl Sync for PitchTable
impl Unpin for PitchTable
impl UnsafeUnpin for PitchTable
impl UnwindSafe for PitchTable
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