pub enum PulseSynth {
Fm(FMParams),
Additive(PulseAdditiveSynth),
Wavetable,
KarplusStrong(PulseKarplusStrong),
Granular(PulseGranularSynth),
}Expand description
One synthesis algorithm selected for a sequence.
Variants§
Fm(FMParams)
Frequency modulation synthesis using tunes::FMParams.
Additive(PulseAdditiveSynth)
Additive synthesis using harmonic amplitudes.
Wavetable
Built-in tunes wavetable synthesis.
KarplusStrong(PulseKarplusStrong)
Karplus-Strong physical modeling rendered as sample events.
Granular(PulseGranularSynth)
Granular sample synthesis rendered as sample events.
Implementations§
Source§impl PulseSynth
impl PulseSynth
Sourcepub fn apply_to_track_builder<'a>(
&self,
builder: TrackBuilder<'a>,
) -> TrackBuilder<'a>
pub fn apply_to_track_builder<'a>( &self, builder: TrackBuilder<'a>, ) -> TrackBuilder<'a>
Applies note-event synth parameters to a tunes track builder.
Sample-rendered synths such as Karplus-Strong and granular are inserted elsewhere as sample events, so this method intentionally leaves the builder unchanged for those variants.
Trait Implementations§
Source§impl Clone for PulseSynth
impl Clone for PulseSynth
Source§fn clone(&self) -> PulseSynth
fn clone(&self) -> PulseSynth
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 moreSource§impl Debug for PulseSynth
impl Debug for PulseSynth
Source§impl PartialEq for PulseSynth
impl PartialEq for PulseSynth
Source§fn eq(&self, other: &PulseSynth) -> bool
fn eq(&self, other: &PulseSynth) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PulseSynth
Auto Trait Implementations§
impl Freeze for PulseSynth
impl RefUnwindSafe for PulseSynth
impl Send for PulseSynth
impl Sync for PulseSynth
impl Unpin for PulseSynth
impl UnsafeUnpin for PulseSynth
impl UnwindSafe for PulseSynth
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more