ClipTrack
Represents a track containing multiple audio clips in the multi-track editing model.Import
Type Definition
Properties
Unique identifier for this track
Display name for this track
Array of audio clips on this track. See Clip Types for details.
Whether this track is muted
Whether this track is soloed (only soloed tracks play when any track is soloed)
Track volume level (0.0 to 1.0+)
Stereo pan position (-1.0 = left, 0 = center, 1.0 = right)
Optional color for visual distinction in the UI (any CSS color value)
Track height in pixels for the UI
Optional effects processing function for this track. See Effects Types for details.
Visualization render mode. Default: ‘waveform’. Can be ‘waveform’ or ‘spectrogram’.
Per-track spectrogram configuration (FFT size, window type, frequency scale, etc.)
Per-track spectrogram color map name or custom color array
Track Factory
Create a new track with sensible defaults using thecreateTrack helper function.
Import
Function Signature
Options
Example
Timeline
Represents the entire multi-track project/timeline.Import
Type Definition
Properties
All tracks in the timeline
Total timeline duration in seconds
Sample rate for all audio (typically 44100 or 48000)
Optional project name
Optional tempo in BPM for grid snapping
Optional time signature for grid snapping
Example
Legacy Track Interface
The library also supports a simpler single-track model for backward compatibility.Import
Type Definition
This interface is maintained for backward compatibility. For new projects, use the clip-based model with
ClipTrack and AudioClip instead.Related Types
- Clip Types - AudioClip interface and factory functions
- Effects Types - TrackEffectsFunction and effect definitions
- Annotation Types - AnnotationData and related types