[−][src]Struct wavetable::wt_creator::WtCreator
Implementations
impl WtCreator
[src]
pub fn create_default_waves(sample_rate: Float) -> WavetableRef
[src]
Create collection of tables with common waveforms.
The added waveforms are sine, triangle, saw and square. It will generate tables with 2048 samples, one octave per table, for 11 octaves.
use wavetable::WtCreator; let default_waves = WtCreator::create_default_waves(44100.0);
pub fn create_pwm_waves(
sample_rate: Float,
num_pwm_tables: usize
) -> WavetableRef
[src]
sample_rate: Float,
num_pwm_tables: usize
) -> WavetableRef
Create collection of square waves with different pulse width modulation.
Creating 64 PWM waves is usually a good compromise between resolution and memory usage.
use wavetable::WtCreator; let pwm_waves = WtCreator::create_pwm_waves(44100.0, 64);
Auto Trait Implementations
impl RefUnwindSafe for WtCreator
impl Send for WtCreator
impl Sync for WtCreator
impl Unpin for WtCreator
impl UnwindSafe for WtCreator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,