REFERENCE
Component Library
0 native Web Components
PUBLIC CONTRACTS
Data models
Every object passed to a setData() or setState() method has a defined shape. Fields, examples, and validation rules below come directly from the runtime schemas. Event payloads are defined here too.
INTEGRATION
Arrangement controller
Use ArrangementController as the source of truth and connectArrangement() to synchronize any combination of these components. The host supplies playback timing.
Example ยท shared state
import { ArrangementController } from './src/arrangement/arrangement-controller.js';
import { connectArrangement } from './src/arrangement/connect-arrangement.js';
const controller = new ArrangementController({ sections: songSections, bpm: 120 });
const binding = connectArrangement({
controller,
strip: document.querySelector('section-strip'),
list: document.querySelector('section-list'),
overview: document.querySelector('arrangement-overview'),
lyricEditor: document.querySelector('lyric-editor'),
transport: document.querySelector('player-transport'),
seek: seconds => audioPlayer.seek(seconds)
});
// Call from your audio engine whenever playback changes:
binding.setPlayback(audioPlayer.currentTime, audioPlayer.playing);
// To disable lyric drop targets when using the vertical list:
// binding.setNavigation('list');
// When leaving the view:
// binding.destroy();
Each component links to its exact data contracts and includes its exact JavaScript source, rendered Shadow DOM, CSS custom properties, exposed CSS parts, attributes, and JavaScript API. Composite components expose child controls for reuse.