← Back

ofxOceanodeForms

github.com/PlaymodesStudio/ofxOceanodeForms · @PlaymodesStudio
OF 0.12 GUI

FORMS / Scroller nodes for ofxOceanode

0 0 Last commit 17d ago Created 1mo ago

README

ofxOceanodeForms



FORMS / Scroller nodes for ofxOceanode, registered under the Forms category:

the data folder, the requests for each image drawn in the app by its renderer (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. OSC; patches 6-- and 7--, now in 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: header, its layers, colour and harmony, performance. starts with the playing scene's instruments and has a LIVE EDIT row (Audition, Immediate). (timings, Archive images, GPU, Make thumbnails), the node's published settings, the 1920 import, layer timing, the log.

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. while another is, is neither drawn (composite and background) nor heard, and does not fire the kick; it keeps scrolling and receiving its pages, so unmuting is instant. Muted wins over soloed. Not the Sonification tab's "Layer N" switch, which only silences the sound. Audition is heard alone whatever is muted. Live): the pages on stage and waiting are drawn again without the muted instruments (or with only the soloed ones), and so are new pages; muting a stack mutes the presets it plays. Items with no instrument (legacy methods) stay under mute and go under solo. The recipes stay whole, so unmuting draws them complete again. These redraws are never written to the archive (it keeps each page as first drawn; a page first drawn while something was muted is archived that way, its sidecar's 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 in Scenes tab now also switches to the Scenes tab.

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)



is drawn with this chance (v1's "random" / "thin" partial modes, 0.5 / 0.2). Partial detune (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. phrase per step (v1 octaveUp). Voicing "scattered": each chord voice a random degree of the octave. +- detune / 2); v1 clearChance -> a 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. pass per run of non-overlapping slots, gains may overlap) instead of one pass per event: DUBTECH 229 -> 14-20 passes per frame. Details: ESPECTRES_2027/notes/v2_performance.md.

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).

rename a preset in its name field; scenes that use it follow the rename. to have one of them picked for each image. palette of the chosen scene. The image shows in the tab, never in the scroller. It is also saved as the preset's thumbnail (thumbnails/<gen>/<name>.png). **Values used for this image** lists what was picked. browser and the picker, under Instruments. all layers (each layer may have a chance %, and layers with the same group number share one roll), one layer per image (weighted), or one group per image (the layers of one group play together; a group's weight is its first layer's; chance then rolls per layer). + layer > a preset adds a layer that plays another preset, resolved per image (stacks inside stacks, up to 5 deep; a stack can't include itself). Renaming a preset updates the stacks that play it; the header shows how many stacks use a preset. parameter sets, e.g. [{"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. stack layer; "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. Save writes the file; Revert reloads it.

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.
Growth and feather use pixels at 1920 x 1080, scaled with the view/export resolution.
  • 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
mask for their exact time window. Moving the instrument to a separate layer still erases the layers below; this does not paint black or require enabling Cover. These masks have no grow, feather or release and follow instrument gain, clipping, mute/solo and visual stack order.
  • Amount: strength of the ducking.
  • Mode: eraser makes the destination transparent; black makes the covered area opaque
black. Both suppress the destination's sound there.
  • Acts on: all layers below, the layer immediately below, or all other layers. Below follows
the visual stacking order, including reordered layers; the source never covers itself.

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).
Its scroller also counts the beat under the header: each image is bars x 4 beats.
  • Additional layers are placed in absolute beats. Every image is one view wide, so a layer with more
bars scrolls more slowly (parallax), and the header sits at the same beat in every layer: all layers cross each beat and bar line at the header together. Forms Box asks the renderer for them ahead of time (one image beyond the current one), only when no layer-1 request is waiting (layer 1 has priority and one place in the renderer queue stays free for its next GO; the renderer is one queue, so short layers at high BPM can outrun it). A new layer starts 2 bars after the header (start bars ahead in the Engine tab). Each layer renders two images ahead (the next image enters at the right edge well before the header reaches it). If it isn't ready when the right edge needs it, the previous image repeats there; an image that arrives after its place is on screen goes to the next free place instead, so nothing pops in mid-view (Engine tab: "late (moved on)"; its harmony is that of its first place).
  • Harmony is one timeline in absolute bars: layer 1 makes it as before, the other layers read
the same bars, so all layers play the same degrees and transposes at the same moment.
  • Composite: each layer is drawn with premultiplied colour and its alpha, then the layers go
over black from layer 1 up: lighten = the brighter, add = the sum, normal = over (by alpha); gain scales the colour. A single-layer scene comes out as before.
  • Save frame (Play tab) writes data/FormsBox_frame.png (the composite) and .txt: the header
beat and position, and per layer the images drawn and where (to check alignment and alpha).
  • Engine tab: the header beat, per layer its position in its image and counts (shown,
repeated, too late, waiting), and "Sync at each bar line" (each layer's position at every bar). At a bar line every layer reads a multiple of 1 / its bars (a 6-bar layer: 0, 0.167, 0.333 …), plus the tiny step of one frame.
  • Test scene: PARALLAX_TEST (layers of 8 / 6 / 4 bars drawing a thin line at every bar, in
the top / middle / bottom third): at the header the three lines meet.
  • Scenes follow layer 1, bar by bar. Forms Box keeps the plan of layer 1's images (start
bar, length, scene); an extra layer uses the scene layer 1 plays at the bar it renders (past the plan: the scene layer 1 asks for next). A scene without that layer leaves it silent.
Hard cut*: every layer switches at the first bar of the new scene; an image running across it is cut there. Per setlist entry (Setlist tab, cut column) and, without the setlist, the node's Hard Cut setting. Images rendered ahead with the old scene are cancelled and asked again (unless already on screen). the header at another bar than planned (a repeat, a lost request), the rest of the plan and the harmony timeline move with it, so the musical outputs (from layer 1's image) and the other layers agree again from the next image. 1920 probe read), mean above 0.5, times the scene's Kick detect. Mark the kick layer in the Scenes tab (kick layer); none marked: layer 1. (In the old 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.) (layer, id, start beat, length, png, blend, gain). of their lengths) on one beat axis at layer 1's scale, composited as live, as one PNG in the session folder (up to 16384 px wide).

Gallery (Phase 5)



Every session is archived in <renderer>/sessions/<session>/ (each image's PNG and its recipe). The Gallery tab browses them: layer filter and a scene search. palette, the harmony per bar, and every instrument in drawing order with its render time; open one to see the values it had (only those that differ from the generator's defaults). Copy recipe puts the whole sidecar on the clipboard. player, with no rendering, looping until Stop replay. Sessions with a timeline (since the layers) replay all their layers at their beats; older ones replay layer 1. nothing is chosen at random; its harmony goes on the timeline so other layers follow it). The Scenes tab marks a frozen layer and can unfreeze it. vary

Get this addon

HTTPS
SSH