Skip to content

guide fill

Aisjam edited this page Nov 15, 2026 · 1 revision

Fill and Transform

Home · Section index

Working manual · 0.0.1-alpha · source snapshot 16 November 2026

Select a region in Song, Chain, Roll or Phrase. Hold Y and choose Fill (northwest) or Transform (southwest). Basic assignment, deletion, transpose, velocity/length adjustment and block operations are no longer chooser entries; existing tracker editing controls are unchanged.

The panel is (8, 8, 624, 156): 52 x 13 cells, 12 pixels per cell, with three columns of native 192x24 compact buttons. Pending edits are displayed by the normal scene renderer. The live document and playback change only on Apply.

D-pad moves focus. A chooses a tool; hold A + D-pad to adjust values. L1/R1 changes pages. A on Apply commits one undoable edit and closes. B returns to the chooser without applying; B in the chooser closes it. Start explicitly auditions the candidate. A + L1/R1 on Chord changes its extension.

Fill

Tool Primary controls
Euclidean Events, rotation, root, instrument
Interval Interval, rotation/offset, root, instrument
Random Density, pitch range, instrument, reroll
Rhythm Style, events, rotation, root
Melody / Bass Root, scale, key, events
Arpeggio Root, chord, events, rotation
Chords Root, chord, events, inversion
Pattern Style, events, root; lane roles under More
Turnaround Events; lane roles under More
Templates Lane-count group, optional Custom roles, .cttt browser

Outside Song, generators insert into empty eligible event positions without splitting authored gates. Musical tool choice determines affected properties; the editor selection supplies time and lane bounds. Template imports in Roll and Phrase still respect selected fields. More exposes instrument bank, pitch bounds, harmony and role options where applicable.

Transform

L1/R1 switches between five titled pages:

Page Tools
Pitch & Harmony Scale Quantise, Invert, Reharmonise
Timing & Groove Rhythm Quantise, Swing, Ratchet, Time Scale
Variation & Dynamics Humanise, Mutate, Density, Accent, Ghost Notes
Values & Instruments Interpolate, Remap Instrument, Clear Instrument
Creative Transforms Nuke, Rhythm, Melody, Tracker, Chaos, Texture, Space, Echo

Creative Transforms

These are variations of existing notes, distinct from the Rhythm and Melody generators under Fill. The supplied proposal listed seven modes (number 2 was absent); these seven are implemented, alongside standalone ECHO (Decaying Repeats). ECHO generates only repeated notes with velocity decay, without additional tracker effects.

Mode Subtitle Implemented behaviour
Nuke Sound Available instruments within the same family, velocity, pan, sample position/slices and supported tone parameters; preserves pitches and note placement
Rhythm Rhythm & Groove Gate lengths, velocity, microtiming, safe event shifts; retriggers and playback probability at higher intensity
Melody Pitch & Harmony Existing scale-constrained mutation, octave-range pitch variation, native chord voicing and arpeggio commands
Tracker Tracker FX & Echoes PBN, SLD, RET, VIB, ARP, GAT/OFF, sample POS/REV/SLC where applicable, plus generated decaying echo notes
Chaos Full Transformation Combines pitch, rhythm, sound, tracker effects, echoes and active bus sends
Texture Tone & Timbre Sample filter controls and model-specific synth matrix controls; preserves note/instrument structure
Space Pan & Sends Pan and sends to enabled Delay, Reverb and modulation buses; preserves notes

All eight expose Intensity 0-100, Density 0-100, and Reroll. Intensity sets variation ranges; Density selects the proportion of original note events eligible for processing. Either zero leaves the selection unchanged. Seed and protection controls are under More. Melody/Chaos reuse the project's scale and existing chord controls. Previews are deterministic for a given seed.

Tracker and Echo additionally expose Echoes 0-8, Spacing 1-16 steps, and Decay 5-95% (velocity retained by each successive repeat). Chaos exposes these under More. Intensity adds spacing jitter. Echoes are real editable notes: DLY delays onset and REP repeats an effect value, so neither is misused as an echo command. A sustained source is gated before its first successful echo. Repeats never overwrite existing events, protected cells or another note's active gate, and stop at the selection end. Movement also respects native Phrase gate limits.

Texture reads the active synth preset's parameter definitions, uses their native matrix addresses and ranges, and includes inherited preset/instrument selection. It skips enumeration/model selectors and unsupported parameters. Sample drive uses V6 only on extended filters; morph uses V9 only on supporting models. Legacy sample filters expose cutoff only. Existing instrument definitions, degrader settings and shared bus parameters are never rewritten. Bit-depth, clock and timbre are eligible only when the active synth exposes a compatible numeric control. Global sample degradation and bus stereo-width changes are not invented as note commands. Space does not enable or reconfigure buses.

