Commit graph

608 commits

Author SHA1 Message Date
Yotam Mann
fd84c251f7 eslinting 2018-01-03 12:07:06 -05:00
Yotam Mann
3f72fec6f9 returning a promise defers the rendering till the promise has resolved 2018-01-03 12:02:10 -05:00
Yotam Mann
ec3a2d24e2 using getTicksAtTime to get the most accurate BarsBeatsSixteenths 2018-01-02 12:25:13 -05:00
Yotam Mann
dded291a25 linting 2018-01-02 10:37:27 -05:00
Yotam Mann
08607ad9af linting 2017-12-30 00:21:08 -05:00
Yotam Mann
b0f729c9f1 static fromUrl method. 2017-12-30 00:06:53 -05:00
Yotam Mann
4e26a039bc handling error case when url is passed into constructor 2017-12-30 00:06:27 -05:00
Yotam Mann
b4feef6776 linting 2017-12-29 21:19:57 -05:00
Yotam Mann
e201ca1958 ignore isPast warning for certain classes 2017-12-29 21:15:47 -05:00
Yotam Mann
985ce80a71 updated Transport.syncSignal to new Param values 2017-12-29 20:07:24 -05:00
Yotam Mann
1104f3cfc0 moving automation logic to Param instead of AudioParam shim 2017-12-29 20:05:57 -05:00
Yotam Mann
b4c81f7115 misspelled Approach in exponentialApproachValueAtTime 2017-12-29 20:04:46 -05:00
Yotam Mann
b7424b5e4f using the bpm at the current time 2017-12-29 13:47:36 -05:00
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