Struct openmpt::mod_command::ModCommand [] [src]

pub struct ModCommand {
    pub note: Note,
    pub instr: u8,
    pub volcmd: VolumeCommand,
    pub command: EffectCommand,
}

Fields

Methods

impl ModCommand
[src]

[src]

Construct a ModCommand from pattern cell data.

Parameters

  • note : The raw note command
  • instr : The raw instrument index
  • volcmd : The raw volume command
  • command : The raw effect command
  • vol : The raw volume parameter
  • param : The raw effect parameter

Returns

The resulting ModCommand, or an error message if one of the parameter has an unknown or invalid value

[src]

Returns the note index corresponding to a middle C (C4).