Commit graph

1409 commits

Author SHA1 Message Date
Yotam Mann
0befd293c9 Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev 2017-04-20 15:14:44 -04:00
Yotam Mann
b82f2bd6d7 surfaced returnType in docs
[skip ci]
2017-04-20 15:13:30 -04:00
Yotam Mann
88c0ea4fb6 fixed example to new UserMedia API
[skip ci]
2017-04-20 15:12:16 -04:00
Yotam Mann
2073ccdf8c fixing panning in example
[skip ci]
2017-03-28 21:14:48 -04:00
Yotam Mann
12e1fcc272 increment version
[skip ci]
2017-03-28 20:57:04 -04:00
Yotam Mann
5569f7b26f latencyHint has moved to Tone.Context 2017-03-27 11:34:47 -04:00
Yotam Mann
38cc955b66 updating version 2017-03-26 19:26:00 -04:00
Yotam Mann
4499e80b2e uses passed in volume for _unmutedVolume 2017-03-26 16:40:00 -04:00
Yotam Mann
0df359a92f fixed formatting issue in docs
[skip ci]
2017-03-26 12:32:41 -04:00
Yotam Mann
4cec0fb7a3 mute is true when volume === -Infinity and false otherwise
fixes #221
2017-03-24 17:27:40 -04:00
Yotam Mann
bef5457c01 using Math.SQRT1_2
I didn’t know this existed
2017-03-22 15:21:21 -04:00
Yotam Mann
af58fd34de updating to new getConstant API 2017-03-22 11:43:36 -04:00
Yotam Mann
f3cb7e577c only creating constant sources when required
optimization
2017-03-22 11:43:35 -04:00
Yotam Mann
97c152d989 documenting Offline
[skip ci]
2017-03-22 11:15:50 -04:00
Yotam Mann
b5d6647c12 optimizing noise array creation
only created on initialization

addresses #216
2017-03-18 14:03:04 -04:00
Yotam Mann
971cfc1b93 variable name change 2017-03-18 14:01:23 -04:00
Yotam Mann
f859074254 catch block removes event listeners and throws error 2017-03-14 16:49:04 -04:00
Yotam Mann
1a1cb621e8 wrapping native getChannelData 2017-03-13 22:08:59 -04:00
Yotam Mann
10431589d2 moving shims to their respective files
hopefully simplifies maintenance
2017-03-13 01:12:20 -04:00
Yotam Mann
d81ad3e8c7 polyfilling getFloatTimeDomainData 2017-03-13 00:56:04 -04:00
Yotam Mann
3089f09083 also polyfilling copyFromChannel 2017-03-13 00:50:00 -04:00
Yotam Mann
5ab8f82d3e copyToChannel polyfill 2017-03-13 00:40:30 -04:00
Yotam Mann
84bbdb5c04 optimizing slice call
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functi
ons/arguments
2017-03-13 00:38:40 -04:00
Yotam Mann
d037c28d6f eval -> valueOf
thanks for the suggestion @JackCA
fixes #205
2017-03-12 21:31:23 -04:00
Yotam Mann
ea1b92e75a only set the clock ticks when the value has changed
optimization
2017-03-12 21:09:57 -04:00
Yotam Mann
a48b58eb95 removing old initAudioContext
replaced by Context.on(‘init’)
2017-03-12 21:03:17 -04:00
Yotam Mann
752a0a6bc4 Duration argument must be greater than 0
fixes #203
[skip ci]
2017-03-05 13:19:55 -05:00
Yotam Mann
dba464fcca safety checks for drift
fixes #199
2017-03-05 12:39:43 -05:00
Yotam Mann
39e923480f decibels also ramps exponentially 2017-03-01 15:46:21 -05:00
Yotam Mann
83a019c987 moving context dependency from Transport to Type 2017-02-28 19:01:09 -05:00
Yotam Mann
9919667467 shouldn't zero out next tick time 2017-02-28 18:09:53 -05:00
Yotam Mann
8e5d5e9872 fixing typo in comments
[skip ci]
2017-02-28 17:43:04 -05:00
Yotam Mann
9858dbe563 start method takes an optional duration
also includes start method docs

fixes #195
2017-02-20 14:03:36 -05:00
Yotam Mann
662951cff9 uses constant from context 2017-02-19 23:56:04 -05:00
Yotam Mann
4652203066 stopDownloads -> cancelDownloads 2017-02-19 12:01:15 -05:00
Yotam Mann
d82918a6ce referring to listener on the Context
instead of creating a local copy which can become out of sync with the
current AudioContext
2017-02-19 11:55:08 -05:00
Yotam Mann
b32f2606e7 convert the buffer to mono
replaces the existing buffer
2017-02-19 11:52:04 -05:00
Yotam Mann
4e5ff9d41d _initAudioContext -> "init" 2017-02-19 11:50:53 -05:00
Yotam Mann
91bdd210cd render offline audio 2017-02-19 11:50:34 -05:00
Yotam Mann
7549bdaa1a renaming _initAudioContext() -> on("init") 2017-02-19 11:50:15 -05:00
Yotam Mann
19a41080ba moving constants to Context 2017-02-19 11:48:23 -05:00
Yotam Mann
a74e84fa26 moving Clock worker to Context
offline clocks can be more easily rendered by the offline context
2017-02-19 11:45:43 -05:00
Yotam Mann
7aa336bee5 moving context creation to Tone.Context 2017-02-18 19:49:06 -05:00
Yotam Mann
5ceef2a227 OfflineContext extends Context 2017-02-18 19:48:15 -05:00
Yotam Mann
e08b7bc8fc AudioContext wrapping class 2017-02-18 19:47:28 -05:00
Yotam Mann
c3158bbcf7 fixing docs
fixes #202

[skip ci]
2017-02-16 12:04:12 -05:00
Yotam Mann
05765aae66 only create audio context when web audio is supported
otherwise logs a warning
2017-02-11 13:56:51 -05:00
Yotam Mann
29d6fdd3b3 only schedule animation frame when something is scheduled
fixes #194
2017-02-07 22:26:08 -05:00
Yotam Mann
7f06666729 only add a stop event if it's not synced to the Transport
fixes #192
2017-01-30 23:17:14 -05:00
Yotam Mann
998444c528 removing silent node connection
seems like gain of 0 is optimized out in most cases anyways
2017-01-30 22:35:27 -05:00