elektron-lfo 1.0.7 → 1.0.8
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 +3 -0
- package/package.json +1 -1
- package/src/engine/lfo.ts +8 -0
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/src/engine/lfo.ts
CHANGED
|
@@ -294,4 +294,12 @@ export class LFO {
|
|
|
294
294
|
stop(): void {
|
|
295
295
|
this.state.isRunning = false;
|
|
296
296
|
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Reset timing so the next update() call treats it as the first call (deltaMs = 0).
|
|
300
|
+
* Use this when resuming from pause or starting transport to avoid large phase jumps.
|
|
301
|
+
*/
|
|
302
|
+
resetTiming(): void {
|
|
303
|
+
this.lastUpdateTime = 0;
|
|
304
|
+
}
|
|
297
305
|
}
|