@waveform-playlist/engine 13.6.0 → 13.6.1
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/dist/index.d.mts +9 -2
- package/dist/index.d.ts +9 -2
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -206,10 +206,17 @@ interface PlayoutAdapter {
|
|
|
206
206
|
setTempo?(bpm: number, atTick?: number): boolean | void;
|
|
207
207
|
/** Set time signature at a tick position. */
|
|
208
208
|
setMeter?(numerator: number, denominator: number, atTick?: number): void;
|
|
209
|
-
/** Convert ticks to seconds using the adapter's tempo map.
|
|
209
|
+
/** Convert ticks to seconds using the adapter's tempo map. Accepts a
|
|
210
|
+
* fractional tick position (e.g. from secondsToTicksExact). */
|
|
210
211
|
ticksToSeconds?(tick: number): number;
|
|
211
|
-
/** Convert seconds to
|
|
212
|
+
/** Convert seconds to an integer tick using the adapter's tempo map. */
|
|
212
213
|
secondsToTicks?(seconds: number): number;
|
|
214
|
+
/** Convert seconds to a fractional tick position using the adapter's tempo
|
|
215
|
+
* map — for sub-tick placement (a recorded note between ticks, before
|
|
216
|
+
* quantising). Optional; an adapter that cannot provide it leaves it out,
|
|
217
|
+
* and a consumer that needs it should fall back to secondsToTicks (no
|
|
218
|
+
* engine code path consumes it yet). */
|
|
219
|
+
secondsToTicksExact?(seconds: number): number;
|
|
213
220
|
/** Register a worklet module URL on this adapter's AudioContext.
|
|
214
221
|
* Abstracts native vs standardized-audio-context differences. */
|
|
215
222
|
addWorkletModule?(url: string): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -206,10 +206,17 @@ interface PlayoutAdapter {
|
|
|
206
206
|
setTempo?(bpm: number, atTick?: number): boolean | void;
|
|
207
207
|
/** Set time signature at a tick position. */
|
|
208
208
|
setMeter?(numerator: number, denominator: number, atTick?: number): void;
|
|
209
|
-
/** Convert ticks to seconds using the adapter's tempo map.
|
|
209
|
+
/** Convert ticks to seconds using the adapter's tempo map. Accepts a
|
|
210
|
+
* fractional tick position (e.g. from secondsToTicksExact). */
|
|
210
211
|
ticksToSeconds?(tick: number): number;
|
|
211
|
-
/** Convert seconds to
|
|
212
|
+
/** Convert seconds to an integer tick using the adapter's tempo map. */
|
|
212
213
|
secondsToTicks?(seconds: number): number;
|
|
214
|
+
/** Convert seconds to a fractional tick position using the adapter's tempo
|
|
215
|
+
* map — for sub-tick placement (a recorded note between ticks, before
|
|
216
|
+
* quantising). Optional; an adapter that cannot provide it leaves it out,
|
|
217
|
+
* and a consumer that needs it should fall back to secondsToTicks (no
|
|
218
|
+
* engine code path consumes it yet). */
|
|
219
|
+
secondsToTicksExact?(seconds: number): number;
|
|
213
220
|
/** Register a worklet module URL on this adapter's AudioContext.
|
|
214
221
|
* Abstracts native vs standardized-audio-context differences. */
|
|
215
222
|
addWorkletModule?(url: string): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@waveform-playlist/engine",
|
|
3
|
-
"version": "13.6.
|
|
3
|
+
"version": "13.6.1",
|
|
4
4
|
"description": "Framework-agnostic engine for waveform-playlist — pure operations and stateful timeline management",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"tsup": "^8.5.1",
|
|
42
42
|
"typescript": "^5.9.3",
|
|
43
|
-
"vitest": "^
|
|
44
|
-
"@waveform-playlist/core": "12.6.
|
|
43
|
+
"vitest": "^5.0.3",
|
|
44
|
+
"@waveform-playlist/core": "12.6.2"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@waveform-playlist/core": ">=7.0.0"
|