Struct openmpt::mod_command::ModCommand
[−]
[src]
pub struct ModCommand { pub note: Note, pub instr: u8, pub volcmd: VolumeCommand, pub command: EffectCommand, }
Fields
note: Note
instr: u8
volcmd: VolumeCommand
command: EffectCommand
Methods
impl ModCommand
[src]
fn new(
note: u8,
instr: u8,
volcmd: u8,
command: u8,
vol: u8,
param: u8
) -> Result<ModCommand, String>
[src]
note: u8,
instr: u8,
volcmd: u8,
command: u8,
vol: u8,
param: u8
) -> Result<ModCommand, String>
Construct a ModCommand from pattern cell data.
Parameters
note
: The raw note commandinstr
: The raw instrument indexvolcmd
: The raw volume commandcommand
: The raw effect commandvol
: The raw volume parameterparam
: The raw effect parameter
Returns
The resulting ModCommand, or an error message if one of the parameter has an unknown or invalid value
fn middle_c() -> u8
[src]
Returns the note index corresponding to a middle C (C4).