pub struct StmInstrument {
pub name: String,
pub disk: u8,
pub length: u16,
pub loop_start: u16,
pub loop_end: u16,
pub volume: u8,
pub c3_hz: u16,
pub paragraphs: u16,
}Expand description
Decoded STM instrument record (pre-sample-extraction).
Fields§
§name: String§disk: u8“Instrument disk” — legacy field, kept for fidelity.
length: u16Sample length in bytes (raw 16-bit LE from the file).
loop_start: u16Loop start, in samples (byte offset for 8-bit PCM).
loop_end: u16Loop end, in samples. 0xFFFF commonly indicates “no loop”.
volume: u8Default volume 0..=64.
c3_hz: u16C3 frequency in Hz.
paragraphs: u16Length in paragraphs (module files only).
Trait Implementations§
Source§impl Clone for StmInstrument
impl Clone for StmInstrument
Source§fn clone(&self) -> StmInstrument
fn clone(&self) -> StmInstrument
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StmInstrument
impl Debug for StmInstrument
Source§impl Default for StmInstrument
impl Default for StmInstrument
Source§fn default() -> StmInstrument
fn default() -> StmInstrument
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StmInstrument
impl RefUnwindSafe for StmInstrument
impl Send for StmInstrument
impl Sync for StmInstrument
impl Unpin for StmInstrument
impl UnsafeUnpin for StmInstrument
impl UnwindSafe for StmInstrument
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