There are still only three FX columns. Matching effect values may change; unrelated commands are never displaced. Full columns or unsupported instruments can therefore limit a transformation. Visual instruments are excluded. Native track-scoped FX retain their ordinary playback persistence semantics.

Test each mode on a sparse phrase with assigned instruments and explicit velocity. For Texture use an extended-filter sample or a synth with tone controls. For Space configure at least one active Delay/Reverb bus. Compare Intensity and Density separately, Reroll, Apply and Undo. Test Tracker with a sustained note, three echoes, spacing 3 and decay 50%: velocities halve on successive repeats.

Deterministic transforms have no application Chance, Seed or Reroll. Mutate retains Chance and property switches. Humanise combines pitch, velocity and microtiming ranges in one tool. Native microtiming is nonnegative; variation is clamped to its valid range. Density has a signed offset (positive adds, negative thins) and one Amount percentage. Variation tools expose Seed/Reroll.

Interpolate uses existing velocity or FX endpoints and fills between adjacent compatible anchors. Choose Velocity, FX1, FX2 or FX3 and Linear, Log or Exp. FX anchors must have the same command. Endpoints and other fields are preserved.

Time Scale offers x2/x1/2 and Scale Lengths. It scales complete events within the selection; out-of-range events are trimmed, first event wins on a shrink collision, and gates are bounded by the selection, next event and native Phrase.

Remap Instrument selects source and destination IDs/banks. Source ALL replaces all explicit assignments. Clear Instrument selects ALL or a source ID/bank and clears those assignments while preserving notes, velocity, length and FX. These operate on instrument fields, not instrument definitions or FX commands.

Song: Ch Size

Generators show Ch Size, defaulting to 4. A opens the six-choice dropdown: 1, 2, 4, 8, 12, 16. Hold A + direction also cycles the choices. The value is the resulting Chain length, not an append count. Each selected Song cell gets a replacement Chain containing that many Phrase references. Identical content reuses existing IDs; uniform pitch changes use Chain transpose when safe. Objects shared outside the selection are isolated before editing.

Transforms follow selected Song cells into existing Chains/Phrases and preserve Chain length. Blank Song cells are skipped. They do not show a phrase-count control. All selected cells commit as one undo transaction; pool exhaustion or invalid data leaves the document unchanged.

Templates expose the same count in the Song group chooser. Set the count before choosing the lane group; a predefined group opens the browser directly.

Template fitting

A on a compatible .cttt applies and closes. Source playback starts at the beginning of the destination selection. Short templates repeat and long templates trim in Song, Chain, Roll and Phrase. Roll/Phrase repeat at step resolution, including partial-Phrase selections. Positive note gates are clipped at destination Phrase boundaries and the end of the selection. Chain imports preserve sounding pitches through Phrase references and transposes; Roll/Phrase imports resolve source transposes while preserving unselected events. Imports use the destination clock, scales and seed; differing source metadata does not block the fill or replace project settings. File validation remains in force.

Templates retain shared references within an imported Chain selection; normal subsequent region edits isolate them. No CTP/CTTT schema changes were made.

Source ownership

All portable algorithms remain under src/core/music/fill/:

  • Algorithms.hpp: stable runtime IDs and the two chooser catalogs.
  • SelectionGenerator.hpp: generator/transform dispatch and Song selection traversal.
  • common/SongRegion.hpp: phrase-count choices and isolated replacement Chains.
  • common/PatternRegion.cpp: region capture, field application and template fitting.
  • transform/Utilities.hpp: interpolation, time scaling, instrument edits and Humanise.
  • transform/Creative.hpp/.cpp: the eight shared Intensity/Density transformations.
  • Existing generate/, rhythm/ and transform/ contain musical algorithms.

application/FillTool owns the chooser. application/PresetTool owns controls, detached candidates, template browsing and commit/audition lifecycle. Core has no SDL or UI dependency. Basic legacy field algorithms remain available internally; they do not appear in the application's new chooser.

What should be here

Documentation still to add
Annotated current-build screenshots and a recorded controller walkthrough for this topic.

Evidence and verification

Repository sources used for this page:

  • docs/unified-fill.md

This is a documentation/source review, not a new runtime or hardware test. Physical response, screenshots and listening examples still need verification on a recorded build.

Clone this wiki locally