midicube
midicube copied to clipboard
Fix: Delay timings
- Consistent setting of delay.
- Less than
ctx.currentTime: assume relative delay, so addctx.currentTimefor 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()withdelayas number of seconds. In case of absolute delay use, this would not be correct. So maybe never allow absolute delay timings?
- Less than
- Removed inconsistent returns.
- Some additional cleanup/refactoring.
Sorry @vHeemstra -- I missed this PR ! Will look at it soon -- please ping if I forget again!