midicube icon indicating copy to clipboard operation
midicube copied to clipboard

Fix: Delay timings

Open vHeemstra opened this issue 1 year ago • 0 comments

  • Consistent setting of delay.
    • Less than ctx.currentTime: assume relative delay, so add ctx.currentTime for absolute timed instructions.
    • Else: assume absolute timing, so use as-is.
    • Note: When a stream buffer is used, the delay is set using a setTimeout() with delay as number of seconds. In case of absolute delay use, this would not be correct. So maybe never allow absolute delay timings?
  • Removed inconsistent returns.
  • Some additional cleanup/refactoring.

vHeemstra avatar Feb 21 '24 10:02 vHeemstra