FORMS / Scroller nodes for ofxOceanode
README
ofxOceanodeForms
FORMS / Scroller nodes for ofxOceanode, registered under the
Forms category:- Forms Scroller – scrolls through numbered PNGs (
N.png) driven by a phase input - Forms Scroller Folder – scrolls a folder of PNGs and outputs musical data read from
N_bars.txt,N_scale.txt,N_root.txt,N_trans.txt,N_range.txt - FORMS P5 PNG Director – probabilistic element sequencer
- Texture Unifier Forms
- FORMS->P5 OSC Sender – requires
OFXOCEANODE_USE_OSC - Forms GL Box (ESPECTRES 2027) – the ESPECTRES 2027 player: scenes and setlist as JSON files in
src/formsGL, the ESPECTRES_2027 Processing sketch ported to C++), the musical values of the image under the header; plays the images (built-in player), post-processes them and sonifies them (SuperCollider; the sound needs ofxOceanodeSuperCollider). Patch 8--ESPECTRES_2027_GL. - Removed (2026-11-07): Forms Box (the same node asking the Processing sketch for its images over
bin/data/Presets_archive_ESPECTRES_Processing), and before it Layer Scroller, Forms Transport and Forms Header (patches 3-- to 5--). They are in git history. The other nodes (Forms Scroller, Scroller Folder, P5 PNG Director, Texture Unifier, P5 OSC Sender) are used by other Playmodes shows (FORMS, GRANDPALAIS, ...) and stay.The ESPECTRES 2027 logic is plain C++ in
src/formsBox/formsCore.h and formsEngine.h (no OF, testable on its own); the nodes are thin wrappers. See the roadmap, ESPECTRES_2027/ROADMAP.md in the ESPECTRES project folder.Data folder
Forms GL Box keeps its data in the app's data folder,
bin/data/Forms (inspector Renderer: a path relative to the data folder, or absolute): generators.json (the parameter schemas; written from the embedded ones if missing), scenes/, presets/, library/ (scales, palettes), setlists/, thumbnails/, FuturaStd-Bold.otf (letters), samples/KICKS/ (the kick samples) and sessions/ (each session's images, sidecars, requests and timeline). Pitchclass is relative too (Supercollider/Pitchclass). Moving the app moves everything; nothing outside it is read. (Until 2026-11-07 this was the Processing sketch's folder in Dropbox; its older sessions stay there.)The window (2026-11-07)
Top bar: the image under the header, the next scene (a menu with the setlist off), Use setlist, Render next now, and an AUDITION marker while Audition is on. Tabs, in groups:
- Play · Live — playing: the view and the transport / header / scroller; the scene under the
- Scenes · Instruments · Setlist · Library — composing, each with its own Save. Instruments
- Post-processing · Sonification — the output.
- Gallery · System (right edge) — sessions; data folder, image size, session, the renderer
Under the layer stack (Scenes and Live) a second, green box holds the selected layer's effects (blur, trail) and sound (level, pan, spread, reverb): the same controls as in Post-processing and Sonification. They are not the scene's: they apply to that layer in every scene and are saved with the patch, like everything marked "saved with the patch" (Play controls, Post-processing, Sonification, the renderer switches, published settings).
Mute and solo (2026-11-07)
Performance state: not part of a scene and not saved with the patch (a reload starts with everything playing). The top bar shows what is muted / soloed, with clear.
- Layers (M / S on each row of the layer stack, Scenes and Live): a muted layer, or one not soloed
- Instruments (M / S in the Instruments tab's playing-scene list, and for the selected layer in
itemFilter says what was left out). Editor previews are always whole. Pages without a kept recipe (older than the last 400) are not redrawn. - Edit playing (top of the Scenes tab's list) selects the scene under the header; Live's
Noise mask length in bars (2026-11-07)
The noise mask (process: mask, used by perlin clouds and other cloud instruments) had square cells sized in note rows, so along time a cell was a fixed number of pixels: its length in bars changed with the zoom (bars per page) and the note grid. noise mask length (bars) (
maskBars, 0 = as before) sets the cell's length along time in bars, so the clouds change at the same musical rate at any zoom; its height stays noise mask size (rows). Measured (perlin clouds, 4 / 8 / 16 bars per page): unset 1.89 / 1.16 / 0.74 cloud peaks per bar, length 1 bar 1.02 / 0.92 / 0.90. Pages without it are byte-identical to before. In generators.json and the embedded schemas (make_schemas.py); CPU and GPU paths. (The band filter's "unit: slice / bar" is unrelated.)v2: partial chance, partial detune, octave jumps, scattered voicing, batched effect passes (2026-11-07)
- Pitched looks: Partial chance (
partialChance, 0..1, per note): each partial, fundamental included,
partialDetune, up to 200 cents) is now a random flattening per partial, fixed per note (v1's partial detune); it was a per-partial widening of the detune voices. CPU and GPU pick the same partials. - Sequencer: Octave jump (
octaveChance, %): a pattern step plays an octave up, decided once per
- Legacy mapping (v2Legacy.h): v1 detune rows -> 200 x cents (v1 draws at y +- detune, v2 voices at
blank effect with scope "earlier" listed before the instrument, following its hits; octaveUp, scattered and partial modes mapped as above. Scenes regenerated in tests/v2/scenes/legacy. Details: ESPECTRES_2027/notes/v2_legacy_report.md. - GL renderer: layer-bus and "earlier" effect events are drawn in batched passes (one full-screen
Usage
#include "ofxOceanodeForms.h"
ofxOceanodeForms::registerModels(oceanode);Custom GUI compatibility note
Parameters meant to be bound to an Oceanode custom-GUI MultiToggle must be
int or float (scalar or vector), never bool: the widget treats any other type as vector<int> and reads garbage (huge draw loops → ~2 fps, or a length_error crash). That is why Forms Transport's Pause is an int 0..1.Instruments tab (Forms Box)
This tab edits the presets of the renderer's parameterised generators (
presets/<gen>/<name>.json in the data folder; their schema comes from generators.json).- List: the generators, each with its presets. Use + new, Duplicate, Delete, or
- Parameters:
- Tick vary to give a number a range: Forms Box picks a value from it for each image.
- Tick several options of a choice to have one of them picked for each image.
- Range parameters (
intRange,floatRange) are drawn per step or note by the generator. - List parameters take comma-separated numbers; separate several lists with
|(5, 7 | -5)
- x returns a parameter to the schema default (shown in grey).
- Preview renders one image with this preset alone, using the bars, harmony, scale and
thumbnails/<gen>/<name>.png). **Values used for this image** lists what was picked. - Add to <scene> puts the preset in the selected scene. Presets also appear in the Methods
- Stacks (layered presets) draw their layers in order. The pick mode says which layers play:
- Linked picks (under the parameters, for a preset or a stack layer): a JSON list of
[{"steps": 4, "patternSteps": 8}, {"steps": 6, "patternSteps": 12, "weight": 2}]. One set is chosen per image and laid over the parameters before they resolve, so values change together. A list of such lists makes several independent choices. On a stack itself (top level, next to layers) the chosen set is shared: it is laid over every layer's parameters, including layers that play another preset. Per layer the order is: its parameters, then the stack's shared set, then the layer's own linked picks. - Per-bar choices ("redraw every N bars", under the parameters, for a preset, a stack or a
"perBar": n in the file): the values (ranges, options, linked picks) are drawn again for every N bars, and each draw paints only its own bars. Many legacy methods choose per bar; without it a preset chooses once per image. A drawing with N = 1 renders bars-many passes. - Unsaved edits are marked
. They take effect in live renders straight away, like scene edits.
Code:
formsGenerators.h (schema, presets, resolve), with presets and preview routing in formsEngine.h and the tab in formsEditor.h.Cover (Forms GL Box)
Instruments have a cover tab alongside pattern, pitch and chord. Stack presets also have Cover (whole instrument), shared by their chosen child shapes; their inline generators retain their own cover tabs. Scene and Live layer properties have Cover (this layer). Instrument Cover uses just that instrument's silhouette, including its processes, per-bar clipping and cell gain. Layer Cover uses the whole layer after its blur / trail. Both are off by default and saved with the instrument preset or scene respectively.
- Grow right: extend the silhouette towards later beats only, without covering earlier pixels.
- Grow height: enlarge the silhouette above and below, independently of rightward growth.
- Feather: soften the edge vertically and towards the right; it never extends into the past.
- Release: extend it towards later beats, fading linearly over the given beat count.
- Legacy blanking/solo blocks (for example arp loop block) also carry an automatic eraser
- Amount: strength of the ducking.
- Mode: eraser makes the destination transparent; black makes the covered area opaque
- Acts on: all layers below, the layer immediately below, or all other layers. Below follows
Covers are prepared before any destinations are changed, so overlapping covers do not feed back into one another. Muted/unsoloed layers do not cover. Playback and sonification use the covered layer buffers; native still/video exports, separate layer exports, and panorama export use Cover too. Archived pages retain grayscale mask PNGs referenced by their sidecars, so Gallery replay keeps instrument Cover. Layer settings are read live from the scene (with the archived setting as fallback if the scene no longer exists). Layer Cover edits act immediately; instrument Cover edits follow the usual Immediate setting / next-page behavior.
Layers and parallax (Phase 3)
A scene has no fixed layer-count limit; playback, per-layer effects, sonification and exports grow with it within available memory, GPU and audio-server resources. The Scenes tab shows them as a stack (top of the stack first), next to the Scene settings (BPM, palette, scale, notegrid, root note, harmony) that all layers share. Each layer row has its opacity slider and up / down arrows to change which layer is drawn on top; below the stack, the selected layer's bars, blend (lighten / add / normal), kick and remove, and + layer. Opacity, blend and order apply live to what is playing. Layer 1 sets the clock wherever it sits in the stack. Under the two panels, the selected layer's instruments (+ Add instrument, image chance; groups and rows under "advanced"). Right-click a method's thumbnail to Move to layer N (or to a new layer): it keeps its chance and group and takes the first free row of that layer.
- Layer 1 keeps the clock's timing exactly as before (GO, analog mode, sequence, repeats).
- Additional layers are placed in absolute beats. Every image is one view wide, so a layer with more
- Harmony is one timeline in absolute bars: layer 1 makes it as before, the other layers read
- Composite: each layer is drawn with premultiplied colour and its alpha, then the layers go
- Save frame (Play tab) writes
data/FormsBox_frame.png(the composite) and.txt: the header
- Engine tab: the header beat, per layer its position in its image and counts (shown,
- Test scene:
PARALLAX_TEST(layers of 8 / 6 / 4 bars drawing a thin line at every bar, in
- Scenes follow layer 1, bar by bar. Forms Box keeps the plan of layer 1's images (start
- Scene changes: staggered (default): each extra layer switches at its own next image.
- Harmony stays aligned. Layer 1's first image starts at beat 0; when a layer-1 image reaches
- Kick output: the kick layer's lowest rows at the header (28 of 1080, the 100 of 3840 the
6--ESPECTRES_2027_4, Macro_2's kick input came from it: Macro_4's probe at Y = 3740 read outside the 1080-high image and never fired.) - Timeline:
sessions/<session>/timeline.jsonl, one line per image as it reaches the header
- Export panorama (Engine tab): the last whole cycle of all layers (the least common multiple
- Not yet: per-layer sound columns (the sound reads the composite).
Gallery (Phase 5)
Every session is archived in
<renderer>/sessions/<session>/ (each image's PNG and its recipe). The Gallery tab browses them: - Sessions on the left (newest first; "now" marks the running one), Refresh to rescan.
- A thumbnail grid of the session (made in the background and cached in
.gallery/), with a
- Click an image: it shows large, with its recipe: scene, layer, seed, bars, BPM, scale,
- Replay this session plays the session again from its archive, in its order, through the
- Freeze as scene: a new scene whose layer always draws exactly this image (its recipe and seed:
- Promote to scene: a new scene with this image's settings and instruments (each at 100%), to
ofxAddons