#[non_exhaustive]pub struct SynthCapabilities {Show 18 fields
pub oscillators: OscillatorLayout,
pub voice_filters: u8,
pub fx_filter: bool,
pub envelopes: u8,
pub lfos: u8,
pub random_lfos: u8,
pub macros: u8,
pub mod_slots: u16,
pub unison_voices: (u8, u8),
pub polyphony_max: u8,
pub effects: &'static [EffectFamily],
pub effect_order_free: bool,
pub effect_repeats: bool,
pub lfo_sync: &'static [LfoSync],
pub glide: GlideRule,
pub velocity: VelocityRule,
pub bend_range_default: Semitones,
pub middle_c: Option<OctaveLabel>,
}Expand description
What a synth offers in structure: the sources, filters, modulation, effects and voicing rules that a mapper chooses from.
Parameter laws and ranges live in the registry, not here. No estimator reads these values; only mappers do.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.oscillators: OscillatorLayoutThe oscillator sources.
voice_filters: u8Filters in the voice path.
fx_filter: boolWhether a filter sits in the effect chain.
envelopes: u8Envelopes.
lfos: u8Shaped LFOs.
random_lfos: u8Random LFOs.
macros: u8Macro controls.
mod_slots: u16Slots of the modulation matrix.
unison_voices: (u8, u8)The smallest and the largest unison voice count.
polyphony_max: u8The largest polyphony.
effects: &'static [EffectFamily]The effects, by neutral family name.
effect_order_free: boolWhether the order of the effects can change.
effect_repeats: boolWhether one effect family can appear twice.
lfo_sync: &'static [LfoSync]The ways an LFO rate can be set.
glide: GlideRuleThe portamento time span and how the time scales with the interval.
velocity: VelocityRuleHow velocity reaches the level.
bend_range_default: SemitonesThe pitch-bend range of a new patch.
middle_c: Option<OctaveLabel>The octave label the synth’s own note display gives MIDI note 60; none until its source or a probe settles it.
Implementations§
Trait Implementations§
Source§impl Clone for SynthCapabilities
impl Clone for SynthCapabilities
Source§impl Debug for SynthCapabilities
impl Debug for SynthCapabilities
Source§impl PartialEq for SynthCapabilities
impl PartialEq for SynthCapabilities
impl StructuralPartialEq for SynthCapabilities
Auto Trait Implementations§
impl Freeze for SynthCapabilities
impl RefUnwindSafe for SynthCapabilities
impl Send for SynthCapabilities
impl Sync for SynthCapabilities
impl Unpin for SynthCapabilities
impl UnsafeUnpin for SynthCapabilities
impl UnwindSafe for SynthCapabilities
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