Command 0x26: Pitch bend (round trip, sign inverted)

Sets a pitch bend that goes back and forth the same number of times. Uses the change amount with its sign inverted.

Syntax

0x26, byte delay, byte interval, byte count, sbyte delta

Parameters

ParameterTypeDescription
delaybyteTime until the first change
intervalbyteInterval between changes
countbyteNumber of changes in one direction
deltasbytePitch change per step. Set with its sign inverted

Description

Makes the same setting as command 0x09 with reverse set to count and count set to count × 2.
The pitch rises by delta for the first count changes (because the inverted change amount is inverted again when applied), then falls by delta for the next count changes, returning to the original pitch.

For details of pitch bend behavior, see command 0x08.

This command takes no time to process; the following event is read within the same tick.

Note

  • count × 2 is calculated in 8 bits, so if count is 128 or more, the total number of changes will be wrong.

See also

Sequence data structure
Command 0x08
Command 0x09
Command 0x0A
Command 0x27