#[non_exhaustive]pub enum Want {
Mono(bool),
Legato(bool),
Voices(usize),
GlideTime(Seconds),
GlideFromSilence,
PitchDrop {
depth: Semitones,
tau: Seconds,
},
VelocityToLevel {
spread: Decibels,
},
Attack(Seconds),
Hold(Seconds),
Decay(Seconds),
Sustain(Decibels),
Release(Seconds),
}Expand description
One setting the groups ask of a synth, in physical units.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Mono(bool)
One voice at a time, or more.
Legato(bool)
A held note slides into the next without a new attack.
Voices(usize)
The count of voices: the most notes at once, times 1 unison voice and 1 oscillator. The unison mapper sets the final value (#121, #186).
GlideTime(Seconds)
The full 0 to 100 % glide time. The adapter clamps it to the synth’s maximum and lists the rest.
GlideFromSilence
A note glides even after silence.
PitchDrop
A unipolar envelope into oscillator pitch: the start pitch depth
above the settled pitch, falling with time constant tau. The depth
law and the envelope are the adapter’s interim proposals. A miss of
the depth names drops.df_st, a miss of the envelope time
drops.tau_s.
VelocityToLevel
A path from velocity to the level, with the spread it should cover.
Fields
Attack(Seconds)
The amplitude attack, 0 to 100 %.
Hold(Seconds)
The amplitude hold.
Decay(Seconds)
The amplitude decay, from the peak to the sustain level.
Sustain(Decibels)
The sustain level from the peak. The adapter’s law turns it into its stored value.
Release(Seconds)
The amplitude release after the note-off.
Implementations§
Trait Implementations§
impl Copy for Want
impl StructuralPartialEq for Want
Auto Trait Implementations§
impl Freeze for Want
impl RefUnwindSafe for Want
impl Send for Want
impl Sync for Want
impl Unpin for Want
impl UnsafeUnpin for Want
impl UnwindSafe for Want
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> ⓘ
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> ⓘ
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