#[repr(u8)]pub enum Module {
OdFx = 0,
Amp = 1,
Cab = 2,
Mod = 3,
Delay = 4,
Reverb = 5,
Gate = 6,
Eq = 7,
Loop = 8,
Drum = 9,
}Expand description
A block in the signal chain. The discriminant is the page value of CC 0x3B and, for the
eight effect modules, also the head CC number and the head-byte offset in a preset record.
Variants§
Implementations§
Source§impl Module
impl Module
pub const ALL: [Module; 10]
pub fn from_index(i: u8) -> Option<Module>
pub fn index(self) -> usize
pub fn is_effect(self) -> bool
pub fn name(self) -> &'static str
pub fn head_cc(self) -> Option<u8>
Sourcepub fn from_param_cc(cc: u8) -> Option<(Module, usize)>
pub fn from_param_cc(cc: u8) -> Option<(Module, usize)>
Which module (and param slot) a parameter CC belongs to.
pub fn models(self) -> &'static [&'static str]
pub fn model_name(self, model: u8) -> String
Trait Implementations§
impl Copy for Module
impl Eq for Module
Source§impl Ord for Module
impl Ord for Module
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Module
impl PartialOrd for Module
impl StructuralPartialEq for Module
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnsafeUnpin for Module
impl UnwindSafe for Module
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