TidalCycles-style live coding on the Original Polyend Tracker.
Tracker Cycles turns the Original Polyend Tracker into a standalone live-coding instrument. You write patterns in real Tidal syntax (d1 $ every 4 (fast 2) $ s "bd*2 [~ sd]" # gain 0.9), edit them with the pads, jog wheel and buttons, and the Tracker's own sample engine and effects play them. You don't need a computer, SuperCollider or GHC.
It is a fork of Polyend Tracker Community Edition (CE). The step sequencer, pattern editor and song mode have been replaced by a Tidal pattern engine and a structured code editor. The sample engine, instruments, sample loader and editor, mixer, effects and MIDI are the Tracker's own.
- Hardware: Original Polyend Tracker (MK66) only. Tracker+ and Tracker Mini are not supported.
- Version: 1.0.1. See
CHANGELOG.md. - Tracker Cycles is inspired by TidalCycles. It is an independent implementation and is not affiliated with the TidalCycles project or with Polyend.
Tracker Cycles is provided "AS IS", without warranty of any kind (see LICENSE). Neither Polyend nor the TidalCycles project supports it. Custom firmware is used at your own risk, and hardware problems caused by it are not covered by Polyend's warranty (Polyend offers out-of-warranty repairs). The Tracker's bootloader is separate from the firmware, so you can always flash a known-good firmware again (see Recovery).
Back up your SD card before flashing. Tracker Cycles has no patterns or songs: it opens a project's instruments, samples and settings, and adds its code (see Projects).
- Download
PolyendTracker_Cycles_<version>.ptffrom Releases. - Copy it to the
/Firmware/folder on the Tracker's microSD card. - On the Tracker: Config → Firmware → Firmware update, select the file and confirm.
- After the reboot, Config → Firmware shows
tracker-cycles 1.0.1.
If a firmware build ever fails to boot:
- Put a known-good
.ptf(Tracker Cycles, CE or Polyend's) alone in/Firmware/on the card. - Insert the card and power on the Tracker.
- With a paperclip, press the recessed Reset / bootloader pinhole on the bottom of the unit. The bootloader flashes the
.ptffrom/Firmware/.
.ptf file names must start with PolyendTrac and be at most 31 characters long, or the updater won't list them.
The screen shows your code: a setcps line and blocks d1 to d16.
- d1–d8 play the 8 sample tracks (the project's 48 instruments, chosen by name with
s). - d9–d16 send MIDI: d9 on channel 1 through d16 on channel 8 (
# midichanoverrides).velocity 1(the default) is MIDI velocity 127. A pattern with MIDI controls but non/note(ccv "0 64 127" # ccn 74) sends only those messages, no notes.
- Shift + pad 1 goes to
d1. On an empty slot, press Instrument to start a block withs "<first instrument>", or Note forn "0". - Move with the arrows. The editor starts in cursor mode: Left / Right go token by token, Up / Down line by line and on to the blocks around. Rec switches to tree mode, where Left / Right step through the code tree and Up / Down go to the parent / first child.
- Turn the jog wheel to change the value under the cursor (numbers, notes, sample names, functions). Shift + jog takes bigger steps; on a sample it changes the file index (
bd→bd:1…). - In a
"..."sequence the pads enter values (notes on the keyboard layout, or the 48 instruments in anspattern). Holding pads together enters a chord. - Press Play to evaluate the block. It flashes, and its
dNturns green. - Hold Pattern and press a slot pad to mute / unmute it; Pattern + Screen 8 unmutes all. Shift + Pattern alone is
hush.
| Control | Action |
|---|---|
| Play | evaluate the block (Shift: silence it) |
| Pattern (held) + pad N | mute / unmute dN (Shift: solo); Pattern + Screen 8: unmute all; Shift + Pattern alone: hush (Pattern alone does nothing) |
| Shift + pad N | go to dN; the same pad twice in a row: a new dN block |
| Shift + ↑ / ↓ | previous / next block |
| Screen 1 / 2 | menus: functions ($), controls (#) |
| Screen 3–6 | [ ], < >, { }%4, ( ) euclid at once around the step / selection / number (at a gap: a new [~] … for the pads) |
| Screen 7 / 8 | | random choice menu; operators: on a control (# gain 1) the operators that can replace its #, elsewhere add one |
| Rec | cursor mode / tree mode |
| Shift + Screen 1–4 | inside "...": the step *2 (faster), /2 (slower), !2 (repeated), @2 (longer); again: one more; the jog changes the number |
| Shift + Screen 5 | ,: another layer: a chord on a step ([x, x]), a new layer in a group ({a b, c}: a polyrhythm) |
| Shift + Screen 6 | "": a number as a pattern (n 0 → n "0") |
| Shift + Screen 7 | on a step ? (maybe: x?0.5), at a gap between two numbers .. (0 .. 7), elsewhere \n (a line break) |
| Shift + Screen 8 | Ctrl+Z (undo) |
| Note / Instrument | jump to the block's n / s pattern (Shift + Note: chord names) |
| FX1 / FX2 | functions ($) / effects (the sound # controls) |
| Song | launch menu (dN $, jumpMod, jumpIn); Shift + Song: tempo (setcps) |
| Copy / Shift + Copy | copy / paste (at a block's top: duplicate the block) |
| Delete / Shift + Delete | delete the token (inside "...": a step becomes ~; on a function, $ or #: unwrap) / the token to the left (tree mode: unwrap) |
| Insert / Shift + Insert | on a function's name: a $ function in front; elsewhere a # control behind; inside "...": a copy of the step / the block's top |
| Shift + Sample Loader | load a Tidal sample folder (below) |
| Shift + Config | edit the block's comment |
| Shift + File | save the code to the project |
| Shift + Master | status (tempo, audio load, voices, errors) |
The full control reference is in tidal/README.md.
Example project: coming soon in docs/ExampleProject/: a complete project (instruments and code) to unzip onto the card.
Tracker Cycles evaluates real Tidal syntax: function application, $, ., operators and sections, mini-notation strings, lists and pairs. It supports about 140 functions and operators. Each one is type-checked like GHC would, and checked against event lists captured from Tidal 1.10.3. The full list is in docs/tidal_code_tree.md (section 7). Highlights:
- Time:
fastslowhurryreviteriter'plylingersegmenteveryevery'foldEverywhenmodrepeatCyclesqtriggertriggerinsideoutsidewithinwithin'zoomcompresstruncfastGapswingBypressrot<~~> - Structure:
structmaskeuclid(andInv/Full/Off)sewstitchwhilewedgebitesqueezeselectrunscanrangerangexquantisefixunfixcontrastappendfastAppend - Samples:
slicerandslicesplicechewloopAt, sample folders withs "bd:3" - Random:
degradeBysometimesBy(and friends)someCyclesByshufflescramblerandirandbrandbrandByperlinchoosewchooserandcatwrandcat - Layering:
superimposeoffjuxjuxBystutstutterechoechoWithghostchunkchunk'plyWithlayerpickFselectF - Harmony:
scaletoScalearprolledrolledBy, chord names ("c'maj e'min7") - Signals:
sinecosinesawisawtrisquareenvLenvLRenvEqenvEqR - Controls:
snnotegainpancutoffresonancehpfbandfdelayroomcrushshapebeginendspeedlegatoattackreleasecutdjfsizedelaytimedelayfeedbackand more, plus the MIDI controls on d9–d16 (ccn/ccv,midibend,progNum,miditouch) - Operators:
#and the|+||-||*||/||%||**||<||>|families,+ - * /
- Sound: the Tracker's sample engine replaces SuperDirt.
- There are no SuperCollider synths (
superpianoand so on). - Playback rate (
speed,loopAt) is approximated through tuning. - The reverb and delay are global:
size,delaytimeanddelayfeedbackset them for everything (the last note wins).coarseisn't available (usecrush). chopandstriateare not available on the device yet: the editor accepts them, but evaluating refuses them.
- There are no SuperCollider synths (
- Voices: each track plays one note at a time unless you ask for more with
# voices 2or# voices 3(Tracker Cycles' own control). The editor adds it for you when an edit brings in overlapping notes:jux,superimpose,off(2),stut/echo/stutter/echoWith(their count),ghost,rolled, chords (3),stack/layer/"[a, b]"(one per layer). In total at most 16 notes sound, fewer when the CPU is busy. - Samples:
spicks one of the project's 48 instruments by name. Sample folders (below) bring back Tidal'ss "bd:3"folder lookup. - Language: there are no lambdas,
let, user-defined functions or type annotations. Tuples are pairs only.echoWithandplyWithare limited to 8 layers. - Random values: they follow Tidal's probabilities but differ from Tidal's actual values.
/Projects/<Name>/ a Tracker project (instruments, samples, settings)
/Projects/<Name>/<Name>.tidal the project's code
/Workspace/project.tidal the working copy (saved ~2 s after every edit)
/Tidal/<folder>/*.wav Tidal-style sample folders (optional)
/tidal_folders.txt the sample-folder loader's log
/Firmware/ firmware files (.ptf)
- File → Save / Save As saves the instruments, samples and code. Shift + File saves only the code.
- Opening a project loads its code. A new project starts with an empty editor.
- Stock projects open with their instruments and samples. Their patterns and songs are not loaded or changed: the files stay in the project folder, so the stock firmware can still open the project.
Copy Tidal-style sample folders to /Tidal/ on the card, for example /Tidal/bd/, /Tidal/hh/ with WAV files inside. Shift + Sample Loader lists them, and OK loads one into a free instrument slot:
- The files are sorted by name and joined into one sliced instrument, so
s "bd:3"(ors "bd" # n 3) plays the fourth file, as in SuperDirt. At most 48 files per folder are used. - WAV files of any common format (8–32 bit PCM or 32-bit float, mono or stereo, 8 kHz and up) are converted to the Tracker's mono 16-bit 44.1 kHz. Refused files and the reasons are listed in
/tidal_folders.txt. - Loading takes about a quarter of a second for a drum folder and a few seconds for large ones. The screen may pause while a folder loads, so load folders before a performance rather than during one.
- Sample memory is about 7.5 MB (around 89 seconds of mono audio), shared with the project's other instruments.
- Sample names come from file names (lower case, other characters become
_, at most 15 characters). A name needs at least one letter:808 5.wavwon't work in a pattern,808 kick 5.wavdoes.
The Dirt-Samples set used by SuperDirt has no clear licence. You can copy folders from it onto your own card, but they are not distributed with Tracker Cycles. For shareable sounds, see Clean-Samples and its sound packs, which give licence information for each pack.
Each release also has PolyendTracker_Cycles_Effects.zip: add-on effects for the Tracker's Sample Editor, inherited from Polyend Tracker CE. They have nothing to do with Tidal; they process or create the samples your instruments play. Unzip the Effects folder to the root of the SD card (/Effects/*.ptfx). The Sample Editor finds them when you open it and lists them after its built-in effects.
| Plugin | What it does | On the Original Tracker |
|---|---|---|
multimode_filter |
low-pass, band-pass, high-pass, notch or peak filter, with drive | ✓ |
stereo_delay |
delay with feedback, dry / wet mix and a ring-out tail | ✓ (on mono samples) |
transient_shaper |
boosts or cuts a sound's attack and sustain | ✓ |
add_silence |
adds 10 ms – 5 s of silence at the start or end | ✓ |
analog_kick_gen |
generates an analog-style kick drum (pitch, decay, click) | ✓ |
chiptune_gen |
generates chiptune drums and tones (kick, snare, hi-hat, pulse, triangle, noise), with arpeggios | ✓ |
haas |
stereo widening (delays one channel) | — Tracker+ / Mini only: the Original Tracker doesn't list it |
stereo_to_mono |
turns a stereo sample into mono | — the Original Tracker's samples are always mono |
Writing your own: docs/modular_effects_system.md (CE's .ptfx SDK).
Requirements: GNU Arm Embedded Toolchain 10.3-2021.10 (arm-none-eabi-gcc), make and python3. See CLAUDE.md for the developer notes.
make original # -> build/PolyendTracker_Cycles_1.0.1.ptf
make -C tidal test # host tests: engine, editor, golden cases from Tidal
make -C tidal smoke # editor sessions in the desktop prototype
tidal/run_proto.sh # the desktop prototype (needs GHC + Tidal + SuperDirt for sound)tidal/: the portable engine, editor and tests (host build).core/tidal/: the firmware glue.docs/tidal_*.md: the design documents.
Tracker Cycles has two licences:
- The Tidal parts are GPL-3.0-or-later, with an extra permission to combine them with Polyend Tracker CE (see
tidal/LICENSEandtidal/COPYING). That covers everything written for Tracker Cycles: the pattern engine, the editor, the prototype and tests (tidal/), the firmware glue (core/tidal/), the editor's screen (core/interface/tidalEditor/) andcore/AudioEngine/mtAudioTidal.cpp. Each of those files says so in its header. - Everything inherited from CE keeps CE's licence: Polyend Tracker Community Edition by Polyend and contributors, MIT License with a Wholesale Commercial Clone Restriction (see
LICENSE). This includes the changes Tracker Cycles made inside CE's own files. - The compiled firmware combines both. Anyone sharing it must also make the source available, as the GitHub releases do, and nobody may sell it (CE's licence).
- Inspiration: TidalCycles by Alex McLean and contributors. Tracker Cycles implements Tidal's documented behaviour independently and checks it against Tidal's output. No TidalCycles (GPL) or Strudel (AGPL) source code is used.
- Third-party components: see
NOTICE.md.