Yotam Mann
a08ee7e4d7
don't need to export tone
2019-11-07 15:44:33 -05: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
fd3a52a54b
removing duplicate example
2019-11-04 17:49:59 -05:00
Yotam Mann
8ec41dd200
updating example
2019-11-04 17:49:50 -05:00
Yotam Mann
28bf547959
updating example
2019-11-03 22:19:42 -05:00
Yotam Mann
59b9f5f6a8
adding recursive omit method
2019-11-03 17:42:51 -05:00
Yotam Mann
332adefd0d
removing unnecessary if
2019-11-03 11:41:03 -05:00
Yotam Mann
b9619d8c68
removing unused variables
2019-10-31 15:43:16 -04:00
Yotam Mann
d647c8b9c8
checking that the listener exists
2019-10-31 14:54:37 -04:00
Yotam Mann
410193d136
testing disconnecting from AudioParam
2019-10-31 14:50:08 -04:00
Yotam Mann
87a86a9071
no need for casting
2019-10-31 14:49:56 -04:00
Yotam Mann
54cac42925
adding some basic conversion tests
2019-10-31 14:45:06 -04:00
Yotam Mann
7ede333128
testing setting ticks
2019-10-31 14:44:59 -04:00
Yotam Mann
757cd380c8
using getStateAtTime when getting state
2019-10-31 14:44:22 -04:00
Yotam Mann
7d93094427
testing event emitters when scheduled event time is in the past
2019-10-31 14:44:01 -04:00
Yotam Mann
91ae308e66
making sure that draw/transport/destination are disposed when the context is closed
2019-10-31 11:41:21 -04:00
Yotam Mann
6ac43559b1
testing that destination exists before closing
...
forces the context to initialize
2019-10-30 18:59:32 -04:00
Yotam Mann
d4d403bffb
testing closing edge case
2019-10-30 18:59:15 -04:00
Yotam Mann
546ec43151
updating example
...
changing updateInterval to be lookAhead/2 instead of 3
2019-10-30 18:05:28 -04:00
Yotam Mann
bc08a1aea9
docs: adding more elaborate examples and explainations
2019-10-29 14:51:29 -04:00
Yotam Mann
559cdae1fb
added immediate
method
2019-10-29 14:29:52 -04:00
Yotam Mann
5baeddf451
updating examples
2019-10-28 21:28:53 -04:00
Yotam Mann
304802d515
using different cancel methods depending on what is scheduled
2019-10-28 16:41:01 -04:00
Yotam Mann
fbd1e3c450
using floating point comparisons
2019-10-28 16:40:30 -04:00
Yotam Mann
cd37884156
removing unused deps
2019-10-28 15:11:42 -04:00
Yotam Mann
1134ce4c69
making sure that the attack is not canceled if the release is scheduled once it ends
...
fixes #560
2019-10-28 14:22:10 -04:00
Yotam Mann
f4dcc08ed2
create a global Draw object (linked to the Context)
2019-10-28 12:12:27 -04:00
Yotam Mann
b1351af339
fixing example
2019-10-28 11:50:32 -04:00
Yotam Mann
49dfe371a3
exporting all core classes
...
also exporting ftom and mtof
2019-10-28 11:50:13 -04:00
Yotam Mann
7d23ae7bad
removing unused types
2019-10-28 11:40:09 -04:00
Yotam Mann
87ae677a59
linting
2019-10-28 11:38:17 -04:00
Yotam Mann
3a63154b7c
using the unit name instead of the unit type as the Param generic
2019-10-28 11:37:53 -04:00
Yotam Mann
d2b064f41e
docs: working on code examples
2019-10-25 16:54:33 -04:00
Yotam Mann
4266d2b93c
updating examples
2019-10-24 18:01:27 -04:00
Yotam Mann
b2a9c9a303
working on examples
2019-10-23 16:30:07 -04:00
Yotam Mann
42cfbcd456
linting docs and examples
2019-10-22 23:04:52 -04:00
Yotam Mann
ba2af1fb03
creates a new AudioContext when Context is created
...
used to reuse same context.
2019-10-13 23:20:42 -04:00
Yotam Mann
f753aef015
Adding range test
2019-10-09 12:38:10 -04:00
Yotam Mann
467cc48c8c
adding isOffline flag
...
helpful for some behaviors which only occur in the online AudioContext
2019-10-04 11:51:52 -04:00
Yotam Mann
889dafa45e
feat: OfflineContext returns a ToneAudioBuffer
...
instead of an AudioBuffer
2019-10-03 18:03:21 -04:00
Yotam Mann
81887b91a3
refactor: initialize Context when getting destination
or transport
2019-10-03 17:33:39 -04:00
Yotam Mann
11544708fc
feat: OfflineContext yields thread every second of audio rendered
...
so that it doesn't block the thread.
fixes #436
2019-10-03 17:29:30 -04:00
Yotam Mann
a2153571c2
types: correcting typing
2019-09-29 17:25:55 -04:00
Yotam Mann
c155d716ac
removing logging
2019-09-29 13:05:25 -04:00
Yotam Mann
1a2d82f33b
only mark certain Params as swappable
2019-09-29 12:20:54 -04:00
Yotam Mann
eb7b14fdc8
fixing docs
2019-09-29 10:19:08 -04:00
Yotam Mann
2ee8cb1a52
feat: Wrapper around the AudioWorkletNode
2019-09-27 17:55:09 -04:00
Yotam Mann
23ca0f9688
feat: Can set the parameter after constructing Param
...
used in the new ToneAudioWorklet node
2019-09-27 17:53:42 -04:00
Yotam Mann
f7bdd7528f
feat: adding AudioWorkletNode constructors to Context
2019-09-27 17:52:37 -04:00
Yotam Mann
9eb395509c
style: using javascript string template interpreter for vscode
2019-09-27 17:50:49 -04:00