Commit graph

595 commits

Author SHA1 Message Date
Yotam Mann
7bd133ca02 using getTicksAtTime for better accuracy when getting progress 2017-12-27 16:29:15 -05:00
Yotam Mann
d72fba9bf7 using setTicksAtTime for more accuracy when setting/looping 2017-12-27 16:28:41 -05:00
Yotam Mann
40891fb865 using clock seconds
they are accurate even during bpm automation curves
2017-12-27 16:24:27 -05:00
Yotam Mann
32d5451293 ability to get/set ticks at a given time. more accurate seconds counter using elapsed ticks. 2017-12-27 16:23:39 -05:00
Yotam Mann
8dbaf71d89 forEachBetween iterator 2017-12-27 11:46:27 -05:00
Yotam Mann
1bb0a95a8e clone array so that events can be added/removed during iteration 2017-12-17 14:18:47 -05:00
Yotam Mann
0bb2391a43 clean up time value on dispose 2017-12-17 13:33:09 -05:00
Yotam Mann
38d493fc68 using Tone.Ticks to represent times 2017-12-17 13:26:04 -05:00
Yotam Mann
92c7638786 evaluate time with .valueOf 2017-12-17 12:53:34 -05:00
Yotam Mann
933fa95b45 define loopStart/End, subdivision and interval in terms of seconds 2017-12-16 14:23:08 -05:00
Yotam Mann
8f3f480baa loopStart/End times in Time instead of TransportTime 2017-12-16 14:08:22 -05:00
Yotam Mann
41eeb9884f adding min/maxValue to Param 2017-12-16 13:09:52 -05:00
Idicious
43c2e9b449 Increased general accurary of dbToGain method + updated test cases. (#279)
* Increased general accurary of dbToGain method + updated test cases.

* Increased test accuracy
2017-12-16 00:04:50 -05:00
Yotam Mann
b929b26ca4 can pass in an unloaded Tone.Buffer into Convolver constructor
fixes #277
2017-12-15 23:36:39 -05:00
Yotam Mann
4c783c9b09 buffer can be constructed with an unloaded Buffer
load callback is invoked when parameter Buffer is loaded
2017-12-15 23:04:22 -05:00
Yotam Mann
0d22648aef adding 'once' to mixin methods 2017-12-15 12:49:53 -05:00
Yotam Mann
e184f9f149 using native connect instead of 'chain' 2017-12-15 12:49:41 -05:00
Yotam Mann
7d1b06f1bb promise-based decodeAudioData 2017-12-15 12:48:58 -05:00
Yotam Mann
a6ebaeeb9f Emitter.once invokes a callback only once 2017-12-15 11:11:14 -05:00
Yotam Mann
db4e5fab0d if the constructor delayTime is greater than the maxDelay, use the delayTime as the maxDelay
fixes #280
2017-12-06 13:16:22 -05:00
Yotam Mann
7b35eee3ed throw error if constructor is invoked without 'new'
addresses #271
2017-11-29 16:28:04 -05:00
Yotam Mann
4316530b16 linting 2017-10-26 16:03:00 -04:00
Yotam Mann
c58fad41f0 linting 2017-10-26 15:26:04 -04:00
Yotam Mann
06118bf52d moving shims to AudioContext 2017-10-26 14:09:20 -04:00
Yotam Mann
a5e949ce6c moving OfflineAudioContext shim to separate file 2017-10-26 13:14:00 -04:00
Yotam Mann
9449a6102c moving shim to it's own file 2017-10-26 00:52:09 -04:00
Yotam Mann
374365f2a8 param uses shimmed AudioParam 2017-10-26 00:51:02 -04:00
Yotam Mann
7f148b5c34 moving shim to another file 2017-10-25 23:01:26 -04:00
Yotam Mann
f707458349 shimming AudioParam to account for a few browser discrepancies 2017-10-25 18:25:41 -04:00
Yotam Mann
2c7e200ade close returns promise like in AudioContext 2017-10-25 17:59:17 -04:00
Yotam Mann
99f73e47f7 Context.ready returns a promise when the AudioContext reports itself as 'running' 2017-10-25 17:59:03 -04:00
Yotam Mann
8c85f8bcf2 Context.dispose returns promise which resolves when the context is closed 2017-10-25 17:58:36 -04:00
Yotam Mann
a82ab45132 linting 2017-10-25 17:57:52 -04:00
Yotam Mann
cb2a982c39 linting 2017-10-21 19:02:46 -04:00
Yotam Mann
54bd67332f fixing logging when is supported and initialized 2017-09-29 00:06:00 -04:00
Yotam Mann
b7287a767b using global TONE_AUDIO_CONTEXT keeps multiple contexts from being created on the same page 2017-09-28 23:44:07 -04:00
Yotam Mann
0723f50796 exponentialApproachAtTime is the same as setTargetAtTime but the timeConstant is computed based on the given time 2017-09-20 19:04:33 -04:00
Yotam Mann
086ff88168 dont limit output value to minValue. throw error when timeConstant <= 0 2017-09-19 22:46:56 -04:00
Yotam Mann
48b15b2c5e removing LFO option from Signal and Param
straightforward to simply connect an LFO to the signal. Also causes
circular dependency issue
2017-09-17 12:26:00 -04:00
Yotam Mann
a097434923 incrementing version 2017-09-17 12:19:39 -04:00
Yotam Mann
13fdf13f57 linting 2017-09-15 17:54:32 -04:00
Yotam Mann
39389e810c warning if scheduling time is in the past
addresses #260
2017-09-15 17:50:12 -04:00
Yotam Mann
1559b8275a Add warning if time is scheduled in the past 2017-09-15 17:45:57 -04:00
Yotam Mann
f1507b0bb7 moving getTimeConstant into its own method 2017-09-13 17:12:25 -04:00
Yotam Mann
20ac5d8d11 cancel values after the current time, but not into the future 2017-09-13 11:18:49 -04:00
Yotam Mann
9f545c4bdd exponential approach rampTo 2017-09-13 11:00:32 -04:00
Yotam Mann
918e18119a small jsdoc tweak 2017-09-09 19:10:02 -04:00
Yotam Mann
f3732410dc class extends TransportEvent 2017-09-04 16:16:34 -04:00
Yotam Mann
08812c0886 optimizing the way that repeat events are handled 2017-09-04 16:08:47 -04:00
Yotam Mann
5d86d72cfb handles events which are added during iteration in the same was as events which are removed during iteration 2017-09-04 16:04:16 -04:00