Command 0x27: Pitch bend (round trip)
Sets a pitch bend that goes back and forth the same number of times.
Syntax
0x27, byte delay, byte interval, byte count, sbyte delta
Parameters
| Parameter | Type | Description |
|---|---|---|
| delay | byte | Time until the first change |
| interval | byte | Interval between changes |
| count | byte | Number of changes in one direction |
| delta | sbyte | Pitch change per step |
Description
Makes the same setting as command 0x08 with reverse set to count and count set to count × 2.
The pitch falls by delta for the first count changes, then rises 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 0x26