Commit graph

48 commits

Author SHA1 Message Date
tambien
ed71d8141b amd to es6 import/export
no longer using AMD (require.js) style imports, and beginning to move to es6 "import/export" statements everywhere.
2019-01-27 13:05:20 -05:00
tambien
7b60890dbf change logging stye 2018-08-29 23:10:18 -04:00
tambien
c8a7779191 reference to Tone.global instead of window
this allows Tone.js to be loaded in a browser or node.js environment
2018-08-29 13:54:02 -04:00
tambien
3d1202043a all modules are relative paths
simplifies deep references to individual files
2018-08-26 22:29:17 -04:00
tambien
c846ace268 Revert "creating TONE_CONTEXT and TONE_AUDIO_CONTEXT"
This reverts commit 3ad8ad19fb.
2018-08-26 20:10:34 -04:00
tambien
322a4bfc57 creating TONE_CONTEXT and TONE_AUDIO_CONTEXT
TONE_CONTEXT stores a global Tone.Context while TONE_AUDIO_CONTEXT
2018-08-26 19:42:59 -04:00
tambien
1f630f5c24 TONE_AUDIO_CONTEXT equals the Tone.Context
not just the raw underlying AudioContext
2018-08-26 10:50:17 -04:00
tambien
2dc10c7432 moving global AudioContext reference to Tone.Context
and also making it an unwrapped AudioContext
2018-08-13 22:41:22 -04:00
tambien
620abad4d9 make 'destination' alias of Tone.Master 2018-08-09 15:17:18 -04:00
Yotam Mann
15755701f9 linting 2018-08-06 23:32:21 -04:00
tambien
ae90dafc8c using global TONE_AUDIO_CONTEXT 2018-07-29 23:34:40 -04:00
tambien
91652ff2ff reverting change 2018-07-29 09:36:02 -04:00
tambien
36f037ad56 updating jsdoc comment 2018-07-28 10:21:02 -04:00
Yotam Mann
36c19e3762 AudioContext resume does not apply to OfflineAudioContext 2018-06-20 14:56:35 -04:00
tambien
081e995983 use onstatechange instead of addEventListener
in Safari < 10 AudioContext does not extend EventEmitter
2018-06-13 16:42:33 -04:00
tambien
a1e782df4a using resume instead of ready 2018-06-13 15:56:00 -04:00
jbpuryear
d4d569e52b Fix AudioNode.disconnect error when disconnecting from signals/params (#329) 2018-04-22 16:45:02 -04:00
Yotam Mann
5f1ae523f9 lookAhead shouldn't be private 2018-02-15 11:47:22 -05:00
Yotam Mann
9dbb54ff6a AudioNode.connect returns the connected to node
fixes #291
2018-01-11 09:36:08 -08:00
Yotam Mann
dded291a25 linting 2018-01-02 10:37:27 -05:00
Yotam Mann
4316530b16 linting 2017-10-26 16:03:00 -04:00
Yotam Mann
9449a6102c moving shim to it's own file 2017-10-26 00:52:09 -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
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
a4032ad65c linting 2017-08-13 21:46:43 -04:00
Yotam Mann
5fe3e9106c using async callback for getting context
for classes that need it on init
2017-08-13 21:37:32 -04:00
Yotam Mann
e0fadfcb8e use the timeout callbacks update interval 2017-07-05 14:47:27 -04:00
Yotam Mann
dfdd665881 context takes an options object 2017-07-05 13:58:36 -04:00
Yotam Mann
c30b07cbd5 terminate web worker on dispose 2017-06-30 16:04:10 -04:00
Yotam Mann
3ece282d04 removing window debugging reference 2017-06-30 15:44:30 -04:00
Yotam Mann
68ce570476 Revert "without try/catch"
This reverts commit cf085112fe.
2017-06-30 15:38:01 -04:00
Yotam Mann
cf085112fe without try/catch 2017-06-30 15:31:30 -04:00
Yotam Mann
86698bb5d6 use setTimeout if Web Worker is not available
Addresses #208
2017-06-29 19:49:25 -04:00
Yotam Mann
207c4e66e4 removing lag checking 2017-06-29 15:58:35 -04:00
Yotam Mann
b670936c67 emit an event when a context is closed
to clean up Master/Transport and anything else static on the context
2017-06-19 17:51:03 -04:00
Yotam Mann
77d404963c lookAhead applied to all scheduled events
by placing it in the ‘now’ method instead of Tone.Clock
2017-05-28 21:44:56 -04:00
Yotam Mann
ceb209313e fixing disconnect from nonzero input/output 2017-05-01 15:49:35 -04:00
Yotam Mann
17510c8f9c latency hint should be "interactive" when set to fastest lookAhead 2017-05-01 13:55:21 -04:00
Yotam Mann
867798e55d properly disconnecting constant signals 2017-04-30 14:48:25 -04:00
Yotam Mann
4bd1044cb4 using only static type queries 2017-04-26 00:27:28 -04:00
Yotam Mann
edfa168713 moving to static type queries
i.e. this.isString -> Tone.isString
2017-04-26 00:24:19 -04:00
Yotam Mann
e66c515762 setTimeout method which is guaranteed by the clock source
also includes clearTimeout. API is similar to window.setTimeout, but
time is in seconds instead of milliseconds
2017-04-24 23:13:29 -04:00
Yotam Mann
f3cb7e577c only creating constant sources when required
optimization
2017-03-22 11:43:35 -04:00
Yotam Mann
10431589d2 moving shims to their respective files
hopefully simplifies maintenance
2017-03-13 01:12:20 -04:00
Yotam Mann
e08b7bc8fc AudioContext wrapping class 2017-02-18 19:47:28 -05:00