mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-16 22:58:02 +00:00
Two fixes and the wiring that makes the script reachable. CORRECTNESS: the levelling stage now goes in FRONT of a trailing limiter instead of being appended after it. The likely sequence is "apply Clean Voice, then even out the levels", and Clean Voice ends in a Peak Ceiling — so appending put up to 12 dB of lift after the ceiling that exists to bound the chain. Every quiet-to-loud transition would leave residual lift on material already at -1 dBFS, and the render shears that flat. A ceiling with something added after it is not a ceiling. Falsified by reverting to append. WIRING: "Even Out Levels" sits beside "Tone (EQ)" in the add menu, decoding in an OfflineAudioContext and locking the rack while it works, exactly as the carve does. The same control removes it once present, because pressing it twice never means "add a second levelling stage". The stage itself needs no bespoke module — it is a gain node carrying a label and a lane, and the rack already renders that correctly. THE TRAP, now covered: a script hands back a whole HfAutomation describing only its OWN lane, so writing it to the attribute would take the carve's per-band lanes and the track's volume lane with it — silently, totally, and noticed only later when the mix has lost its ducking. `withLane` merges by target instead, and removal takes the orphaned lane with the node. This had no test until the mutation survived; propertyPanelAutomation.test.ts now covers it and fails when withLane replaces the set. Core 1720 -> 1721, studio 3668 -> 3674. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@hyperframes/studio
Browser-based composition editor UI for Hyperframes. Provides a visual timeline, code editor, and live preview for building video compositions.
Install
npm install @hyperframes/studio
What it does
The studio is a React application with:
- Visual timeline — drag, resize, and arrange elements on tracks
- Code editor — edit HTML and GSAP scripts with CodeMirror (syntax highlighting, autocomplete)
- Live preview — see changes in real time as you edit
- Composition inspector — view and modify element properties
Development
The studio is embedded in the hyperframes preview command. To develop the studio UI itself:
cd packages/studio
bun run dev # Start Vite dev server
bun run build # Build for production
bun run typecheck # Type-check
Tech stack
- React 18/19, Zustand (state management)
- CodeMirror 6 (editor)
- Tailwind CSS (styling)
- Vite (bundler)
- Phosphor Icons
Documentation
Full documentation: hyperframes.heygen.com/packages/studio
Related packages
@hyperframes/core— types and parsers used by the editorhyperframes— CLI that serves the studio viahyperframes preview