pub struct Song {Show 19 fields
pub version: Version,
pub directory: String,
pub transpose: u8,
pub tempo: f32,
pub quantize: u8,
pub name: String,
pub key: u8,
pub song: SongSteps,
pub phrases: Vec<Phrase>,
pub chains: Vec<Chain>,
pub instruments: Vec<Instrument>,
pub tables: Vec<Table>,
pub grooves: Vec<Groove>,
pub scales: Vec<Scale>,
pub mixer_settings: MixerSettings,
pub effects_settings: EffectsSettings,
pub midi_settings: MidiSettings,
pub midi_mappings: Vec<MidiMapping>,
pub eqs: Vec<Equ>,
}
Fields§
§version: Version
§directory: String
§transpose: u8
§tempo: f32
§quantize: u8
§name: String
§key: u8
§song: SongSteps
§phrases: Vec<Phrase>
§chains: Vec<Chain>
§instruments: Vec<Instrument>
§tables: Vec<Table>
§grooves: Vec<Groove>
§scales: Vec<Scale>
§mixer_settings: MixerSettings
§effects_settings: EffectsSettings
§midi_settings: MidiSettings
§midi_mappings: Vec<MidiMapping>
§eqs: Vec<Equ>
Implementations§
Source§impl Song
impl Song
pub const N_PHRASES: usize = 255usize
pub const N_CHAINS: usize = 255usize
pub const N_INSTRUMENTS: usize = 128usize
pub const N_TABLES: usize = 256usize
pub const N_GROOVES: usize = 32usize
pub const N_SCALES: usize = 16usize
pub const N_MIDI_MAPPINGS: usize = 128usize
pub fn phrase_view(&self, ix: usize) -> PhraseView<'_>
pub fn offsets(&self) -> &'static Offsets
pub fn eq_count(&self) -> usize
pub fn table_view(&self, ix: usize) -> TableView<'_>
pub fn eq_debug(&self, f: &mut Formatter<'_>) -> Result
pub fn read_from_reader(reader: &mut Reader) -> M8Result<Self>
pub fn write(&self, w: &mut Writer) -> Result<(), String>
Trait Implementations§
impl StructuralPartialEq for Song
Auto Trait Implementations§
impl Freeze for Song
impl RefUnwindSafe for Song
impl Send for Song
impl Sync for Song
impl Unpin for Song
impl UnwindSafe for Song
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