Skip to content

Releases

Playhead 0.4.0

Choose a tag to compare

@eigensoundlab eigensoundlab released this 11 Nov 00:11

0.4.0 (2026-11-11)

Added

  • Levels (playhead levels, Playhead.levels, src/levels.js, docs/LEVELS.md): many files at
    relevant levels without touching them. Every analysis now has summary.levels: peak, true peak (4x oversampled),
    RMS, integrated loudness (ITU-R BS.1770-5) and the loudest 0.4 s and 3 s (EBU Tech 3341), over the file, the sounding
    span, the loudest event and each event. A spec (playhead-levels v1) holds the settings (measure, default the
    loudest 0.4 s of the loudest event; target, amount, depth, limits) and tag rules (groups set offsets, modifiers add,
    notes only ask for checks; tags from Kurator, or the file's folder, its UCS category, Playhead's class); a manifest
    adds one gain per file, limited by the true-peak ceiling. The command line measures folders, keeps the manifest as a
    store (unchanged files are not analysed again) and writes a report (HTML or CSV): each group's spread and outliers,
    files to check, and where peak, RMS, LUFS-I, Max M and Max S would level a file differently from the project's
    measure. Asset checks now carry a code. Two pilots (experiments/levels): on the
    corpus's 56 effects the usual measures disagree by 6 to 18 dB per file; limiting shows in a sound's own numbers, while
    compressing a one-shot raises its crest factor.
  • Playhead for REAPER 0.3.0: levels. Level items brings the selected items (or all) to relevant levels without
    touching their files: measures from a playhead-levels.json next to the sounds or from Playhead's analysis, gains
    from the project's tag rules and settings (Levels settings), as take volume, with group offsets on take gain or on
    a track named like the group. Volumes and faders changed by hand are left alone; the report goes to the console. The
    Lua port gives the same gains as Playhead.levels (tested). A loop in the core library no longer assigns to its
    loop variable (Lua 5.5 forbids it).
  • Playhead for REAPER 0.3.1: tracks and folders in the strip window. With a track selected, the strip window draws the track, or a folder
    with every track under it: each item as the part of its file it plays, at its volumes, combined from the items'
    analyses without rendering the mix. Playhead.slice(doc, start, end, { rate }) cuts a document to the part an item
    plays; playhead combine --parts parts.json combines documents named in a file (each cut by start, end,
    rate).
  • Audiovisual Playhead (experiments/av, on the site at /av/): one scene drawn twice
    from the same sound by the same rules, with WebGPU or WebGL 2. The left side runs them on the usual signals (level,
    WebAudio analyser octaves, MilkDrop-style band beats, energy trend, level jumps, the loudest bin), worked out frame by
    frame without looking ahead; the right side on Playhead's analysis, known in advance. A timeline of what each side
    detected and did under each; for three demos with known parts (a dance arrangement, a melodic piece, a sound-design
    reel) what each side found. On the arrangement every kick, 80 of 81 snares and 168 of 190 hats at 0 to 1 ms against
    79 kicks, 29 snares and 133 hats at +8 to +9 ms, the build exactly, the drop 14 ms off and the pass-by 23 ms off
    where the usual signals have none; on the melody 31 of 38 note starts (usual 1), 17 of 17 vibratos at their rate;
    on the reel every shot and boom to a millisecond (usual +17 ms on the booms), the shots' after-effects, the motor's
    spin-up, spin-down and rotor. Where it does not win: the alarm's distortion is a tie, a clipped part inside a mix is
    weakly seen by both. Three scenes (rings, a ribbon for melody, a forge for sound effects and games). Both sides start
    alike (bias-corrected averages, the automatic gain from a reference level). Linked from the app's footer; open your
    own file to compare.
  • Cues (Playhead.cues, src/cues.js, and the rule editor on the Audiovisual page): rules that turn events into
    cues: on an event (each band's hits, beats, bars, sections new or repeated, builds and drops, fills, breaks, a
    sound's start, its peak and its after-effect, glides up and down, pass-bys, vibrato), an action, by an amount, for a
    length (seconds, beats, bars, or the event's own), in a shape (pulse, hold, ramp, swell, fade), at the event or
    before or after it; mappings make an action follow a signal. Presets for rhythm, anticipation (cues that land on a
    drop), a game scene (the furnace), melody, and sound effects (weapon, impacts and explosions, devices and vehicles).
    A cue sheet (JSON, playhead-cues v1) lists the cues with their times for engines; the page exports it, and
    playhead cues <file> [--preset name | --rules rules.json] makes it from any sound or document.
  • docs/GAMES.md: Playhead in games and audio-driven visuals: the pipeline (analyse at import,
    cue sheets, play against the sound's clock), the rule format, Unity code (a cue sheet reader and player, a weapon
    driven by its sound's cues), notes for Unreal, Godot, the web, FMOD and Wwise, and sound-effect cues: start, boom,
    after-effect, mechanical detail, spin-up, rotor, pass-by, reverb, and rules that drive sound (sweeteners, ducking,
    reverb sends, debris).
  • pitch curve (sfx and music profiles): the strongest partial's pitch as a MIDI note number, null where no
    partial is clear; where a drum or a click is the strongest partial for a moment (0.15 s at most), the line is
    bridged between the notes, so a melody's line does not dive at each kick. Drawn on C2 to C7. In the lab, REAPER
    (Playhead Control) and the curve menus.
  • Two bench demos with every part known: experiments/bench/melodic.js (phrases, legato slides, vibrato) and
    experiments/bench/sounddesign.js (shots with boom, bolt and tail, a motor with a rotor, a pass-by, a distorted
    alarm, impacts, an explosion). test/cues-tests.js checks the cues and the analysis on them.
  • Hits per band (hits, sfx and music profiles): each band's own onsets, { low, mid, high: [[t, strength]] },
    to the sample: the kick, snare and hat layers for visuals and triggers. A hat struck with a kick is a high hit as
    well as a low one, and quiet 16th hats over an open hat's tail are found (the high band from the signal above 2 kHz
    at 1 ms). On the bench every hit of every band is found (attacks labelled high: 75 %).
  • Builds on the form: a build now ends at the section it arrives at, which makes it a drop, and starts at a section
    start or a downbeat; builds left shorter than 5 s (a rise across a section change) are dropped. The buildup curve
    ramps from each build's start to its drop. Bench riser overlap 1.00 (was 0.71), swell 0.75 (0.67); the
    arrangement's build exact to 10 ms.
  • Fills must stand out from the bars after them too: a bar where a new part enters and stays is no longer a fill.
  • Spectral playheads: views of the spectrum on the beat grid, for what a tempogram cannot show (where in the bar
    the onsets fall, and which part of the spectrum makes them). rhythm.spectral keeps, per bar, 16th step and octave
    group, the level and the attack strength (about 350 bytes a bar). Three looks: Bar spectrum (raster:spectrum, a
    row per bar, a column per 16th, low red, mid green, high blue), Spectral groove (raster:spectrum~attacks, the
    same in attacks: each bar's drum pattern from the mix) and Metrical spectrogram (spec:metric, per octave group
    and bar the finest metrical level its attacks keep to, bar to 16ths). In the app's look composer, Playhead.view
    (kinds raster with curve spectrum, and metric), and REAPER's strip window (the Lua port equals the library's
    drawing at every point). On the new bench arrangement (experiments/bench/arrangement.js: intro, groove, break with
    a pass-by, build, drop, outro, synthesized with its form known) the metrical spectrogram reads the kick band as the
    half bar in the groove and the beat in the drop, the off-beat bass and the hats as 8ths, and the build's snare band
    going from the beat to 8ths to 16ths.
  • Rhythm changes, builds and sound motion (descriptors from the research report, each tested on the bench first):
    • Per bar on the beat grid: swing, the drum pattern (per band, 16 steps), surprise against the four bars
      before, and change (fill or break); rhythm.template, the groove (per band and step the median strength and
      timing); curves patternSurprise and swing. On the bench every fill and break is found with none false, and a
      groove that starts to swing at bar 8 is followed bar by bar.
    • builds: stretches where the sound keeps building second by second by density, brightness or loudness, with
      drop where a jump or a hit follows; the buildup curve. A riser at one loudness and a swell of more hits are
      found (overlap 0.71 and 0.67), no groove has a false build.
    • distortion curve: clipped runs and the flattened crest of a saturated sound (clipped against clean blocks at one
      loudness: AUC 1).
    • glides (the strongest partial's steady pitch motion, drum pitch drops left out) and pass-bys among them: the
      Doppler shift of a source going past, with the moment it passes and the speed it shows (a lower bound: 19.6 m/s for
      25); pitchSlope curve. vibrato: held notes whose pitch swings regularly, from a singer's 6 Hz to a rotor's 28 Hz
      (micro-Doppler), from the note's instantaneous frequency.
    • rhythm.signature and rhythmSimilarity(a, b): the rhythm's shape at any tempo (the scale transform), 0.99 for
      the same groove 30 BPM faster. It separates weakly (a waltz 0.92) and microtiming moves it.
    • toMarkers and playhead markers --kinds changes: builds as regions, fills, breaks and pass-bys as m...
Read more

Playhead 0.3.0

Choose a tag to compare

@eigensoundlab eigensoundlab released this 07 Nov 20:02

Playhead reads a sound's analysis as curves, events and structure, and draws them in place of the bare waveform. 0.3.0 adds new ways to see rhythm and form, predicts the sum of several sounds from their analyses, and brings the lab to six languages and the analysis into REAPER.

New

Views of rhythm and form. Five new looks show something other than amplitude:

  • Bar raster: a row per bar (or per 4 bars), like a drum pattern. Click a row to play from it.
  • Tempogram: which tempi are present over time, optionally with the octaves folded.
  • Lag view: where the music repeats what played some bars before.
  • Modulation spectrogram: how fast the level pulses, 0.5–128 Hz, from rhythm through tremolo and flutter to roughness. Works for any sound.
  • Curve scalogram: a research view of the periodic patterns in any curve.

Playhead.view(doc, kind) returns any view as numbers.

Tracks in a folder. Playhead.combine(parts) gives the analysis of a mix of several sounds from their analyses alone, with offsets and gains and no new audio. The lab layers up to three files under a folder track, as in a DAW.

Searching arrangements. Playhead.arrange(parts, { goal }) tries about 500 offsets and gains in a fraction of a second and returns the best few for a punchy, big or clean result.

  • Checked against real mixes (experiments/arrange, 175 arrangements): peak level r 0.99, rise time r 0.90.
  • The search ranks arrangements as their mixes rank (median Spearman 0.92–0.95).
  • Its best candidate beats a rough placement in 23 of 24 cases.
  • Whether the results sound punchier is still to be tested by listening.

Languages. The lab is in English, Czech, German, Polish, Russian and Spanish, with terms from the shared sound vocabulary. Playhead.localize(table, lang) gives other apps the library's labels in these languages.

REAPER integration (integrations/reaper, installable with ReaPack):

  • events, sections and bars as markers and regions;
  • curves as automation through a JSFX that any effect can follow;
  • the tools as new takes;
  • a dockable strip window.

It is tested against the command line in a mock REAPER and not yet run in REAPER itself.

Changed

  • Loudness at the ends of a file. The loudness curve now treats a file as heard with silence before and after it. A clip that starts at once used to begin at full loudness, which made predicted mixes peak up to 2 dB too high and 20–60 ms too early.
    • Only the first and last moments of a file change. On the 73-file corpus, the loudness range of short one-shots moves (by 1 LU or more in 16 files), and so does the tension range of a few files.
    • Every other summary value is unchanged, and the self-checks pass and fail exactly as in 0.2.0 (1363 of 1436).
  • Measures and combining. measureParts counts a layer that comes in late against "together". Very short clips combine instead of being refused.
  • Command line. Output files are written whole, so a host never reads half a file.

The full list is in CHANGELOG.md.

Cite

Paper (preprint): https://doi.org/10.5281/zenodo.24008127
Software, all versions: https://doi.org/10.5281/zenodo.23932625

Apache-2.0. Try it at https://eigensoundlab.github.io/playhead

v0.2.0

Choose a tag to compare

@eigensoundlab eigensoundlab released this 05 Nov 17:12

0.2.0 (2026-11-05)

The first release with a library API, so other apps can embed Playhead, and with looks: the strip is now composed
from layers instead of being fixed.

Added

  • Library API (src/playhead.js, bundled as UMD and ES module in dist/): analyze() and fromAnalysis() return
    a plain-JSON analysis document (schema playhead-analysis v1), drawStrip() draws it into any Canvas 2D context,
    process() and tools() run the effects bench, plus toMarkers() and curveAt(). See
    docs/INTEGRATION.md.
  • A command-line tool (tools/playhead-cli.js, standalone builds by CI) and two examples (an embedded page, an
    analysis worker).
  • Looks: a strip is a list of layers written as a short code (waveform, spectrogram, lines, lanes, sections, marks,
    outline, a waveform sculpted by loudness; in lanes or overlaid; from the baseline, mirrored, as horizon charts or
    lines). 17 ready-made looks, two of them for sound effects (Sound character, Hits and surprise).
  • In the lab: Compose your own (build a look and compare it with the waveform and the spectrogram of the same
    file) and a feedback form for looks.
  • In the document: a mel spectrogram, onset strength, novelty marks, and for music structural change (signed: up for an
    entry, down for a drop) and the local pulse.
  • Tools (13 in all): Reverb on the tails, Drive the hits and Ring time, which follow the events and so do what an EQ
    cannot; Level the events (automatic clip gain); Fold to mono (phase lined up, energy kept, cancellations reported);
    Widen the tails (attacks centred, mono-compatible).
  • Experiments: event levelling against a compressor (experiments/compression),
    and the data behind the paper's figures.

Changed

  • The impulsiveness curve (N1) peaks at the clicks that cause it instead of up to one analysis window early. The
    summary value K is unchanged.
  • Beats and bar lines are drawn so they can be seen at small heights.
  • The corpus results (experiments/corpus/) are in the repository: .gitignore had hidden them along with the
    downloaded corpus audio. experiments/dyneq-corpus.json became experiments/corpus/detector-comparison.json.

src/analysis.js is unchanged since 0.1.0 and the descriptor changes add curves without changing summary values, so
the results in the paper, produced with 0.1.0 (10.5281/zenodo.23932626),
still hold.

v0.1.0

Choose a tag to compare

@eigensoundlab eigensoundlab released this 03 Nov 22:24
0.1.0 zenodo