Commit graph

1065 commits

Author SHA1 Message Date
Yotam Mann
62faa2c825 porting instrument tests to ts 2019-07-18 14:07:03 -04:00
Yotam Mann
93298290b7 noting which test failed
to help with debugging
2019-07-18 14:04:39 -04:00
Yotam Mann
a17d2f6a06 helpful message when no audio 2019-07-17 12:54:33 -04:00
Yotam Mann
990c0f56ed using type instead of string types 2019-07-15 15:37:25 -04:00
Yotam Mann
3eec807aa3 fixing bit depth of pulseOsc sample 2019-07-15 15:36:49 -04:00
Yotam Mann
3ee452d63d using 44100 as default rendering sample rate 2019-07-15 15:36:03 -04:00
Yotam Mann
4fc334c9c7 converting PulseOscillator to typescript 2019-07-15 12:22:55 -04:00
Yotam Mann
ada1423bd4 Merge branch 'dev' into typescript 2019-07-15 09:46:22 -04:00
Jared Ellison
22258b41a4 Add tests for Event and Part loop behavior when loop is false, 0 or 1 2019-07-08 13:47:09 -04:00
tambien
db35b3ae3a linting 2019-06-24 13:41:38 -04:00
Yotam Mann
02cfefa7ef
Merge branch 'typescript' into fix-typescript-linting 2019-06-24 13:33:18 -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
88e000179c adding initialization step 2019-06-23 14:59:49 -04:00
Garren Smith
efbd3c7f5f Fix linting issues
Also add in no-unused-expression-chai rule so that chai works with
tslint.
2019-06-23 12:53:57 +02:00
tambien
87cd6df3ef updated to latest API 2019-06-19 17:25:14 -04:00
tambien
5bc0cf4536 converting oscillator tests to ts 2019-06-19 15:52:09 -04:00
tambien
15182279fc removing old JS files 2019-06-19 10:18:43 -04:00
tambien
63ad175b6d converting helpers to ts 2019-06-19 10:15:15 -04:00
tambien
10c1715b8a test takes sample rate 2019-06-17 21:49:38 -04:00
tambien
8ddef75134 updating dependency 2019-06-17 14:03:52 -04:00
tambien
fac538c9fb converting Buffer -> ToneAudioBuffer.ts 2019-05-25 14:31:02 -04:00
tambien
730a818bcb organizing into sub folders 2019-05-23 14:00:49 -04:00
tambien
39cf110fe4 Merge branch 'dev' of https://github.com/Tonejs/Tone.js into typescript 2019-05-21 23:53:46 -04:00
tboie
ba1900dab6 Tone.Disconnect Fix (#483)
-use while loop with a flag
-fixes #461
2019-05-14 21:40:23 -04:00
tboie
bcd22b0463 #473 (#478)
Fixes Part loop toggle
2019-04-12 10:44:24 -04:00
tambien
6fb2b30dce Merge branch 'dev' into typescript 2019-04-12 10:40:10 -04:00
tambien
01a4a47a33 adding additional audio rendering test file 2019-04-12 10:39:01 -04:00
tambien
df08425a70 started retooling with typescript 2019-04-12 10:37:47 -04:00
tboie
8f08316b41 #471 (#472) 2019-04-04 15:10:03 -04:00
tambien
3c2d1250ea passes in the player to the callback
fixes #460
2019-03-25 11:53:57 -07:00
tambien
c1d748deed adding case where attack time is 0
fixes #425
2019-03-12 13:22:25 -04:00
tambien
ad61d1b2ae increasing test threshold 2019-03-12 13:03:55 -04:00
tambien
023758425b use the playbackRate when computing the offset of a synced player
fixes #349
2019-03-12 11:25:33 -04:00
tambien
655b3310d3 setting reverse value which is passed into through an object
fixes #456
2019-03-09 16:14:51 -05:00
tambien
ba0e0fbbd8 increasing threshold 2019-03-08 12:32:05 -05:00
Stephan Lagerwaard
7269f3bdfa Added option to silence both loggers the context (#453) 2019-03-06 14:59:17 -05:00
tambien
2433aea90d increasing test threshold 2019-02-17 12:12:04 -05:00
tambien
2dce244c85 increase tick threshold 2019-02-04 13:20:29 -05:00
tambien
e439a258e0 increase test thresholds 2019-02-04 13:09:48 -05:00
tambien
45e4bf11c8 shim to ensure that AudioNode.connect returns the destination node
as per the spec.
2019-02-02 14:24:51 -05:00
tambien
eb8bdc0f37 disconnecting from all of the inputs 2019-02-02 14:03:53 -05:00
tambien
8cd464fdb6 removing log 2019-02-02 13:19:49 -05:00
tambien
1ab177b4ec testing that pattern reports value correctly 2019-02-01 12:20:34 -05:00
tambien
190035d9c8 removing event by value
testing setting humanize
2019-02-01 12:17:40 -05:00
tambien
5e113f3654 testing progress should be 0 before starting 2019-02-01 12:17:20 -05:00
tambien
e555d8ab3e testing polyphonic triggerAttackRelease API 2019-02-01 12:02:03 -05:00
tambien
1c87026ee4 should have an empty partials array 2019-02-01 11:49:47 -05:00
tambien
0d1e4fc69a testing last sourceType setting 2019-02-01 11:44:05 -05:00
tambien
5cddcbcd52 testing changing count on started oscillator 2019-02-01 11:41:37 -05:00
tambien
2a7dd21d03 testing getting partials 2019-02-01 11:38:39 -05:00
tambien
9ab460f0b0 tick signal does a setValueAtTime initially
no need for this test
2019-02-01 11:36:25 -05:00
tambien
5773bd9db7 testing that changing pattern length should update shuffle 2019-02-01 11:33:26 -05:00
tambien
62da3cc8ca test get/set exponent 2019-02-01 11:24:35 -05:00
tambien
b4307500a6 testing case where no previous events are on the timeline 2019-02-01 10:47:35 -05:00
tambien
2579f5f45a testing setting/getting the delayTime 2019-01-31 12:16:25 -05:00
tambien
4e1dd449c6 buffer is null before being loaded 2019-01-31 12:14:09 -05:00
tambien
6ece0a6bbc adding get/set tests 2019-01-28 21:11:56 -05:00
tambien
aa0d90256d removing rampTime from 'set'
seemed rarely used
2019-01-28 21:04:43 -05:00
tambien
d11497c805 increasing test threshold 2019-01-28 13:35:11 -05:00
tambien
2780cac504 using Tone.connect for connections with native nodes
addresses #421
2019-01-28 11:02:15 -05:00
tambien
fe10de3eea rewriting exclude version logic again 2019-01-27 13:40:10 -05:00
tambien
33f663c5fc test on Chrome only, but not Chrome 71 2019-01-27 13:33:18 -05:00
tambien
2fbdcec41e exclude specific browser versions 2019-01-27 13:29:59 -05:00
tambien
0edba12e6b FF now supports equal power panning 2019-01-27 13:29:49 -05:00
tambien
887bed1092 using ua-parser from npm
instead of local version. Also debugging Draw tests
2019-01-27 13:21:05 -05:00
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
f38c87271f Split can optionally handle more than 2 channels 2019-01-26 20:12:07 -05:00
tambien
4c0659a0ed merge optionallly accepts more than 2 channels 2019-01-26 20:06:07 -05:00
tambien
011f02858d removing unused import 2019-01-24 11:47:27 -05:00
tambien
2ef5aa1517 only use only context in chrome >= 72
because of a bug loading blobs in Chrome 71: https://github.com/GoogleChrome/puppeteer/issues/3463
2019-01-23 17:22:46 -05:00
tambien
436da03264 moving tests to online context 2019-01-23 17:21:37 -05:00
tambien
0ba72ac93a clamping start/stop time to currentTime
this way if someone passes in start(0), it will just play immediately and not break things.

addresses #424
2019-01-23 16:19:07 -05:00
tambien
be077fb59c can pass in oscillator options to constructor 2019-01-09 23:19:56 -05:00
tambien
ab4e677c9d adding start method to simplify starting AudioContext 2019-01-09 22:30:22 -05:00
tambien
7e4e04b5d2 Revert "trying out online testing with Chrome flag"
This reverts commit 68bb4faa31.
2019-01-09 22:22:02 -05:00
tambien
68bb4faa31 trying out online testing with Chrome flag 2019-01-09 22:12:45 -05:00
tambien
41183dfe2e removing logging from test
whoops
[skip ci]
2019-01-09 18:34:47 -05:00
tambien
b971ef94da changing part removing behavior
if a part is at the given time, it will remove the entire part instead of recursively checking and removing an event from the subpart.

fixes #269
2019-01-09 18:30:42 -05:00
tambien
1c971ac51c removing old example tests 2019-01-08 22:22:09 -05:00
tambien
999e984497 running local server for tests 2019-01-08 22:08:00 -05:00
tambien
ffe3d434c6 closes the stream before reopening it 2019-01-08 11:26:57 -05:00
tambien
e739c4f1f3 adding baseType to all oscillators
makes getting/setting through interface easier
2019-01-08 00:13:48 -05:00
tambien
01a01bec1f correcting get tests with oscillator 2019-01-08 00:11:01 -05:00
tambien
68f1c78d9a get the frequency response curve 2018-12-28 16:07:39 -05:00
tambien
1ca4242323 'get' does not return partials array for basic types 2018-12-28 16:00:03 -05:00
tambien
7be27c65d8 Tone.Channel combines Tone.Solo and Tone.PanVol
provides a channel strip interface similar to DAWs
2018-12-26 17:16:31 -05:00
tambien
fd62e31a94 loaded boolean indicates when GrainPlayer is loaded
consistent with Tone.Player
2018-12-23 18:13:57 -05:00
tambien
9178798993 computed duration can be longer than the buffer length
because of playback rate changes, the duration can be longer than the buffer duration.

fixes #375
2018-12-23 13:50:02 -05:00
tambien
795e0d90d7 removing position tracking from player
fixes #361
2018-12-23 13:46:52 -05:00
tambien
6c748e3e9d get and set the sourceType
this allows slight decoupling from combining everything in the 'type' string
2018-12-21 15:29:08 -05:00
tambien
2d7879a32e fix linear decayCurve cancelling attack curve
schedule the decay curve to start 1 sample after the attack curve ends
2018-12-21 15:17:39 -05:00
tambien
3ce5ab6ab7 expanding testing threshold 2018-12-12 20:41:19 -05:00
tambien
e9ed4ef261 no more online tests
they fail in the latest chrome
2018-12-12 20:33:09 -05:00
tambien
81f6ae1144 testing that a type can be passed into the constructor as an object
and gotten with the 'get()' method
2018-12-09 20:40:46 -05:00
tambien
761de621d8 adding partialCount parameter
offers alternative "non string" way to set the partials to an osc type
2018-12-09 18:45:01 -05:00
tambien
1664b9489c testing setting convolver buffer twice 2018-10-21 21:28:26 -04:00
tambien
8758678f20 exposing "normalize" from native convolver 2018-09-10 12:17:51 -04:00
tambien
7380c78f35 testing the version was correctly added 2018-08-29 23:08:40 -04:00
tambien
baa9460383 testing that it's able to load in Node.js
doesn't do any audio processing, but doesn't throw an error
2018-08-29 13:54:55 -04:00
tambien
8bb7b11af5 update test to global name change 2018-08-26 20:12:10 -04:00
tambien
1cfdc1ddef no online testing with safari 2018-08-26 20:06:17 -04:00
tambien
a908f8ef88 adding flag to chrome 2018-08-26 20:02:58 -04:00
tambien
5e565b3a7b adding html tests
using puppeteer
2018-08-26 19:43:28 -04:00
tambien
93d67133f0 moving tests to separate folder 2018-08-26 15:20:13 -04:00
Yotam Mann
fa89f6de93 removing test
for now
2018-08-18 17:23:32 -04:00
tambien
1e37bcc9ff testing two instances of tone running on the same page 2018-08-16 11:03:03 -04:00
tambien
b7545bb4ec removing faulty same_context test
for now
2018-08-13 22:46:12 -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
a66aefbf8b testing destination alias 2018-08-09 15:18:10 -04:00
Yotam Mann
f09b5d0372 Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev 2018-07-30 22:57:09 -04:00
tambien
76b685698f removing transport test for now 2018-07-30 13:17:39 -04:00
tambien
d38fefb2cd toMaster uses the instance connected to the context 2018-07-30 13:07:46 -04:00
tambien
0b50aca977 testing that the Transport is the same after Tone.Offline
resolves #314
2018-07-30 13:07:23 -04:00
tambien
5ca79dfb58 tests in HTML file 2018-07-29 23:33:15 -04:00
tambien
9ba77ffec3 moving to test/html/ 2018-07-29 23:31:07 -04:00
tambien
84f2162098 updating test 2018-07-29 09:52:11 -04:00
tambien
4ced626c14 placeholder test for allowing different AudioContext to be passed into constructor 2018-07-29 09:39:58 -04:00
tambien
a17e7b152d running basic tests on Gain 2018-07-29 09:39:22 -04:00
tambien
9edafa8be4 removing source when sample has finished
prevents error where the BufferSource.stop is attempted after the source has already finished
2018-07-29 09:28:45 -04:00
Yotam Mann
49b1f41517 testing polyphonic voice handling 2018-06-20 23:12:45 -04:00
Yotam Mann
35171ded9d testing updated BufferSource api 2018-06-20 15:07:32 -04:00
Yotam Mann
a63d01fd9c comparing to file, removing seek test 2018-06-20 15:05:10 -04:00
Yotam Mann
7afbc16747 refactoring test 2018-06-20 15:04:25 -04:00
Yotam Mann
4e5e686516 validating that velocity affects sampler playback
fixes #363
2018-06-20 15:03:38 -04:00
tambien
f69913ae15 increasing test thresholds 2018-06-18 17:03:05 -04:00
tambien
8b8a4e5223 expanding threshold 2018-06-18 16:12:54 -04:00
tambien
7bf6e1d11d adding PolySynth tests 2018-06-18 15:49:47 -04:00
tambien
feb010946c adding MembraneSynth test 2018-06-18 15:49:38 -04:00
tambien
55eed8c295 removing sinon 2018-06-13 19:03:17 -04:00
tambien
dd808e5f7c restoring the debug state 2018-06-13 17:08:07 -04:00
tambien
a4156cb630 testing Tone debugging tools 2018-06-13 17:00:25 -04:00
tambien
a1e782df4a using resume instead of ready 2018-06-13 15:56:00 -04:00
Yotam Mann
8e0c626149 increasing test threshold 2018-06-12 23:51:30 -04:00
Yotam Mann
cf6d1f27fe increasing threshold 2018-06-12 23:49:01 -04:00
Yotam Mann
6dbb025c2a removing signal proxies
added too much difficulty with garbage collection, too many edge cases
2018-06-09 12:55:29 -04:00
tambien
88789c75f2 increasing test threshold 2018-06-07 15:32:54 -04:00
Yotam Mann
baeb20a17c fixing order of gate connections
had wrong behavior bc of connection order.

fixes #298
2018-06-07 12:49:32 -04:00
Yotam Mann
4bc4391d9a adjusting test thresholds 2018-06-07 12:28:31 -04:00
Yotam Mann
049bfd04de exponent passed into constructor is applied
fixes #356
2018-06-07 12:21:38 -04:00
Yotam Mann
66fa7e3b40 comparing freeverb to file 2018-06-07 12:12:20 -04:00
Yotam Mann
646f75be95 testing attenuation
making sure it's consistent cross browser
2018-06-07 12:12:06 -04:00
Yotam Mann
a441ce3ade changing LPCF implementation to avoid positive feedback loop
Fixes #198
2018-06-07 12:11:53 -04:00
tambien
16b50deab9 commenting out failing test
for now
2018-06-05 23:03:37 -04:00
tambien
982bc16b71 gate uses just smoothing instead of attack/release 2018-06-05 22:43:01 -04:00
tambien
765de3c6b8 follower uses a single smoothing value 2018-06-05 22:14:46 -04:00
tambien
f7633a5c73 testing signal proxies 2018-06-05 21:58:00 -04:00
tambien
0d68352e9d increasing threshold 2018-06-05 21:53:50 -04:00
tambien
0d82a1632f using var instead of const 2018-06-01 22:02:05 -04:00
tambien
ecc0945cdc simplifying test
takes much shorter to compute
2018-06-01 21:39:37 -04:00
Yotam Mann
bbf2929b6f rotating the phase of the oscillator group
addresses #354
2018-05-29 10:35:12 -04:00