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 CHANGED
@@ -524,6 +524,9 @@ class LFO {
524
524
  stop() {
525
525
  this.state.isRunning = false;
526
526
  }
527
+ resetTiming() {
528
+ this.lastUpdateTime = 0;
529
+ }
527
530
  }
528
531
  export {
529
532
  updateFade,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elektron-lfo",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Elektron LFO engine simulator implementation with CLI visualization",
5
5
  "main": "dist/index.js",
6
6
  "module": "src/index.ts",
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
  }