pub struct ChipInstrument {
pub source: ChipSource,
pub volume: Option<Macro>,
pub duty: Option<Macro>,
pub arpeggio: Option<Macro>,
pub pitch: Option<Macro>,
pub volume_4bit: bool,
pub pitch_table: Option<PitchTable>,
}Expand description
Optional tracker controls. Volume quantization rounds the combined ADSR, instrument volume, channel volume, velocity and volume-macro gain to 0..=15. Pitch quantization runs after slide/vibrato and additive macro pitch changes.
Fields§
§source: ChipSource§volume: Option<Macro>§duty: Option<Macro>§arpeggio: Option<Macro>§pitch: Option<Macro>§volume_4bit: bool§pitch_table: Option<PitchTable>Trait Implementations§
Source§impl Clone for ChipInstrument
impl Clone for ChipInstrument
Source§fn clone(&self) -> ChipInstrument
fn clone(&self) -> ChipInstrument
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 ChipInstrument
impl Debug for ChipInstrument
Source§impl Default for ChipInstrument
impl Default for ChipInstrument
Source§fn default() -> ChipInstrument
fn default() -> ChipInstrument
Returns the “default value” for a type. Read more
impl Eq for ChipInstrument
Source§impl Hash for ChipInstrument
impl Hash for ChipInstrument
Source§impl PartialEq for ChipInstrument
impl PartialEq for ChipInstrument
impl StructuralPartialEq for ChipInstrument
Auto Trait Implementations§
impl Freeze for ChipInstrument
impl RefUnwindSafe for ChipInstrument
impl Send for ChipInstrument
impl Sync for ChipInstrument
impl Unpin for ChipInstrument
impl UnsafeUnpin for ChipInstrument
impl UnwindSafe for ChipInstrument
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