Enum ittech::VolumeSlide[][src]

pub enum VolumeSlide {
    Down(RangedU8<1, 0x0F>),
    Up(RangedU8<1, 0x0F>),
    FineDown(RangedU8<1, 0x0E>),
    FineUp(RangedU8<1, 0x0E>),
}
Expand description

Effects Dxx, Kxx, Lxx, Nxx, Wxx

All of these commands perform a volume slide but on different mixers. Operations on the values are saturating.

  • Dxx, Kxx, Lxx - note volume slide
  • Nxx - channel volume slide
  • Wxx - global volume slide

Canonicalization

Values where both nibbles are in 1..=0xE at the same time don’t have a defined meaning, these get skipped by the parser.

Value 0xFF gets parsed by OpenMPT and Schism Tracker as FineUp(0xF), however this makes it non-symmetrical and also doesn’t agree with OpenMPT documentation and makes the parsing somewhat ambiguous (although at least two implementations agree on the way to parse it). We enforce that FineUp cannot exceed 0xE. We parse the value 0xFF the same way as 0xEF for compatibilty with these trackers.

Variants

Down

D0x, K0x, L0x, N0x, W0x Volume slide down by x

Decreases mixer volume by x units on every tick of the row except the first. If x is 0xF, volume decreases on every tick (including the first).

Tuple Fields of Down

0: RangedU8<1, 0x0F>
Up

Dx0, Kx0, Lx0, Nx0, Wx0 Volume slide up by x

Increases mixer volume by x units on every tick of the row except the first.

Tuple Fields of Up

0: RangedU8<1, 0x0F>
FineDown

DFx, KFx, LFx, NFx, WFx Fine volume slide down by x

Finely decreases mixer volume by only applying x units on the first tick of the row.

Tuple Fields of FineDown

0: RangedU8<1, 0x0E>
FineUp

DxF, KxF, LxF, NxF, WxF Fine volume slide up by x

Finely increases mixer volume by only applying x units on the first tick of the row.

Tuple Fields of FineUp

0: RangedU8<1, 0x0E>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.