#[non_exhaustive]pub enum FxType {
Show 35 variants
TcDeepVrb,
AmbVerb,
RoomRev,
VintageRev,
HallRev,
ChamberRev,
PlateRev,
RichPltRev,
GatedRev,
Reverse,
ChorusVerb,
DelayVerb,
FlangVerb,
MidasEq,
Enhancer,
FairComp,
MulBndDist,
RackAmp,
EdisonEx1,
AutoPan,
NoiseGate,
Delay,
ThreeTapDelay,
FourTapDelay,
TRayDelay,
DecimDelay,
ModDlyRev,
Chorus,
ChorusD,
Flanger,
Phaser,
MoodFilter,
DualPitch,
VintagePitch,
RotarySpkr,
}Expand description
FX Type.
Firmware renumbered this table rather than extending it, so a variant is what
the value means and not the byte it travels as. FxType::raw_for is that
byte on a given firmware, and FxType::raw is it on the newest.
Every value the synthesizer has a name for. A byte outside the table is not
one of these: FxType::from_raw answers None for it, and the byte stays
in the program either way.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
TcDeepVrb
TC-DeepVRB.
AmbVerb
AmbVerb.
RoomRev
RoomRev.
VintageRev
VintageRev.
HallRev
HallRev.
ChamberRev
ChamberRev.
PlateRev
PlateRev.
RichPltRev
RichPltRev.
GatedRev
GatedRev.
Reverse
Reverse.
ChorusVerb
ChorusVerb.
DelayVerb
DelayVerb.
FlangVerb
FlangVerb.
MidasEq
MidasEQ.
Enhancer
Enhancer.
FairComp
FairComp.
MulBndDist
MulBndDist.
RackAmp
RackAmp.
EdisonEx1
EdisonEX1.
AutoPan
Auto Pan.
NoiseGate
NoiseGate.
Delay
Delay.
ThreeTapDelay
3TapDelay.
FourTapDelay
4TapDelay.
TRayDelay
T-RayDelay.
DecimDelay
DecimDelay.
ModDlyRev
ModDlyRev.
Chorus
Chorus.
ChorusD
Chorus-D.
Flanger
Flanger.
Phaser
Phaser.
MoodFilter
MoodFilter.
DualPitch
DualPitch.
VintagePitch
Vintage Pitch.
RotarySpkr
RotarySpkr.
Implementations§
Source§impl FxType
impl FxType
Sourcepub const fn from_raw(raw: u8) -> Option<Self>
pub const fn from_raw(raw: u8) -> Option<Self>
Returns the value this byte selects on DEFAULT_FIRMWARE.
None when the table does not list the byte.
Sourcepub const fn from_raw_for(raw: u8, firmware: Version) -> Option<Self>
pub const fn from_raw_for(raw: u8, firmware: Version) -> Option<Self>
Returns the value this byte selects on the firmware a device inquiry reported.
Worth reaching for whenever the byte came from a stored program: nothing in a dump says which firmware wrote it, and this table was renumbered.
Sourcepub const fn raw(self) -> u8
pub const fn raw(self) -> u8
Returns the byte that selects this value on DEFAULT_FIRMWARE.
Sourcepub const fn raw_for(self, firmware: Version) -> Option<u8>
pub const fn raw_for(self, firmware: Version) -> Option<u8>
Returns the byte that selects this value on the firmware a device inquiry reported.
None for a value that firmware does not have.
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
Returns the name the synthesizer’s display writes, as of
DEFAULT_FIRMWARE.
Sourcepub fn name_for(self, firmware: Version) -> Option<&'static str>
pub fn name_for(self, firmware: Version) -> Option<&'static str>
Returns the name the synthesizer’s display writes on the firmware a device inquiry reported.
None for a value that firmware does not have. The names live in the
value table the parameter layer already carries; nothing here holds a
second copy of them.
Trait Implementations§
impl Copy for FxType
Source§impl<'de> Deserialize<'de> for FxType
Available on crate feature serde only.
impl<'de> Deserialize<'de> for FxType
serde only.