Special

Enum Special 

Source
pub enum Special {
Show 23 variants SetGlissando(bool), SetFinetune(RangedU8<0, 0x0F>), SetVibratoWaveform(Waveform), SetTremoloWaveform(Waveform), SetPanbrelloWaveform(Waveform), PatternTickDelay(RangedU8<0, 0x0F>), PastNote(SetPastNote), SetNewNoteAction(SetNewNoteAction), SetVolumeEnvelope(bool), SetPanningEnvelope(bool), SetPitchEnvelope(bool), SetPanning(RangedU8<0, 0x0F>), SetSurround(bool), SetReverb(bool), SetSurroundMode(SurroundMode), SetFilterMode(FilterMode), SetDirection(PlayDirection), SetLoopbackPoint, LoopbackTimes(RangedU8<0x01, 0x0F>), NoteCut(RangedU8<0, 0x0F>), NoteDelay(RangedU8<0, 0x0F>), PatternRowDelay(RangedU8<0, 0x0F>), SetMidiParam(RangedU8<0, 0x0F>),
}
Expand description

Effect Sxx Special commands

SAy is represented using SetSampleOffset::High in Rust.

All the Sxx commands share the same memory, this should include the SAy command.

Variants§

§

SetGlissando(bool)

S1x Set glissando on/off

Configures whether tone portamento effects slide by semitones or smoothly.

  • S10 disables glissando, portamento slides smoothly.
  • S11 enables glissando, portamento behaves like glissando and snaps to semitones.
§Canonicalization

When the value y is more than 1 it gets converted to true.

§

SetFinetune(RangedU8<0, 0x0F>)

S2x Set finetune

Considered a legacy command.

Overrides the current sample’s C-5 frequency with a MOD finetune value.

TODO link to what is MOD finetune value

§

SetVibratoWaveform(Waveform)

S3x Set vibrato waveform to type x

Sets the waveform of future Vibrato effects.

§

SetTremoloWaveform(Waveform)

S4x Set tremolo waveform to type x

Sets the waveform of future Tremolo effects.

§

SetPanbrelloWaveform(Waveform)

S5x Set panbrello waveform to type x

Sets the waveform of future Panbrello effects.

§

PatternTickDelay(RangedU8<0, 0x0F>)

S6x Pattern delay for x ticks

Extends the current row by x ticks. If multiple S6x commands are on the same row, the sum of their parameters is used.

§

PastNote(SetPastNote)

S70, S71, S72 Past note cut, off or fade

§

SetNewNoteAction(SetNewNoteAction)

S73, S74, S75, S76 - Set NNA to note cut, continue, off or fade

§

SetVolumeEnvelope(bool)

S77, S78 Turn off/on volume envelope

§

SetPanningEnvelope(bool)

S79, S7A Turn off/on panning envelope

§

SetPitchEnvelope(bool)

S7B, S7C Turn off/on pitch envelope

§

SetPanning(RangedU8<0, 0x0F>)

S8x Set panning position to x

§

SetSurround(bool)

S90, S91 Turn off/on surround sound

Only S91 (Set::Surround(true)) is supported in the original Impulse Tracker, other S9x commands are MPTM extensions.

§

SetReverb(bool)

S98, S99 Turn off/on reverb

MPTM extension

§

SetSurroundMode(SurroundMode)

S9A, S9B Set Surround mode to Center or Quad

MPTM extension

§

SetFilterMode(FilterMode)

S9C, S9D Set filter mode to Global or Local

MPTM extension

§

SetDirection(PlayDirection)

S9E, S9F Play Forward or Backward

MPTM extension

§

SetLoopbackPoint

SB0 Set loopback point

§

LoopbackTimes(RangedU8<0x01, 0x0F>)

SBx Loop x times to loopback point

§

NoteCut(RangedU8<0, 0x0F>)

SCx Note cut after x ticks

§

NoteDelay(RangedU8<0, 0x0F>)

SDx Note delay for x ticks

§

PatternRowDelay(RangedU8<0, 0x0F>)

SEx Pattern delay for x rows

§

SetMidiParam(RangedU8<0, 0x0F>)

SFx Set parameterised MIDI Macro

Trait Implementations§

Source§

impl Clone for Special

Source§

fn clone(&self) -> Special

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Special

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Special

Source§

fn eq(&self, other: &Special) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Special

Source§

impl StructuralPartialEq for Special

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<I, C> Get<&I> for C
where C: Get<I>, I: Copy,

Source§

type Output = <C as Get<I>>::Output

Source§

fn get(&self, index: &I) -> Option<&<C as Get<&I>>::Output>

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.