Skip to content

Use the Arrangement and Transport

The main Resonon window has the transport bar along its top and the Arrangement below it, above the Mixer panel. Open the window as the Mixer page tells you: RESONON: Open Resonon Window in VSCode, :Resonon view in Neovim, or window_show() in code opens the running session’s window. From a terminal, resonon app starts its own session and main window.

ControlActionResult
▶ / ⅡClickPlays from the playhead, as PLAY; does, or pauses in place, as PAUSE; does. Lit green while playing.
■ClickStops and returns to the start, as STOP; does.
SpacePressPlays or resumes when stopped or paused; pauses in place when playing. Text inputs keep Space for typing. The panel with the thin grey outline has the keys.

The bar also shows:

PartShows
PositionBar, beat and sixteenth, each counted from 1: 5.2.1. One bar is one cycle.
CyclesThe position in cycles, the number SEEK takes.
TempoThe tempo in BPM.
Time signatureThe meter, for example 4/4 or 7/8. Beats count in its denominator.

Arrange a song and play it:

use "std/instruments" { Sampler, Kit };
use "std/signals" { automation };
// Create the tracks once. setup() runs when the project opens and on Reset Project.
fn setup() {
session.create_track("drums");
session.create_track("bass");
}
let drums = session.track("drums");
drums.set_instrument(Sampler(Kit("CR-78")));
let bass = session.track("bass");
bass.set_instrument(Sampler(Kit("CR-78")));
let verse = section(8);
verse[drums] << [bd bd sd bd];
verse[bass] << [c2 _ g1 _];
let chorus = verse.clone();
chorus[drums] << [bd sd bd sd];
let song = arrange(#[verse * 2, chorus]);
song[drums].layer("fills").at(7, 1) << [hh hh hh hh];
song[drums].volume.at(8, 8) << automation().at(0, -24).at(8, 0);
song.play();

The Arrangement shows:

PartShows
RulerThe sections, named by the variables that hold them (verse, verse, chorus), and the bar numbers.
Track headersOne row for each track, in the Mixer’s order, with the track colour along the left edge and the controls in the track headers.
BlocksOne block for each stretch that plays, with the notes it plays. Across, each note starts and lasts where it sounds; down, pitched notes run from high to low and each sample (bd, sd, hh) has a row of its own. Blocks and notes have the track colour. A block of a layer on top of base is paler, and a block names the layer that wins it when the lane has more than one.
Automation rowsA thin row under the track for each automation lane of the playing song, with its values (-24.00 → 0.00).
PlayheadThe white line. The notes it crosses light up while they sound.

Hold the pointer over a block to see the pattern that feeds it, +Nc when an entry resumes in its own phase, and the layer. The blocks are what show(song) prints: a muted layer and an entry that is fully masked have no block. The notes are those each cycle plays, so a pattern that changes from cycle to cycle shows each cycle as it is. On a track with a key (set_key()), degrees show at their pitch and notes at the scale tone they play; without one, each unresolved degree has a row of its own. A track that plays a pattern without a timeline, for example after bass << [c2 g1];, shows one block marked ↻. When a track loops this way, all tracks share a scrolling four-cycle window: two cycles behind the playhead and two ahead. The playhead stays in the middle; time before the start is empty. Loop notes update as playback advances, including beyond the end of a timeline. A lane that plays more notes than the Arrangement draws (4096, or more than it can work out in time) dims from where its notes stop, marked …; the music still plays them. To change the song, change the code.

Each header has the controls you use most, so you can mix without opening the Mixer. They are the Mixer’s controls: a change in either shows in both, a change from code shows in both, and each change is one undo step.

PartShowsAction
NameThe track name, dimmed while the track is muted. A return track shows its letter (A, B, as its sends are labelled) before the name.Click the header to select the track; the Mixer selects it too. Double-click the name, type a new one and press Enter to rename the track. Esc or a click elsewhere cancels.
M, SMute and solo, lit while on. A MIDI track has them too.Click to turn mute or solo on or off.
VolumeThe volume in dB, in a box that fills with the level.Change it as a Mixer value: drag, Shift-drag, double-click to reset to 0 dB, right-click to type.
PanA knob and the pan position: C, 25L, 40R.As the volume; double-click resets it to the centre.
OutputWhere the track plays to: → Master, or the track it routes to.—
MeterThe level of the track’s output, on the right edge. Hold the pointer over it to see the held peak.—
MIDIOn a MIDI track, instead of volume, pan and meter: its channel, MPE when it is on, and its output port.—
InstrumentOn a tall track only: the instrument, then the lane’s layers, with (muted) after a muted layer.—

Right-click a header and click a colour in the palette to change the track colour, or choose Delete Track to delete it. The + under the last track adds an audio or a MIDI track. See add and delete tracks and set a track colour.

Resize tracks and headers:

ActionResult
Drag a header’s bottom edgeMakes that track compact (name, M, S and meter), default, or tall (with the instrument row).
Option-drag a header’s bottom edgeResizes every track.
Drag the right edge of the header columnMakes the headers wider or narrower.

The track heights and the header width are part of the window layout: saving the project keeps them, and undo does not change them.

Edit a lane while the song plays, for example the fill:

song[drums].layer("fills").at(15, 1) << [hh hh hh hh];

The Arrangement shows the edit as soon as the code runs, from the moment you will hear it. A note lane changes at the next cycle boundary that the edit plays from: until the playhead reaches it, an off-white line marks that boundary, with what plays now on its left and the edit on its right. An automation lane changes at once. See When an edit is heard.

Click the ruler to move the playhead there, as SEEK does. The click snaps to the nearest beat. Hold Option (Alt) to move the playhead to exactly where you click. While the song plays, it plays on from there; while it is stopped, the next play starts there.

The session is the document; code and the UI edit it together. Save the project session to keep tracks, device chains, mixer settings and arrangement. Put patterns and callbacks at the top level of the entry file, so that opening the project attaches them again after it restores the saved session. Run Selection Live evaluates only the selection. Run File Live evaluates the whole entry file into the running session. Session undo covers UI gestures. Code evaluations are not undo steps: correct the source and run it again. Use text undo in the editor to change the source. See The entry file’s lifecycle.