Recording
The recording example demonstrates multi-track recording with microphone input, live waveform preview, VU meter, and the ability to import audio files via drag-and-drop. View Live Demo →What It Demonstrates
- Live recording - Record from microphone with AudioWorklet processor
- Real-time waveform - See waveform as you record
- VU meter - Monitor input levels with peak indicators
- Device selection - Choose from available microphones
- Auto-scroll - Keeps recording in view during capture
- Recording positioning - Starts from max(cursor, last clip end)
- Drag-and-drop import - Add existing audio files
- Multi-track - Record on multiple tracks
Complete Example
Key Features
Integrated Recording Hook
TheuseIntegratedRecording hook manages the entire recording lifecycle:
Recording requires the
@waveform-playlist/recording package and AudioWorklet setup. See the Recording Guide for configuration details.Recording Position
Recordings start at the maximum of cursor position or last clip end:Live Waveform Preview
Show the recording waveform in real-time:VU Meter
Display input levels with peak hold:- Green zone: Safe levels
- Yellow zone: Approaching peak
- Red zone: Clipping/distortion warning
- Peak hold indicator
Microphone Selection
Choose from available input devices:Auto-Scroll During Recording
Keep the recording in view:Drag-and-Drop Import
Add existing audio files:AudioWorklet Setup
Recording requires copying the AudioWorklet processor to your public directory:Source Code
View the complete source code:- Example component:
website/src/components/examples/RecordingExample.tsx - Recording package:
packages/recording/src/