Struct ittech::Module [−][src]
Fields
name: Name
Song Name, null-terminated (but may also contain nulls)
message: String
Comment message
highlight: (u8, u8)
Rows per Measure highlight, Rows per Beat highlight
made_with_version: u16
"Made With" Tracker
compatible_with_version: u16
"Compatible With" Tracker
flags: ModuleFlags
combined Header Flags and Special Flags, for embedding extra information
global_volume: RangedU8<0, 128>
Global Volume (0...128)
sample_volume: RangedU8<0, 128>
Sample Volume (0...128)
speed: RangedU8<1, 255>
Initial Speed (1...255)
tempo: RangedU8<31, 255>
Initial Tempo (31...255)
pan_separation: RangedU8<0, 128>
Pan Separation (0...128)
pitch_wheel_depth: u8
Pitch Wheel Depth
init_channel_panning: [u8; 64]
Initial Channel Panning
init_channel_volume: [u8; 64]
Initial Channel Volume
orders: Vec<Order>
Orders
instruments: Vec<InstrumentHeader>
Instrument headers (without samples)
samples: Vec<Sample>
Samples
patterns: Vec<Pattern>
Patterns
Implementations
impl Module
[src]
pub fn ordered_patterns(&self) -> impl Iterator<Item = &Pattern> + '_
[src]
Returns an iterator over patterns as listed in the orders list.
It can yield any pattern multiple times or not yield some patterns at all.
pub fn active_channels(&self) -> ActiveChannels
[src]
Returns active channels when playing the module.
Does not account for channels in patterns which are not present in the orders list.
Trait Implementations
impl Clone for Module
[src]
impl Debug for Module
[src]
impl Get<InstrumentId> for Module
[src]
type Output = InstrumentHeader
fn get(&self, index: InstrumentId) -> Option<&Self::Output>
[src]
impl Get<PatternId> for Module
[src]
impl Get<SampleId> for Module
[src]
impl Index<&'_ InstrumentId> for Module
[src]
type Output = <Module as Get<InstrumentId>>::Output
The returned type after indexing.
fn index(&self, index: &InstrumentId) -> &Self::Output
[src]
impl Index<&'_ PatternId> for Module
[src]
type Output = <Module as Get<PatternId>>::Output
The returned type after indexing.
fn index(&self, index: &PatternId) -> &Self::Output
[src]
impl Index<&'_ SampleId> for Module
[src]
type Output = <Module as Get<SampleId>>::Output
The returned type after indexing.
fn index(&self, index: &SampleId) -> &Self::Output
[src]
impl Index<InstrumentId> for Module
[src]
type Output = <Module as Get<InstrumentId>>::Output
The returned type after indexing.
fn index(&self, index: InstrumentId) -> &Self::Output
[src]
impl Index<PatternId> for Module
[src]
type Output = <Module as Get<PatternId>>::Output
The returned type after indexing.
fn index(&self, index: PatternId) -> &Self::Output
[src]
impl Index<SampleId> for Module
[src]
Auto Trait Implementations
impl RefUnwindSafe for Module
[src]
impl Send for Module
[src]
impl Sync for Module
[src]
impl Unpin for Module
[src]
impl UnwindSafe for Module
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,