Commit graph

2780 commits

Author SHA1 Message Date
Yotam Mann
e24f12c4a9 updating typing 2019-11-07 12:04:10 -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
974ee57353 exporting new effects 2019-11-04 22:29:21 -05:00
Yotam Mann
c9f7ac47b1 adding categories 2019-11-04 22:29:14 -05:00
Yotam Mann
c05aee48a6 converting PitchShift to typescript 2019-11-04 22:28:51 -05:00
Yotam Mann
e4d0fae5a6 removing old js files 2019-11-04 19:09:23 -05:00
Yotam Mann
715165cba5 StereoXFeedbackEffect extends StereoFeedbackEffect 2019-11-04 19:09:13 -05:00
Yotam Mann
6eea18b1b8 updating docs 2019-11-04 18:59:46 -05:00
Yotam Mann
caf7b4bd19 converting PingPongDelay to typescript 2019-11-04 18:59:32 -05: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
1d334f9a80 converting vibrato to typescript 2019-11-03 22:44:49 -05:00
Yotam Mann
1738307e8a using .wav instead of .mp3 2019-11-03 22:43:19 -05:00
Yotam Mann
ae2ec70d23 updating example 2019-11-03 22:23:56 -05:00
Yotam Mann
14883653b6 making paths relative 2019-11-03 22:23:50 -05:00
Yotam Mann
d17607786d adjusting threshold 2019-11-03 22:20:07 -05:00
Yotam Mann
28bf547959 updating example 2019-11-03 22:19:42 -05:00
Yotam Mann
2e8e52ac2e adding compare to file test 2019-11-03 22:19:33 -05:00
Yotam Mann
831cd2bca7 adjusting threshold 2019-11-03 22:17:59 -05:00
Yotam Mann
c035c4a73f remove old js files 2019-11-03 22:17:21 -05:00
Yotam Mann
61ab898c17 converting Phaser to typescript 2019-11-03 22:17:00 -05:00
Yotam Mann
357f41cd3d exporting new effects 2019-11-03 21:44:32 -05:00
Yotam Mann
84e3e70339 updating example 2019-11-03 21:44:25 -05:00
Yotam Mann
701caf4c50 converting StereoWidener to typescript 2019-11-03 21:43:53 -05:00
Yotam Mann
148e70032f adding name 2019-11-03 21:43:01 -05:00
Yotam Mann
530c0dac23 using more generic class rathen than the specific type of input 2019-11-03 21:35:26 -05:00
Yotam Mann
0805e507ac making the iterations more es5 2019-11-03 20:34:01 -05:00
Yotam Mann
53ba14cbd6 converting JCReverb to typescript 2019-11-03 20:33:46 -05:00
Yotam Mann
020db86c72 removing old file 2019-11-03 18:36:56 -05:00
Yotam Mann
660abd87b8 working on example 2019-11-03 18:36:51 -05:00
Yotam Mann
55504012ac converting Freeverb to typescript 2019-11-03 18:35:17 -05:00
Yotam Mann
5c4146e162 each effect side can take any number of values 2019-11-03 18:34:57 -05:00
Yotam Mann
f4e66ce5c2 removing unused import 2019-11-03 18:10:30 -05:00
Yotam Mann
e3910e7978 removing unused import 2019-11-03 18:09:57 -05:00
Yotam Mann
ea2c1a4111 using MonoSynthOptions in constructor 2019-11-03 18:09:39 -05:00
Yotam Mann
de1f433c29 removing unused import 2019-11-03 18:08:31 -05:00
Yotam Mann
9d7937bbab updating test threshold 2019-11-03 18:08:24 -05:00
Yotam Mann
5552c16a05 removing old js files 2019-11-03 18:07:21 -05:00
Yotam Mann
252ae7b3e4 linking to monosynth 2019-11-03 18:07:13 -05:00
Yotam Mann
3d8a8a4897 fixing example 2019-11-03 18:07:03 -05:00
Yotam Mann
e437ebd846 updating DuoSynth so it passes tests
thanks @this-fifo!
2019-11-03 17:45:50 -05:00
Yotam Mann
59b9f5f6a8 adding recursive omit method 2019-11-03 17:42:51 -05:00
Yotam Mann
b2ebd6876d removing envelope as required by Monophonic
making getLevelAtTime abstract
2019-11-03 17:41:47 -05:00
Yotam Mann
a3acecb776 Merge branch 'pr/565' into typescript 2019-11-03 15:46:36 -05:00
Yotam Mann
cfb19e8334 using deep imports 2019-11-03 15:44: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
7549764c38 removing old js files 2019-10-31 15:30:32 -04:00
Yotam Mann
802ce474c7 converting Chorus to ts 2019-10-31 15:29:48 -04:00
Yotam Mann
98aa79125b bind now and immediate to simplify code 2019-10-31 14:54:49 -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
89e171b4a3 setting non-cached osc type after starting 2019-10-31 14:22:19 -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
4aedaeea77 setting exponent in test
for additional coverage
2019-10-31 09:56:09 -04:00
Filipe Herculano
779b4d68c5 update DuoSynth interface options to match class type and adjust object parameters 2019-10-30 19:22:24 -04:00
Yotam Mann
7bc2dc1f96 testing setting different global contexts 2019-10-30 19:18:01 -04:00
Yotam Mann
8d775f7233 verifying that UserMedia doesn't work in offline context 2019-10-30 18:59:55 -04:00
Yotam Mann
c5c8082d4e removing unused method 2019-10-30 18:59:38 -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
Filipe Herculano
79dad22648 start converting DuoSynth to Typescript 2019-10-30 18:54:30 -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
816294b9c0 refactoring fromContext 2019-10-30 14:49:02 -04:00
Yotam Mann
54faf744fd exporting context 2019-10-30 14:48:41 -04:00
Yotam Mann
a9c8927a52 some sanity checks on the final interface 2019-10-30 14:48:29 -04:00
Yotam Mann
d845a435b1 ScaledEnvelope is redundant with the FrequencyEnvelope
currently no use for it though might reintroduce it if it feels necessary down the road.
2019-10-30 13:22:53 -04:00
Yotam Mann
fc80ec1f8e fixing import paths 2019-10-30 13:13:32 -04:00
Yotam Mann
d56572c94c converting Tremolo to typescript 2019-10-30 13:13:26 -04:00
Yotam Mann
79d2c3d41b convert Chebyshev to typescript 2019-10-29 23:35:27 -04:00
Yotam Mann
8ce429e7ba removing js files 2019-10-29 23:14:38 -04:00
Yotam Mann
f5ea6be5d4 exporting AutoWah 2019-10-29 23:14:17 -04:00
Yotam Mann
3a40d841e3 adding category 2019-10-29 23:14:11 -04:00
Yotam Mann
f27df3a215 converting AutoWah to typescript 2019-10-29 23:14:03 -04:00
Yotam Mann
889cc8446b fixing docs 2019-10-29 23:13:28 -04:00
Yotam Mann
9d03004ec7 exponential scale class 2019-10-29 23:13:22 -04:00
Yotam Mann
affe2e75de adding categories 2019-10-29 23:12:51 -04:00
Yotam Mann
97cdc5bf07 adding comparison files 2019-10-29 18:18:04 -04:00
Yotam Mann
ad2c2ff651 less peaky settings 2019-10-29 18:09:20 -04:00
Yotam Mann
444b90ff92 alphabetizing 2019-10-29 18:09:10 -04:00
Yotam Mann
5dd6a2623b Merge branch 'pr/563' into typescript 2019-10-29 17:49:52 -04:00
Yotam Mann
95142f7e64 reducing the need to function twice in constructor 2019-10-29 17:49:40 -04:00
Yotam Mann
e67c9e1724 simplifying FreqEnvelope API slightly 2019-10-29 17:49:22 -04:00
Yotam Mann
73d3e59506 merging MonoSynth 2019-10-29 17:48:59 -04:00
Yotam Mann
bc08a1aea9 docs: adding more elaborate examples and explainations 2019-10-29 14:51:29 -04:00
Yotam Mann
1f298914fc removing old js files 2019-10-29 14:31:01 -04:00
Yotam Mann
aa56dc1727 more complex harmonicity example 2019-10-29 14:30:25 -04:00
Yotam Mann
a47a160d8e export immediate 2019-10-29 14:30:12 -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
41897320a0 exporting FrequencyEnvelope 2019-10-28 21:28:41 -04:00
Yotam Mann
0767a52770 adding category 2019-10-28 21:28:33 -04:00
Yotam Mann
703f27a5ab feat: adding send/receive to Channel
Removing it from all ToneAudioNode's. Now it's just on the Channel Interface
2019-10-28 21:23:23 -04:00
Yotam Mann
28c078dcad converting Channel to ts 2019-10-28 20:59:54 -04:00
Yotam Mann
68a7bb03ec doc tweaks 2019-10-28 20:59:01 -04:00
Yotam Mann
d1fab1c089 converting MidSideMerge/Split to Typescript 2019-10-28 20:42:43 -04:00
Yotam Mann
6ea1ca0a18 converting BitCrusher to typescript
uses the AudioWorklet
2019-10-28 19:11:46 -04:00
Yotam Mann
3efba33604 removing old js file 2019-10-28 19:11:20 -04:00
Filipe Herculano
fdf6433e64 fix MonoSynth test using incorrect Offline helper 2019-10-28 18:24:56 -04:00
Filipe Herculano
22d5fb0ab9 convert MonoSynth to Typescript 2019-10-28 18:12:20 -04:00
Yotam Mann
c1dbb84f7d using relative paths 2019-10-28 17:53:51 -04:00
Yotam Mann
b66bc77910 removing old JS files 2019-10-28 17:50:38 -04:00
Yotam Mann
24a300756d converting AutoPanner to typescript 2019-10-28 17:50:31 -04:00
Yotam Mann
66f285bdf2 base class for LFO-based effects 2019-10-28 17:50:05 -04:00
Yotam Mann
b9bf3e2892 exporting AutoFilter 2019-10-28 17:32:27 -04:00
Yotam Mann
5eba7af64d interlinking docs 2019-10-28 17:31:39 -04:00
Yotam Mann
a0fd3f1cec updating example 2019-10-28 17:31:32 -04:00
Yotam Mann
a54bde11f3 adding category 2019-10-28 17:31:25 -04:00
Yotam Mann
ba7b9ec0e2 converting AutoFilter to typescript 2019-10-28 17:31:17 -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
51af0138fc adding AMSynth to polysynth options 2019-10-28 15:12:02 -04:00
Yotam Mann
cd37884156 removing unused deps 2019-10-28 15:11:42 -04:00
Yotam Mann
5424c05eb2 AM and FM Synth inherit from ModulationSynth base class 2019-10-28 15:11:36 -04:00
Yotam Mann
c217ef5a2c removing old files 2019-10-28 14:22:28 -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
179ef7d730 converting AMSynth to typescript 2019-10-28 12:43:24 -04:00
Yotam Mann
125c5af464 removing unnecessary detune option 2019-10-28 12:43:11 -04:00
Yotam Mann
24f5cd0c95 Merge branch 'pr/559' into typescript 2019-10-28 12:20:17 -04:00
Yotam Mann
6c9d3d8294 baseFrequency is Hertz instead of Frequency
then casting to number (and potential errors that could cause) is avoided
2019-10-28 12:20:04 -04:00
Yotam Mann
d7194d05eb using const over let 2019-10-28 12:19:33 -04:00
Yotam Mann
9591fdedf8 passing in arguments as labelled 2019-10-28 12:19:22 -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
Filipe Herculano
4d93b6c1b0 remove redundant accessors 2019-10-27 17:45:21 -04:00
Filipe Herculano
efd114d2db convert FrequencyEnvelope to Typescript 2019-10-26 11:43:00 -04:00
Yotam Mann
f7464e2a5f Merge branch 'pr/557' into typescript 2019-10-25 17:03:03 -04:00
Yotam Mann
49e3a8d869 exporting ScaledEnvelope 2019-10-25 17:02:52 -04:00
Yotam Mann
4bcde39fdc linting / updating paths 2019-10-25 17:02:44 -04:00
Yotam Mann
08a61386ad exporting missing Signal classes 2019-10-25 16:54:44 -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
b73e127310 docs: updating example 2019-10-23 16:43:12 -04:00
Yotam Mann
b2a9c9a303 working on examples 2019-10-23 16:30:07 -04:00
Yotam Mann
cc7727a85c updating docs 2019-10-22 23:39:35 -04:00
Yotam Mann
7c026cc16b only release one voice at a time 2019-10-22 23:08:42 -04:00
Yotam Mann
42cfbcd456 linting docs and examples 2019-10-22 23:04:52 -04:00
Filipe Herculano
9209bdfe07 convert ScaledEnvelope to Typescript 2019-10-19 18:26:37 -04:00
Yotam Mann
4c5e05d7ca making time optional 2019-10-16 14:59:03 -04:00
Yotam Mann
bc0d83d4cf make sure the right voice is released by flagging a voice as released 2019-10-16 14:31:40 -04:00
Yotam Mann
d1e259238f don't reuse voices
just create a new one. hopefully causes fewer problems
2019-10-15 23:15:41 -04:00