Commit graph

2325 commits

Author SHA1 Message Date
Yotam Mann
792f85bebd clock is an event emitter 2016-09-24 11:26:57 -04:00
Yotam Mann
a8ebf6ca19 noting changes
[skip ci]
2016-09-24 11:02:15 -04:00
Yotam Mann
d13d0179b3 testing undefined using typeof 2016-09-24 11:01:40 -04:00
Yotam Mann
545a0fe114 immediate scheduling when time <= now + this.blockTime 2016-09-24 10:39:44 -04:00
Yotam Mann
b1765f71b0 moving the minimum timing to the Instrument classes 2016-09-24 10:38:57 -04:00
Yotam Mann
5b9e01be5c Revert "making envelope tests not start on 0"
This reverts commit 244a4188e4.
2016-09-24 10:03:26 -04:00
Yotam Mann
244a4188e4 making envelope tests not start on 0 2016-09-24 00:01:17 -04:00
Yotam Mann
10459f4281 set the .value of the AudioParam when the passed in time is less than one block away
addresses #163. thanks for the suggestion @stuartpb
2016-09-23 20:20:14 -04:00
Yotam Mann
1c3e06c2e5 schedule immediate envelopes one block in the future
this avoids some pops
2016-09-23 20:07:41 -04:00
Yotam Mann
8d59c63d18 toSeconds no longer takes a currentTime value as second parameter 2016-09-23 20:06:07 -04:00
Yotam Mann
2ca887ebea updating packages 2016-09-23 12:51:16 -04:00
Yotam Mann
3d36324b8d updating Q value so it doesn't feedback
Fixes #166

thanks @mmckegg
2016-09-23 10:16:10 -04:00
Yotam Mann
e19e54b072 wrapping playbackRate in Tone.Param 2016-09-22 18:36:44 -04:00
Yotam Mann
c0cb8945a6 AutoPanner LFO goes between -1 and 1
Fixes #165
2016-09-20 19:39:12 -04:00
Yotam Mann
6f35e743a6 get the time before testing Timeline classes 2016-09-20 19:35:21 -04:00
Yotam Mann
07ba833ded making sure it has the time before passing it into Timeline classes 2016-09-20 19:35:07 -04:00
Yotam Mann
4711d704da timeline classes require Number instead of Time
since they were used with different time scales, it makes sense not to
impose Time, but allow for any kind of number.
2016-09-20 19:12:43 -04:00
Yotam Mann
3c5d328b97 should have been using Tone.Transport.ticks instead of now 2016-09-20 18:56:40 -04:00
Yotam Mann
3b6c15ff5b clarifying code using toType() 2016-09-20 18:54:36 -04:00
Yotam Mann
26f7676ef5 frequency has a toFrequency
seems a little redundant, but it’s clearer.
2016-09-20 18:35:49 -04:00
Yotam Mann
e3ca856764 additional TransportTime validations 2016-09-20 18:35:28 -04:00
Yotam Mann
75773eb0f2 binary expressions use the same constructor 2016-09-20 18:27:10 -04:00
Yotam Mann
3b32641d77 corrected toSeconds
didn’t take into account if it was now-relative
2016-09-20 18:25:39 -04:00
Yotam Mann
0856efe50f added toSeconds method
no longer relies on the inherited method
2016-09-20 18:25:06 -04:00
Yotam Mann
9379165928 starts out at 0 progress
fixes NaN issue. Also only goes to 95% bc of loading. the last 5% is
after the file is decoded.
2016-09-20 17:24:56 -04:00
Yotam Mann
372053a029 using Tone.Delay everywhere instead of DelayNode 2016-09-20 00:01:27 -04:00
Yotam Mann
a60328345e using Tone.Gain everywhere instead of GainNode 2016-09-19 23:53:07 -04:00
Yotam Mann
cc232ce3c3 updated buses to use Gain. clearing send/recv on new AudioContext
testing that a gain can be passed in.
2016-09-19 23:30:43 -04:00
Yotam Mann
76ad44360d updating to new API 2016-09-19 23:02:42 -04:00
Yotam Mann
66911d4c72 internal method for making inputs/outputs 2016-09-19 23:01:21 -04:00
Yotam Mann
66c344de38 using Tone.Gain for Multiply 2016-09-19 21:44:41 -04:00
Yotam Mann
31ea7abbd5 styling the code a bit
[skip ci]
2016-09-19 20:21:42 -04:00
Yotam Mann
a6cc5fe845 Decibels ramp linearly
sounds better.
2016-09-19 19:13:59 -04:00
Yotam Mann
2f525e74b7 will emit 'progress' when there is .lengthComputable is false 2016-09-19 00:16:44 -04:00
Yotam Mann
53d7e8df60 noting changes
[skip ci]
2016-09-19 00:09:18 -04:00
Yotam Mann
03c98a2e79 throws error if Tone.LFO isn't available
might be useful to debug.
2016-09-19 00:08:54 -04:00
Yotam Mann
ebf0eb4f64 added Promise tests 2016-09-19 00:08:23 -04:00
Yotam Mann
3b8d44d344 Buffer.prototype.load returns Promise
Also simplified/removed XHR queuing and other complications
2016-09-19 00:08:16 -04:00
Yotam Mann
6a951fa217 using 'emit' instead of 'trigger'
more similar to Node.js EventEmitter class
2016-09-18 20:07:00 -04:00
Yotam Mann
d8d69ae662 changing old docs which used Buffer.onload
[skip ci]
2016-09-18 20:05:01 -04:00
Yotam Mann
8982688f9e can now pass in Infinity or other valid numbers 2016-09-18 20:03:04 -04:00
Yotam Mann
ceefac97e7 adding lengthComputable so that it never divides by 0 2016-09-18 19:45:16 -04:00
Yotam Mann
702fc5f3c2 noting changes
[skip ci]
2016-09-18 19:42:57 -04:00
Yotam Mann
86fa6233c3 Time copy/clone tests 2016-09-18 19:41:41 -04:00
Yotam Mann
f115b4cdf5 clone/copy methods of Time/TimeBase 2016-09-18 19:41:25 -04:00
Yotam Mann
c135392f55 changing sync to match new Source sync API 2016-09-18 19:37:31 -04:00
Yotam Mann
ad25515c93 Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev 2016-09-18 19:28:40 -04:00
Yotam Mann
46fc0c732c testing LFO as value 2016-09-18 19:28:20 -04:00
Yotam Mann
71a4c986fc Can pass in an LFO description in the .value parameter 2016-09-18 19:25:47 -04:00
Yotam Mann
bf02bcc894 fixing parens in README
[skip ci]

fixes #162
2016-09-12 11:20:07 -04:00