@dawcore/transport 0.0.16-next.10 → 0.0.16-next.11
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.
- package/README.md +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -47,7 +47,7 @@ transport.setTracks([
|
|
|
47
47
|
transport.play();
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
### With
|
|
50
|
+
### With EditorEngine (dawcore)
|
|
51
51
|
|
|
52
52
|
```typescript
|
|
53
53
|
import { NativePlayoutAdapter } from '@dawcore/transport';
|
|
@@ -200,7 +200,7 @@ The pan stage implements the same two laws — its output matches a `StereoPanne
|
|
|
200
200
|
|
|
201
201
|
**Which law a track has.** `trackPanLaw(track)` is the track's own `panLaw` when that is `'mono'` or `'stereo'`. A track that carries none (or `'auto'`) gets the law of its clips: `'stereo'` if any clip's buffer has two or more channels, else `'mono'`.
|
|
202
202
|
|
|
203
|
-
- **Under
|
|
203
|
+
- **Under an `EditorEngine`** (the React provider, `<daw-editor>`), the arrangement decides each track's law from the first decoded audio the track holds, keeps it, and sends it in `track.panLaw`. Adding or removing clips then never moves the level of the audio already on the track.
|
|
204
204
|
- **Used on its own**, the transport holds no such memory: a track you pass without `panLaw` follows its clips each time you pass it. Adding the first stereo clip to a track of mono clips, or removing the last one, then moves the mono clips by 3 dB at centre (on `updateTrack` the gains ramp over 10 ms, so the step does not click; `setTracks` rebuilds every track node at its law, with no ramp). Put `panLaw: 'mono'` or `'stereo'` on the tracks you pass in to keep the level where it is.
|
|
205
205
|
|
|
206
206
|
`setTrackPanLaw(trackId, panLaw)` switches a track's law without touching its clips: playing sources go on playing. `'auto'` there means "from the clips of the track the transport holds".
|