pub enum SynthFormat {
Midi,
Custom {
channels: u32,
},
}
Expand description
Controls the channel format that will be used in the synthesizer.
Variants§
Midi
Standard MIDI format with 16 channels. Channel 10 will be used for percussion.
Custom
Creates a custom number of channels with the default settings.
Trait Implementations§
Source§impl Clone for SynthFormat
impl Clone for SynthFormat
Source§fn clone(&self) -> SynthFormat
fn clone(&self) -> SynthFormat
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 SynthFormat
impl Debug for SynthFormat
Source§impl Default for SynthFormat
impl Default for SynthFormat
Source§fn default() -> SynthFormat
fn default() -> SynthFormat
Returns the “default value” for a type. Read more
Source§impl PartialEq for SynthFormat
impl PartialEq for SynthFormat
impl Copy for SynthFormat
impl Eq for SynthFormat
impl StructuralPartialEq for SynthFormat
Auto Trait Implementations§
impl Freeze for SynthFormat
impl RefUnwindSafe for SynthFormat
impl Send for SynthFormat
impl Sync for SynthFormat
impl Unpin for SynthFormat
impl UnwindSafe for SynthFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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