@waveform-playlist/playout 12.5.4 → 12.5.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.
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2235,7 +2235,13 @@ function createToneAdapter(options) {
|
|
|
2235
2235
|
ticksToSeconds(tick) {
|
|
2236
2236
|
return tick * 60 / (_bpm * _ppqn);
|
|
2237
2237
|
},
|
|
2238
|
+
/** Integer tick (engine `PlayoutAdapter.secondsToTicks` contract): the
|
|
2239
|
+
* exact position rounded once here, as NativePlayoutAdapter does. */
|
|
2238
2240
|
secondsToTicks(seconds) {
|
|
2241
|
+
return Math.round(seconds * _bpm * _ppqn / 60);
|
|
2242
|
+
},
|
|
2243
|
+
/** Fractional tick position (engine `PlayoutAdapter.secondsToTicksExact`). */
|
|
2244
|
+
secondsToTicksExact(seconds) {
|
|
2239
2245
|
return seconds * _bpm * _ppqn / 60;
|
|
2240
2246
|
},
|
|
2241
2247
|
// --- Cross-context worklet support ---
|