Patterns, tracks, songs
Everything plynth plays is stored in three layers: patterns, tracks and the song. Patterns go inside tracks, and tracks go inside the song. Some things that surprise people at first, like tracks looping at different times, come from how these fit together.
For the buttons, see the Pattern and Song chapters in Part III.
Patterns, tracks and the song
A pattern is a short block of rows. Each row has a note, an instrument number, a velocity and FX command slots. The pattern's length sets how many rows play before it ends. A pattern usually holds one part for one bar, such as a drum beat or a bassline.
A track is one column of the Song screen. It's a list of patterns, played from top to bottom through the track's own voice. All the tracks play at the same time, so you'd usually give each part of the song its own track: drums on one, bass on another, and so on.
The song is all the tracks side by side, plus everything they need. The arrangement grid, the pattern bank, the
instrument slots, the mixer, the master settings and the samples are all saved in one .plyn file, so a song file
contains everything needed to play it.
Song cells point at patterns
All the patterns in a song are kept in one bank. A Song cell holds the number of a pattern in that bank. It doesn't hold
its own copy. If you put pattern 04 in four places, there's still only one pattern 04, and editing it changes all
four places.
This saves a lot of work. You can write a hi-hat bar once and use it thirty times. If you then want the thirtieth one to be different, you need a new pattern, because editing the shared one changes all of them. Copy the whole pattern from the meta row, paste it into a free slot, and set that one cell to the copy.
Empty patterns take up no space. A pattern you've never edited isn't saved in the song file at all.
Blank cells in a row
When you enter a note, plynth only writes the note. The instrument, velocity and FX columns stay --. For the
instrument and velocity columns, -- doesn't mean zero. It means inherit: when the row plays, plynth looks up that
column, inside the same pattern, and uses the last value that was set. The rules are in
Pattern → Inherit policy.
So if you set instrument 03 on row 00 and leave the rows below it blank, the whole pattern plays instrument 03. If
you set the velocity once at the top, every note below it uses that velocity. To change the instrument for the whole
pattern, you edit one cell.
If nothing above the row sets a value, plynth uses instrument 00 and the default velocity. That's why a new pattern
makes a sound as soon as you enter the first note.
Why: the M8 and LSDJ work the same way. If every cell showed its value, a column would repeat the same number on every row, which is hard to read on a small screen, and the rows that change are the ones you want to see. Because plynth looks the value up when the note plays, a value you set near the top of the pattern also applies to rows you add below it later.
The FX columns don't inherit. A blank FX cell means there's no command on that row. FX commands like a retrigger or a note cut happen once, and if they repeated down the column without you seeing it, that would cause mistakes. The one exception is TSP (transpose), which stays on until you change it. Its entry in FX commands says so.
Empty song cells are rests
If you leave an empty cell in the middle of a track, the track plays through it. The empty cell is one bar of silence, and then the track goes on to the next cell. For example, if you clear four cells in the bass track, the bass drops out for four bars and then comes back.
A track ends at its last filled cell. Anything after that is ignored. A track with one pattern loops that pattern, and a track with a whole arrangement loops the whole arrangement. You don't need to set an end point.
Clearing a cell cycles it through three states: a pattern, then empty, then OFF. OFF is silent like an empty cell,
but it counts as part of the track, so an OFF at the end of a track still makes the track that long. Use it when you
want some silence at the end before the track loops. The three states, and how each one looks, are described in
Song → What a cell holds.
Why: plynth used to stop a track at its first empty cell. That meant you had to put an explicit rest in every gap to keep a part going, which isn't how most people think about a gap. In a score, an empty bar is a rest that everyone plays through. When we changed the rule, every demo song that comes with the app kept working without any edits.
Tracks can be different lengths
Each track ends at its own last filled cell, so a four-bar drum track and a six-bar pad track each loop at their own length. They don't wait for each other to line up. They drift apart and come back into line every twelve bars (the lowest number both lengths divide into). This gives you polyrhythms without any extra setup, and it can keep a short two-track sketch changing for much longer than either track.
It can also be confusing. Until you want that effect, give all your tracks the same number of filled cells. Then the song plays the way the grid looks, and every track starts its loop on the same bar. Once the rest of the song is working, you can add a track of a different length on purpose.
Section marks change this: every track lines up again at each mark. See Section marks.
Repeating without copying
Per-cell transpose lets you use one pattern in several keys. Change a cell's transpose and that cell plays the pattern higher or lower, while the pattern itself stays the same. For example, you can write a bassline once and play it a fifth higher in the chorus. Transpose inherits down the track column, the same way velocity inherits down a pattern, so if you set it at the start of a section it applies to the whole section. Empty and rest cells are skipped, so an old transpose value doesn't carry on past a gap.
Section marks let you repeat and re-time a stretch of the song without copying it. A mark starts a section. It can carry a repeat count, so a section that plays eight times takes one mark and a number instead of eight copied rows, and a tempo that applies from there on. Every track lines up at each mark. See Section marks on the Song screen page.
Neither of these changes the pattern bank. The Song screen only holds pattern numbers, section marks and transposes. The notes are all in the patterns.
Previous: The control model. Next: The signal path.