Enum usfx::OscillatorType
source · pub enum OscillatorType {
Sine,
Saw,
Triangle,
Square,
Noise,
}
Expand description
Wave form generation type.
Variants§
Sine
A continuus tone.
Saw
Strong, clear, buzzing sound.
Triangle
Smooth sound, between sine & square.
Square
Rich sound, between sine & saw.
This wave type uses osc_duty_cycle
from Sample
.
Noise
White noise, very noisy.
osc_frequency
is the seed for the RNG.
Trait Implementations§
source§impl Clone for OscillatorType
impl Clone for OscillatorType
source§fn clone(&self) -> OscillatorType
fn clone(&self) -> OscillatorType
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 moresource§impl Debug for OscillatorType
impl Debug for OscillatorType
source§impl Hash for OscillatorType
impl Hash for OscillatorType
source§impl PartialEq for OscillatorType
impl PartialEq for OscillatorType
source§fn eq(&self, other: &OscillatorType) -> bool
fn eq(&self, other: &OscillatorType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for OscillatorType
impl Eq for OscillatorType
impl StructuralEq for OscillatorType
impl StructuralPartialEq for OscillatorType
Auto Trait Implementations§
impl RefUnwindSafe for OscillatorType
impl Send for OscillatorType
impl Sync for OscillatorType
impl Unpin for OscillatorType
impl UnwindSafe for OscillatorType
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