Yotam Mann
ba8e82b1ca
feat: latencyHint is now set in constructor
...
BREAK: the latencyHint can only be set in the constructor, no longer settable after construction
addresses #658
2020-05-12 12:31:17 -04:00
Yotam Mann
51106320b5
converting worklets back into strings
...
fixes #663
2020-05-07 09:23:48 -04:00
Yotam Mann
9864a79a25
start the gain
2020-05-06 22:10:35 -04:00
Yotam Mann
4ac5c22220
more examples
2020-04-29 18:12:52 -04:00
Yotam Mann
13de3a0ac1
more examples
2020-04-29 17:15:12 -04:00
Yotam Mann
c419a4c1ac
moving ToneAudioWorklet to 'worklet' folder
...
removing tests. typescript + testing elsewhere provides better coverage
2020-04-29 16:59:26 -04:00
Yotam Mann
8bc4deec2b
feat: updating the way that AudioWorkletProcessors are handled
...
They each get their own .worklet.ts file which enables some typescript checking
2020-04-29 16:38:58 -04:00
Yotam Mann
e5c6d606c6
some more examples
2020-04-29 14:54:35 -04:00
Yotam Mann
bebdfac5cf
filling out some more examples
2020-04-29 10:06:18 -04:00
Yotam Mann
939c08417c
adding some more examples
2020-04-26 18:03:40 -04:00
Yotam Mann
15d5584f97
fixing example
2020-04-16 23:32:10 -04: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
Yotam Mann
f28c4b4a84
exports std-audio-context's isSupported method
2020-04-16 14:44:48 -04:00
Yotam Mann
7f9cda9db0
guarding against floating point issue where offset is very close to 1
...
fixes #645
2020-04-14 23:46:08 -04:00
Yotam Mann
e14fa4eae1
linting
2020-04-14 22:09:44 -04:00
Yotam Mann
b217fc45ac
adding createMediaStreamDestination
2020-04-14 21:06:21 -04:00
Yotam Mann
b090617c9b
removing old tests
2020-04-10 09:13:58 -04:00
Yotam Mann
f317b97d89
testing that slice can also extend the duration
2020-04-08 10:02:33 -04:00
Yotam Mann
8b734d9755
Clock callback returns seconds
2020-04-07 21:52:07 -04:00
James Pettit
169d6d7f09
Add dotted notes to the Subdivision type.
...
Reading 30e14cf729/Tone/core/type/Time.ts (L76)
it looks like dotted notes can be returned, and in fact when I try it I can get a dotted note but the Typescript compiler complains that the return value cannot exist when used in a switch statement, so I think this is just an accidental omission.
2020-04-05 13:08:04 +08:00
Yotam Mann
627cb3cd45
adding some more simple examples
2020-03-21 21:58:48 -04:00
Yotam Mann
4a0aa07af7
testing if loaded can be created in the same block before adding downloads
2020-03-17 22:46:27 -04:00
Yotam Mann
85f70621ef
loaded promise allows for downloads to be added while 'loaded' is awaiting
2020-03-17 22:45:59 -04:00
Jacob Smith
7ec07954ae
Fixing bounds in TickSource test
2020-03-17 17:17:50 -03:00
Yotam Mann
8b58824d75
waiting for all download promises to resolve
2020-03-15 21:54:36 -04:00
Yotam Mann
09943840c4
fixing race condition where loaded was not yet set to true when promise is resolved
2020-03-11 11:41:33 -04:00
Yotam Mann
17ad337c1c
get maxChannelCount
2020-03-01 22:03:37 -05:00
Yotam Mann
bdd66ef8ba
cleaning up code a little
2020-02-26 17:18:08 -05:00
Yotam Mann
7adda98875
perf: optimizing forEachAtTime to iterate over a smaller range
...
fixes #618
2020-02-26 16:54:35 -05:00
Yotam Mann
1539d88ef3
fix: Remove download promise when completed
...
fixes #620
2020-02-26 16:05:47 -05:00
Yotam Mann
bb6a6fdef6
feat: adding onerror to ToneAudioBuffers and Players
2020-01-30 14:25:06 -05:00
Yotam Mann
88dae77c90
removing 'Connect.ts' and updating dependencies
...
was a pass through and caused other problems of redefining the variable
2020-01-08 14:12:11 -05:00
Yotam Mann
015e4c7a30
correcting default value
2019-12-21 22:06:40 -05:00
Yotam Mann
ed5f7876c2
fixing typo
2019-12-21 22:05:31 -05:00
Yotam Mann
24fe9acc18
using standardized-audio-context in tests
2019-12-21 22:05:24 -05:00
Yotam Mann
7391cf6d3c
wrapping native AudioListener with Listener
2019-12-21 21:01:45 -05:00
Yotam Mann
ef52e20a1b
updating comment
2019-12-17 11:57:02 -05:00
Yotam Mann
25eb6fce40
removing unused vars
2019-12-17 11:56:56 -05:00
Yotam Mann
48284d78fb
adding decorators which validate the input value range
2019-12-16 17:13:03 -05:00
Yotam Mann
2b0c2a64f1
values out of range throw an error
...
used to fail silently
2019-12-16 17:12:19 -05:00
Yotam Mann
fc84ec281b
adding clamp function
2019-12-16 16:50:07 -05:00
Yotam Mann
389ccf8722
using assert instead of this.assert
...
removing this.assert from Tone.js classes
2019-12-16 15:58:31 -05:00
Yotam Mann
caf58ffe0b
throws error when set outside of range
2019-12-15 02:19:12 -05:00
Yotam Mann
192b749b85
Gain can also have min/max range
2019-12-14 17:27:54 -05:00
Yotam Mann
a2d5c3d634
adding the intial state at time 0
2019-12-14 16:11:56 -05:00
Yotam Mann
267f1befc0
Simplifying Freeverb dispose
2019-12-14 11:53:12 -05:00
Yotam Mann
fce95bea6e
feat: clamp the values to the defined min/maxValue
2019-12-11 10:11:40 -05:00
Yotam Mann
61cfd3ab8c
make sure that maxDelay is readonly
2019-12-10 23:34:12 -05:00
Yotam Mann
cf8965f921
fixing case where buffer is not set
...
previously would prefix "/"
2019-12-09 17:43:58 -05:00
Yotam Mann
9f51cb5293
exporting BaseContext
2019-12-06 17:13:22 -05:00
Yotam Mann
660915680a
feat: when the signal is overridden it should not schedule any change in values
...
fixes #585
2019-12-06 12:55:30 -05:00
Yotam Mann
11f7c2207a
test the initial state
2019-11-21 11:08:22 -05:00
Yotam Mann
16d71718dd
removing case that can't happen
...
there is an event added in the constructor at time 0 and the time can't be less than 0
2019-11-21 11:04:38 -05:00
Yotam Mann
8bb53b3eb1
state time can't be less than 0
2019-11-21 11:04:00 -05:00
Yotam Mann
e0248afb1c
using floating point comparisons
2019-11-18 15:16:04 -05:00
Yotam Mann
09dc29191b
linting
2019-11-17 13:09:19 -05:00
Yotam Mann
8ec69d42de
make sure there is a slash between the baseurl and the url
2019-11-17 11:33:45 -05:00
Yotam Mann
fdca6ef57d
removing comment
2019-11-14 16:26:47 -05:00
Yotam Mann
b1b85206f4
updating name string
2019-11-14 13:21:41 -05:00
Yotam Mann
4b0827bf43
removing old js file
2019-11-14 12:34:15 -05:00
Yotam Mann
76b8e84ae4
testing that toString() returns the class name
2019-11-14 12:30:17 -05:00
Yotam Mann
5fd8009c87
correcting ToneAudioNode's name
2019-11-14 12:21:58 -05:00
Yotam Mann
cc7f428a84
adding latencyHint to BaseContext
2019-11-13 14:16:20 -05:00
Yotam Mann
340fb77561
wait for next tick before setting the ticks
...
fixes #573
2019-11-13 13:19:47 -05:00
Yotam Mann
60e4f7231b
removing unused import
2019-11-13 13:16:35 -05:00
Yotam Mann
fa2b7431e3
alphabetizing output
2019-11-13 13:01:00 -05:00
Yotam Mann
94ab93935c
annotating type
2019-11-12 23:59:41 -05:00
Yotam Mann
c4153edc30
assert the context is running
2019-11-12 16:55:30 -05:00
Yotam Mann
48c3a98749
more consistent whitespacing
2019-11-12 16:54:09 -05:00
Yotam Mann
eb1427a17e
updating whitespace
2019-11-12 16:33:54 -05:00
Yotam Mann
589ab74b11
don't need to check if state is null any longer
2019-11-12 15:10:22 -05:00
Yotam Mann
6623b5b4ea
simplifying math a little
2019-11-12 14:12:22 -05:00
Yotam Mann
b6cbd31a78
updating test to pass in context
2019-11-11 16:04:38 -05:00
Yotam Mann
b68808ca6b
using GrainPlayer to test
2019-11-11 15:41:01 -05:00
Yotam Mann
522e3a0670
only test if it's in fact suspended
2019-11-11 15:17:48 -05:00
Yotam Mann
9136836da0
assertContextRunning
...
help with autoplay issues by warning when AudioContext is not running
2019-11-11 11:43:43 -05:00
Yotam Mann
41d4b4a0df
More explanation on immediate vs now
...
addresses #570
2019-11-10 23:20:23 -05:00
Yotam Mann
2ae5d69f4e
adding onprocessorerror property to notify when errors have occured in processing
2019-11-07 16:56:56 -05:00
Yotam Mann
e820ae76ed
testing the dummy context interface
...
tests just for coverage
2019-11-07 16:04:43 -05:00
Yotam Mann
6842d48ce7
don't export BaseContext
...
since probably not necessary in the final output
2019-11-07 16:04:32 -05:00
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