@waveform-playlist/recording 14.0.0-next.4 → 14.0.0-next.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -228,7 +228,7 @@ Batteries-included hook: wires `useMicrophoneAccess` + `useMicrophoneLevel` + `u
228
228
 
229
229
  **Returns (`UseIntegratedRecordingReturn`):** recording state (`isRecording`, `isPaused`, `recordingTrackId`: the track the running take was started on, `null` when none is running), the two live sources (`meter`: microphone levels; `progress`: the take's elapsed time and per-channel preview peaks), microphone state (`stream`, `devices`, `hasPermission`, `selectedDevice`), controls (`startRecording` — resolves `true` when capture actually started, `false` with `error` set when the take is refused, `stopRecording`, `pauseRecording`, `resumeRecording`, `requestMicAccess`, `changeDevice`), and a combined `error`.
230
230
 
231
- **Recording into a `@waveform-playlist/browser` playlist:** call `useRecordingSession({ isRecording, trackId: recordingTrackId })` (from `@waveform-playlist/browser`) in the component that calls `useIntegratedRecording`; the view's `<WaveformRecordingPreview>` only draws the take. For an overdub, also call `useEditorControls().setRecordingActive(true, trackId)` *before* `play()` — while the session is active the end-of-timeline auto-stop is suppressed (the take can run past existing audio) and the recorded-over track is muted in the arrangement's mix (punch-in replaces what it holds): the mixer and the track's Mute button show it, the built-in `<TrackMuteButton />` is disabled, and `useTrack().isRecordingArmed` is true for it. The mute from before the take is written back when the session ends, whatever was set in between. Both reset automatically when the recording ends; check `startRecording()`'s boolean and release the session on `false`. `play()` does nothing before the playlist's first ready, so a take started during the first load records without playback.
231
+ **Recording into a `@waveform-playlist/browser` playlist:** call `useRecordingSession({ isRecording, trackId: recordingTrackId })` (from `@waveform-playlist/browser`) in the component that calls `useIntegratedRecording`; the view's `<WaveformRecordingPreview>` only draws the take. For an overdub, also call `useEditorControls().setRecordingActive(true, trackId)` *before* `play()` — while the session is active the end-of-timeline auto-stop is suppressed (the take can run past existing audio) and the recorded-over track plays muted for the take (punch-in replaces what it holds; `arrangement.setTrackRecording`, which leaves the track's own mute in the arrangement's mix alone): the mixer and the track's Mute button show it, the built-in `<TrackMuteButton />` is disabled, and `useTrack().isRecording` is true for it. A mute set on the track during the take stays after it. Both reset automatically when the recording ends; check `startRecording()`'s boolean and release the session on `false`. `play()` does nothing before the playlist's first ready, so a take started during the first load records without playback.
232
232
 
233
233
  ### Types
234
234
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waveform-playlist/recording",
3
- "version": "14.0.0-next.4",
3
+ "version": "14.0.0-next.5",
4
4
  "description": "Audio recording support for waveform-playlist using AudioWorklet",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -46,14 +46,14 @@
46
46
  "tsup": "^8.5.1",
47
47
  "typescript": "^5.9.3",
48
48
  "vitest": "^5.0.3",
49
- "@waveform-playlist/engine": "14.0.0-next.1"
49
+ "@waveform-playlist/engine": "14.0.0-next.2"
50
50
  },
51
51
  "dependencies": {
52
- "@waveform-playlist/playout": "13.0.0-next.2",
53
- "@waveform-playlist/engine": "14.0.0-next.1",
54
- "@waveform-playlist/worklets": "13.0.1-next.0",
55
- "@waveform-playlist/core": "13.0.0-next.2",
56
- "@waveform-playlist/ui-components": "15.0.0-next.4"
52
+ "@waveform-playlist/core": "13.0.0-next.3",
53
+ "@waveform-playlist/engine": "14.0.0-next.2",
54
+ "@waveform-playlist/playout": "13.0.0-next.3",
55
+ "@waveform-playlist/ui-components": "15.0.0-next.5",
56
+ "@waveform-playlist/worklets": "13.0.1-next.0"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "react": "^19.0.0",