WofWca
5d6a194458
improvement: add disposeOld
parameter to setContext
...
This makes it harder to introduce a resource leak
2021-04-21 13:03:49 +08:00
Yotam Mann
f17249691d
feat: updating all examples
...
now in the form Tone.Something instead of using `import { Something } from "tone"`. It makes the example runner on the docs page work much faster
2020-04-16 22:24:18 -04:00
Jack Anderson
3354b24527
Create BaseContext + better DummyContext
...
- this creates a new abstract BaseContext that DummyContext and Context
inherit from
- All methods available to Context are now stubbed by DummyContext
- BaseContext is now used as the type where Context was originally used
2019-11-06 14:32:19 -08:00
Yotam Mann
5baeddf451
updating examples
2019-10-28 21:28:53 -04:00
Yotam Mann
4266d2b93c
updating examples
2019-10-24 18:01:27 -04:00
Yotam Mann
81887b91a3
refactor: initialize Context when getting destination
or transport
2019-10-03 17:33:39 -04:00
Yotam Mann
82b2376959
updating categories
2019-09-16 11:05:24 -04:00
Yotam Mann
1bde88a19b
linting
2019-09-14 18:12:44 -04:00
Yotam Mann
61c9f191b6
removing calls to tslint
...
getting rid of tslint from project and using eslint instead
2019-09-14 18:06:46 -04:00
Yotam Mann
95c45a5b7a
adding more documentation to Tone.start
2019-09-05 14:46:26 -04:00
Yotam Mann
0c805aec7b
setContext takes a context or AudioContext or OfflineAudioContext
2019-08-26 10:55:43 -07:00
Yotam Mann
61fe1a6a0d
fixing initialization case
2019-07-25 18:32:58 -04:00
Yotam Mann
7a099b2310
handling case where window is not defined
...
either because it's loaded in node.js or because of the context that the script is loaded in
2019-07-25 18:28:17 -04:00
tambien
8b4f1cfa19
Global now only manages global Context
...
global AudioContext was moved to AudioContext.ts
2019-06-23 15:02:38 -04:00
tambien
17a38ae10a
allow non 'dev' version
2019-06-19 10:25:05 -04:00
tambien
95142d1a6f
test if context is AudioContext before trying to resume
2019-06-19 10:18:33 -04:00
tambien
9ac9de5b12
using TONE_AUDIO_CONTEXT if it exists
2019-06-17 21:53:54 -04:00
tambien
730a818bcb
organizing into sub folders
2019-05-23 14:00:49 -04:00
tambien
df08425a70
started retooling with typescript
2019-04-12 10:37:47 -04:00