A cell's effect type is a number: effects 0 to 9 and A to F are 0 to 15, G is 16, and so on up to Z, 35. This page says what each command does as FastTracker 2 plays it, which is what the FT2 clone reproduces; where OpenMPT or libxmp differ, the note says so. A tick is one step of the replayer; a row lasts as many ticks as the speed (see playback). Where a column says "first tick" the command runs once when the row is read; where it says "other ticks" it runs on each tick after that.
Effect commands
| Code | Name | First tick | Other ticks | Memory |
|---|---|---|---|---|
| 0xy | Arpeggio | Nothing. | The note changes with the tick: tick 1 plays the note plus x semitones, tick 2 plus y, tick 3 the note again, and so on in threes. FT2 finds the new pitch by searching its period table, so a note above B-7 plays the wrong pitch (the search stops at note 96). Beyond tick 15 of a row FT2 reads bytes after its table that are not 0, 1, 2. | None. 000 is no effect. |
| 1xx | Portamento up | Nothing. | Lowers the period by xx × 4 each tick (the pitch rises); the period stops at 1. | Yes, separate from 2xx and 3xx. 100 repeats the last. |
| 2xx | Portamento down | Nothing. | Raises the period by xx × 4 each tick; it stops at 31,999. | Yes. |
| 3xx | Tone portamento | A note on the row sets the target pitch and is not played; xx × 4 becomes the speed if it is not 0. An instrument on the row (with no note, or with the note) resets the volume and panning to the instrument's defaults and the envelopes, but does not change the sound playing. | Slides the period toward the target by the speed each tick and stops on it. With a speed of 0 and no memory it does not move. | Yes, shared with the volume column's Mx. |
| 4xy | Vibrato | Sets the speed to x × 4 and the depth to y when each is not 0. Nothing sounds. | Moves the pitch with a waveform (E4x): the period plus or minus (table × depth) / 32, with the position advancing by the speed each tick. A row that ends a vibrato puts the period back. | Yes, x and y separately, shared with the volume column's Sx and Vx. |
| 5xy | Tone portamento and volume slide | As 3xx without a speed. | Continues the tone portamento and does the volume slide Axy. | The slide: yes. |
| 6xy | Vibrato and volume slide | Nothing. | Continues the vibrato and does the volume slide Axy. | The slide: yes. |
| 7xy | Tremolo | Sets speed (x × 4) and depth (y) when not 0. | Moves the volume with a waveform (E7x): the volume plus or minus (table × depth) / 64, within 0 to 64. The ramp waveform follows the vibrato's position, not the tremolo's (an FT2 bug). | Yes. |
| 8xx | Set panning | Sets the panning: 00 left, 80 centre, FF right. | Nothing. | No. |
| 9xx | Sample offset | With a note on the row, the sample starts at xx × 256 (points, for 16-bit samples). With no note nothing happens. An offset past the end of the sample plays nothing (the voice is shut down). | Nothing. | The clone remembers the last nonzero xx; the format notes say the same, though the original description said it did not. |
| Axy | Volume slide | Nothing. | If x is not 0 the volume rises by x, otherwise it falls by y; the volume stays within 0 to 64. | Yes (A00 repeats). Separate from the volume column's slides. |
| Bxx | Position jump | Plays the rest of the row and the song goes on at order position xx, row 0 (or the row of a Dxx on the same row). A position past the end of the order list starts the song at position 0. | Nothing. | No. |
| Cxx | Set volume | Sets the volume to xx, at most 64 (the volume column's set volume is separate). | Nothing. | No. |
| Dxx | Pattern break | Goes on at row (x × 10 + y) of the next position; a row above 63 means row 0. The parameter is decimal, so D10 is row 10. With a Bxx on the row, the row is in the new position. | Nothing. | No. |
| Exy | Extended | See below. | ||
| Fxx | Set speed or tempo | 01 to 1F: the speed, in ticks a row. 20 to FF: the tempo in BPM. The new tempo is used from this tick. F00 sets the speed to 0, which makes FT2 stand still (the explorer treats it as the end of the song). | Nothing. | No. |
| Gxx | Set global volume | 00 to 40 (higher is 40). It affects the channels to the right on this row at once, and the channels to the left only when their volumes are next recalculated (an FT2 quirk). | Nothing. | No. |
| Hxy | Global volume slide | Nothing. | Like Axy, on the global volume. | Yes. |
| Kxx | Key off | K00 releases the note on the row's first tick (like the key-off note); an instrument on the row resets the volume as usual. | Kxx releases the note on tick xx of the row (xx is masked with 31). | No. |
| Lxx | Set envelope position | Sets the volume envelope to tick xx and starts it again. FT2 uses the volume envelope's sustain flag to decide whether to set the panning envelope as well (a bug); OpenMPT keeps the behaviour. | Nothing. | No. |
| Pxy | Panning slide | Nothing. | If x is not 0 the panning moves right by x, otherwise left by y, within 0 to 255. | Yes. |
| Rxy | Multi retrigger | Sets the interval (y) and the volume change (x), taking the old values for a 0. With no volume column byte it also retriggers at once. | Every y ticks restarts the note and changes the volume as x says: 1 to 5 subtract 1, 2, 4, 8, 16; 6 multiplies by 2/3; 7 halves; 8 leaves it; 9 to D add 1, 2, 4, 8, 16; E multiplies by 3/2; F doubles. A volume column set volume or set panning on the row is applied again at each retrigger. | Yes, x and y separately. |
| Txy | Tremor | Nothing. | The volume is on for x + 1 ticks and off for y + 1 ticks, over and over. | Yes. |
| X1x | Extra fine portamento up | Lowers the period by x (not × 4) once. | Nothing. | Yes, separate from E1x. |
| X2x | Extra fine portamento down | Raises the period by x once. | Nothing. | Yes. |
| I J M N O Q S U V W Y Z, and X with another high digit | No effect | FastTracker 2 lets you type them and does nothing. ModPlug Tracker and OpenMPT define further commands: X5x (panbrello waveform), X6x (fine pattern delay), X9x (sound control), XAx (high offset), Yxy (panbrello), and Zxx and \xx (MIDI macros). OpenMPT restricts X to X1x and X2x in an XM that it plays as FastTracker 2 compatible, and the explorer does not run any of them. rst's SoundTracker uses Q and Z for filter settings. | ||
E extended commands
Effect E takes a sub-command in the high nibble of the parameter and its value x in the low one.
| Code | Name | What FT2 does | Memory |
|---|---|---|---|
| E0x | Set filter | Nothing (from ProTracker's LED filter). | |
| E1x | Fine portamento up | First tick: lowers the period by x × 4. | Yes (E10 repeats). |
| E2x | Fine portamento down | First tick: raises the period by x × 4. | Yes. |
| E3x | Glissando control | x of 0: tone portamento slides smoothly; any other x: it slides in whole semitones (the pitch is rounded to a note). | |
| E4x | Set vibrato waveform | 0 sine, 1 ramp, 2 and 3 square. Bit 2 ("do not restart") keeps the position on a new note; with some values FT2 hangs on a new note, the clone does not. | |
| E5x | Set finetune | The next note on the row uses finetune x × 16 − 128 instead of the sample's. | |
| E60 | Pattern loop start | Remembers this row as the loop start of the channel. | The row is not cleared when the pattern changes, so a loop in the next pattern with no E60 loops back to the same row. |
| E6x | Pattern loop | The first time (counter 0), loops back x times to the loop start; each time it comes again counts down. Two E6x on one row in different channels behave randomly in real FT2. A Bxx or Dxx on the row ends the loop and the next pattern starts at the loop row (an FT2 bug that the replayer reproduces: the row is reset to 0 only when it is beyond the new pattern's length). | Per channel. |
| E7x | Set tremolo waveform | As E4x for the tremolo. | |
| E8x | Set panning | Nothing: the original FT2 does not run it (OpenMPT lists it as the coarse panning command). Use 8xx. | |
| E9x | Retrigger note | x of 0: plays the note again at once on the first tick. Otherwise restarts the note every x ticks (when (speed − tick) is a multiple of x), with the envelopes, but keeping the volume. | |
| EAx | Fine volume slide up | First tick: the volume rises by x. | Yes. |
| EBx | Fine volume slide down | First tick: the volume falls by x. | Yes. |
| ECx | Note cut | The volume becomes 0 on tick x (EC0 cuts at once). | |
| EDx | Note delay | The note on the row is not played until tick x (the instrument number, volume and effects on the row are held, apart from the delayed note's volume column set volume and panning). ED0 is no delay. A delay of at least the speed never plays. | |
| EEx | Pattern delay | The row is held x more times. On the repeated passes FT2 only does the effects of the "other ticks" kind: it forgets the first-tick effects such as EB1 (an FT2 bug). | |
| EFx | Invert loop (ProTracker) or active macro (OpenMPT) | Nothing in FT2. |
Volume column commands
The volume column byte is read before the effect column on each row. In the first tick table the command runs when the row is read; the other ticks run after that.
| Byte | Name | First tick | Other ticks | Notes |
|---|---|---|---|---|
| 00 | Nothing | |||
| 01–0F | Invalid | Ignored. | ||
| 10–50 | Set volume | The volume becomes the value minus 10 (0 to 64), at once. | A set volume with a note: the volume of the note, not the sample's default. | |
| 51–5F | Invalid | Sets volume 64 (the value minus 16 is above 64). | ||
| 6x | Volume slide down | Nothing. | Lowers the volume by x each tick. | Has no memory: 60 does nothing. |
| 7x | Volume slide up | Nothing. | Raises the volume by x each tick. | No memory. |
| 8x | Fine volume slide down | Lowers the volume by x once. | No memory. | |
| 9x | Fine volume slide up | Raises the volume by x once. | No memory. | |
| Ax | Set vibrato speed | The vibrato speed becomes x × 4 (unless x is 0). | Shares memory with 4xy. | |
| Bx | Vibrato | Nothing. | The vibrato depth becomes x (unless 0) and the vibrato runs. | Shares memory with 4xy. |
| Cx | Set panning | The panning becomes x × 16 (so F is 240, not 255). | ||
| Dx | Panning slide left | Nothing. | The panning moves left by x each tick. D0 sets the panning to 0 (an FT2 bug). | No memory. |
| Ex | Panning slide right | Nothing. | The panning moves right by x each tick (stops at 255). | No memory. |
| Fx | Tone portamento | The speed becomes x × 16 × 4 (unless 0) and the note on the row is the target, as for 3xx. | Slides toward the target. | Shares memory with 3xx. |
Frequency tables
The file's frequency flag picks one of two systems. The pitch is the note (1 to 96) plus the sample's relative note, which must come out between 0 and 119 to be played. In these formulae Note is that sum minus 1, so C-4 is 48 and FineTune is the sample's finetune (−128 to 127). The sample is played at the Frequency (the number of its points taken each second).
| Table | Period | Frequency |
|---|---|---|
| Linear | 7680 − (Note × 64) − (FineTune ÷ 2) | 8363 × 2(4608 − Period) ÷ 768 |
| Amiga | A value from FT2's table of 1,919 periods (one for each 1/16 of a semitone), indexed by Note × 16 + (FineTune ÷ 8) | 8363 × 1712 ÷ Period |
FT2 keeps the period as an integer and steps the finetune in eighths (the index uses FineTune ÷ 8, rounding down), so the linear period is 7744 − 4 × (index) where the index is (Note × 16) + (FineTune ÷ 8) + 16. Portamento effects change the period by whole period units (the 1xx speed is multiplied by 4, X1x and X2x are not), a period never goes below 1 or above 31,999, and an Amiga period of 0 (above the end of the table) plays at 0 Hz.
The Amiga period table of FT2 is not a formula: it is rounded, with a bug at the very end of its range, and the FT2 clone keeps it value for value. The explorer's table is the clone's: period 29024 for the lowest note (C-0 with finetune −128), 1712 for C-4 at finetune 0, and the last of the 1,919 values, 29. The text of the original format description also gives an interpolation routine for it, but its authors say it does not work.
Volume
FinalVol = FadeOutVol/32768 × EnvelopeVol/64 × GlobalVol/64 × Vol/64 × Scale
The format description says FadeOutVol starts at 65,536; FastTracker 2 starts it at 32,768 (the fadeout speed is subtracted from it each tick after a key off). See volume fadeout. The channel's panning is combined with the panning envelope, and the two sides get the square root of (1 − pan) and of pan, so the middle (128) gives each side 0.707, not 0.5.
FinalPan = Pan + (EnvelopePan − 32) × (128 − |Pan − 128|) / 32