Commit graph

1047 commits

Author SHA1 Message Date
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
Yotam Mann
3c2b822b43 can make decayCurve linear or exponential
fixes #354
2018-05-28 18:51:44 -04:00
Yotam Mann
7065f2394d testing ripple envelope 2018-05-28 18:19:44 -04:00
Yotam Mann
03ebb8af41 adjusting test thresholds 2018-05-28 18:19:27 -04:00
Yotam Mann
4cb60ca111 Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev 2018-05-28 18:06:44 -04:00
Yotam Mann
4ea1c7c617 testing for discontinuities when using setValueAtTime 2018-05-28 18:06:28 -04:00
Yotam Mann
4d40fe8a2a testing that source always increments by 1 2018-05-28 18:01:40 -04:00
Yotam Mann
c93a16dfe2 CompareToFile averages across all samples 2018-05-28 18:01:03 -04:00
Yotam Mann
9d64cb4403 testing attack/release curves 2018-05-28 17:59:52 -04:00
tambien
38dcb86631 simplyfying tests
WIP - will fill this in later
2018-05-25 18:34:46 -04:00
tambien
57070d987b only disconnecting when signal is started
fixes #338
2018-05-25 18:24:45 -04:00
Yotam Mann
f40958be94 verifying that all sources can restart 2018-05-20 17:36:17 -04:00
Yotam Mann
bc7269e740 checking for 'then' instead of 'instanceof Promise' 2018-05-19 13:39:39 -04:00
Yotam Mann
296af2cbde testing for Promise by checking for 'then' 2018-05-19 13:11:11 -04:00
Yotam Mann
fc7a5b6742 removing unused deps 2018-05-19 12:24:25 -04:00
Yotam Mann
95c694b3ad moving deps to node_modules 2018-05-19 12:17:23 -04:00
Yotam Mann
8d3edc4f29 ignoring example tests for now 2018-05-19 11:29:33 -04:00
Yotam Mann
392a60c4e5 Merge branch 'dev' into webpack 2018-05-18 19:22:20 -04:00
Yotam Mann
34b4826f54 silence logging 2018-05-18 18:04:04 -04:00
Yotam Mann
10225d3ec3 invoke test with timeout 2018-05-18 18:03:58 -04:00
Yotam Mann
59159c5dc6 converting to number using valueOf 2018-05-18 18:02:57 -04:00
Yotam Mann
65511e24f3 removing unnecessary files 2018-05-18 12:09:35 -04:00
Yotam Mann
3e16be1fcc updated test template html 2018-05-18 12:09:25 -04:00
Yotam Mann
a18ab72da0 pointing at correct helper/Test 2018-05-18 12:07:20 -04:00
tambien
a8e27649c5 increasing test thresholds 2018-05-17 11:41:13 -04:00
tambien
ade4946ff3 removing peak
only use RMS value
2018-05-17 11:40:59 -04:00
tambien
ba1e40ddd3 Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev 2018-05-17 11:11:04 -04:00
tambien
ff15c57b49 testing negative time evaluation in objects 2018-05-17 11:11:01 -04:00
David Sherman
c66c453e95 Added type property to Tone.Meter (#276)
* Added 'type' property to Tone.Meter that accepts 'peak' or 'rms' and defaults to 'rms'. Calculation methods + sources added to Tone.Meter. Tests added to Tone.Meter + assertion sources.

* Fixed a number of formatting issues

* more formatting fixes

* Formatting for CI

* fixed variable names

* Updated to use existing gainToDb method.

* Removed tests of removed method.

* Removed whitespaces and tabs.

* Moved Supports.ONLINE_TESTING to original position

* Moded Supports.ONLINE_TESTING to top
2018-05-16 10:41:02 -04:00
tambien
4b4570ba73 toBarsBeatsSixteenths tests
additional validation for #343
2018-05-15 10:15:30 -04:00
Yotam Mann
dd9135033e updating Draw tests
now testing correct synchronization with AudioContext.currentTime
2018-04-25 11:50:37 -04:00
Yotam Mann
08193b466c expanding tolerence 2018-04-25 10:51:46 -04:00
Yotam Mann
39d5898738 Time classes take Object notation as well
replacement for deprecated expression notation
2018-04-25 10:51:36 -04:00
Yotam Mann
bd9e3b92ba additional NoiseSynth tests 2018-04-25 10:29:07 -04:00
Yotam Mann
785f07dbe8 adding additional midi to frequency tests 2018-04-12 17:14:17 -04:00
Yotam Mann
433cd78689 fixing infinite loop when stop and start are scheduled at the same time
validating change with test
2018-03-30 13:15:53 -04:00
Yotam Mann
43f8725eff Transport.cancel disposes the events not just removes them from the timeline
Fixes #303
2018-03-30 11:54:56 -04:00
Yotam Mann
cd1e7fff12 forEachAfter -> forEachFrom, more consistent with Timeline 2018-03-30 11:52:52 -04:00
Yotam Mann
65f15a1ef2 restart method to all the oscillators 2018-03-06 00:02:49 -05:00
Yotam Mann
ccc5fea22b portamento only happens on close retriggers 2018-03-05 23:56:42 -05:00
Yotam Mann
d2e82bab51 using online testing only where supported 2018-03-05 23:09:36 -05:00
Yotam Mann
2ec8e45966 extending test durations 2018-03-05 22:58:28 -05:00
Yotam Mann
cf585cbfd5 testing lookAhead compared to currentTime instead of 'now' 2018-03-05 22:28:43 -05:00
Yotam Mann
8c2acd03d5 removing retrigger, maintaining array of activeSources 2018-03-05 22:26:37 -05:00
Yotam Mann
103f01bdc7 getState at time, does not throw error if already stopped 2018-03-05 22:25:12 -05:00
Yotam Mann
64fe046996 no longer using 2 octave limit 2018-03-05 10:58:43 -05:00
Yotam Mann
9f4c689e16 testing that the synth is silent after triggerAttack if the sustain is 0 2018-03-05 10:57:39 -05:00
Yotam Mann
80033a047e expanding MetalSynth threshold 2018-03-01 14:55:13 -05:00
Yotam Mann
3d0a8005b7 removing isPast warning
clutters up tests, rarely helpful for debugging
2018-03-01 14:38:40 -05:00
Yotam Mann
21e0d35d67 temporarily removing onended test 2018-03-01 14:27:25 -05:00
Yotam Mann
4dd5c0a464 get the playback position of the playing buffer
integrates TickSource to track position even with playbackRate changes

Fixes #292 and Fixes #307
2018-03-01 14:15:37 -05:00
Yotam Mann
e5a6788de1 getNextState returns the next instance of the given state after the given time 2018-03-01 14:11:07 -05:00
Yotam Mann
23932cbfa6 can cancel scheduled stop and setTick events 2018-03-01 14:06:03 -05:00
Yotam Mann
373af11bbc testing stop and cancelStop 2018-03-01 14:02:29 -05:00
Yotam Mann
515973302b expanding pulse oscillator threshold 2018-02-27 17:05:05 -05:00
Yotam Mann
5a04a72d34 TickSignal is slightly more accurate
removes sampleTime subtraction where possible
2018-02-27 17:04:01 -05:00
Yotam Mann
740131e062 Transport exposes getTicksAtTime
uses clock.nextTickTime to compute quantization
2018-02-27 17:03:18 -05:00
Yotam Mann
b14e51f9e9 Clock uses TickSource to track ticks 2018-02-27 17:02:41 -05:00
Yotam Mann
f06516d76d TickSource handles pause events
more flexible and accurate timing calculations
2018-02-27 17:02:17 -05:00
Yotam Mann
cf138c03b4 TickSource tracks elapsed ticks can start/stop
no pause yet
2018-02-25 17:25:32 -05:00
Yotam Mann
836a173cf8 forEachBetween is exclusive of endTime 2018-02-25 15:08:43 -05:00
Yotam Mann
ebb7aac407 getLastState returns the last event with the given state 2018-02-18 16:01:27 -05:00
Yotam Mann
44512cee0a get the readonly maxDelay time 2018-02-15 11:41:01 -05:00
Yotam Mann
92c11091b5 increasing test coverage 2018-02-14 12:18:41 -05:00
Yotam Mann
915d85ebd1 testing instruments are able to retrigger correctly 2018-02-08 11:12:17 -05:00
Yotam Mann
98d1b8808a adding getter/setter for channelCount, channelCountMode and channelInterpretation 2018-02-05 16:51:04 -05:00
Yotam Mann
2666b06d47 adjusting test values 2018-02-05 16:50:29 -05:00
Yotam Mann
56c12fb627 Tone.Mono coerces the incoming mono or stereo signal into a mono signal 2018-02-05 16:40:55 -05:00
Yotam Mann
c91c1354e0 using a stereo signal to test PassAudioStereo and splitting 2018-02-05 16:25:43 -05:00
Yotam Mann
6cb53f6d9a continuity tests on Chrome only 2018-02-05 15:06:53 -05:00
Yotam Mann
423ea05977 skipping FMSynth comparison when not on Chrome 2018-02-05 14:59:40 -05:00
Yotam Mann
88f43379e7 increasing testing threshold 2018-02-05 14:43:03 -05:00
Yotam Mann
bcdaa8196e increasing test threshold 2018-02-05 14:37:07 -05:00
Yotam Mann
67649e43d5 adjusting FFT size and ignoring failing FF tests 2018-02-05 14:36:58 -05:00
Yotam Mann
bc558a1386 increasing threshold 2018-02-05 14:24:26 -05:00
Yotam Mann
4b9a407304 only running tests when audio rending is similar to Chrome 2018-02-05 14:24:21 -05:00
Yotam Mann
5eec68f9d0 compare rendered output to previously rendered audio files 2018-02-05 13:55:37 -05:00
Yotam Mann
e767d618d2 only testing online when supported 2018-02-04 23:01:24 -05:00
Yotam Mann
c4cd005635 adding getValueAtTime to returned RMS 2018-02-04 22:59:17 -05:00
Yotam Mann
f086f58c75 OscillatorNode is a fire-and-forget Oscillator 2018-02-04 22:55:19 -05:00
Yotam Mann
6ed9c8e4d5 testing chaining control signals 2018-02-04 13:05:06 -05:00
Yotam Mann
58eac95314 define left and right variables 2018-02-04 11:43:34 -05:00
Yotam Mann
a228deb862 increasing testing threshold 2018-02-01 09:56:32 -05:00
Yotam Mann
dfe269d60c testing loading un-decodable audio 2018-01-18 12:50:45 -05:00
Yotam Mann
8fa809d5b8 adjusting test threshs to be less susceptible to randomness 2018-01-17 13:40:18 -05:00
Yotam Mann
82c7a109de updating threshold 2018-01-17 13:30:24 -05:00
Yotam Mann
87217d1ab4 does not invoke stop from start in case playbackRate changes
fixes #292
2018-01-17 13:18:51 -05:00
Yotam Mann
9dbb54ff6a AudioNode.connect returns the connected to node
fixes #291
2018-01-11 09:36:08 -08:00
Yotam Mann
1e5606a003 testing cancelAndHold during exponential ramp 2018-01-03 15:38:04 -05:00
Yotam Mann
8759443f9e testing exponential approach and cancelScheduledValues 2018-01-03 15:30:44 -05:00
Yotam Mann
ec6a9baa52 checking for discontinuities with different curve types 2018-01-03 15:23:20 -05:00
Yotam Mann
1917148a99 testing setting AutoWah values 2018-01-03 15:22:52 -05:00
Yotam Mann
ea41ebb599 simple convolution-based reverb 2018-01-03 12:04:27 -05:00
Yotam Mann
a57ac25187 returning promise to OfflineTest defers the callback of 'render' 2018-01-03 12:03:41 -05:00
Yotam Mann
55c3474849 adding get getRmsAtTime to BufferTests 2018-01-03 12:02:41 -05:00
Yotam Mann
3f72fec6f9 returning a promise defers the rendering till the promise has resolved 2018-01-03 12:02:10 -05:00
Yotam Mann
92454266f7 sync/unsync triggerAttack/Release to the Transport 2018-01-02 16:49:41 -05:00
Yotam Mann
ec3a2d24e2 using getTicksAtTime to get the most accurate BarsBeatsSixteenths 2018-01-02 12:25:13 -05:00
Yotam Mann
077ae6d69a Source sync and start after Transport is already running 2018-01-02 10:35:39 -05:00
Yotam Mann
15229d7c7e linting 2017-12-30 11:26:29 -05:00
Yotam Mann
a6f9ca49bd fixing AudioContext.close promise resolution support 2017-12-30 11:23:02 -05:00
Yotam Mann
2b896fad0c don't run Context tests when close isn't supported 2017-12-30 01:19:04 -05:00
Yotam Mann
a84b2ae160 adding polyfill 2017-12-30 00:30:52 -05:00
Yotam Mann
b0f729c9f1 static fromUrl method. 2017-12-30 00:06:53 -05:00
Yotam Mann
c8ac0e7d40 Revert "using babel-polyfill"
This reverts commit aed806032c.
2017-12-29 23:34:44 -05:00
Yotam Mann
aed806032c using babel-polyfill
for older browsers testing
2017-12-29 23:23:28 -05:00
Yotam Mann
919de12cfa don't run example tests on older safari 2017-12-29 23:15:40 -05:00
Yotam Mann
9fe0d1546a increasing threshold slightly 2017-12-29 22:17:44 -05:00
Yotam Mann
f129e5d726 removing the polyfill from the tests 2017-12-29 22:06:39 -05:00
Yotam Mann
658d2f201f adding babel-polyfill for testing older browsers 2017-12-29 21:44:10 -05:00
Yotam Mann
fa7bb9c9d9 only testing when equal power panning is supported 2017-12-29 21:37:42 -05:00
Yotam Mann
46df5578d9 removing TimelineSignal 2017-12-29 20:41:49 -05:00
Yotam Mann
3554eebc46 TransportTimelineSignal extends Signal instead of TimelineSignal 2017-12-29 20:41:34 -05:00
Yotam Mann
985ce80a71 updated Transport.syncSignal to new Param values 2017-12-29 20:07:24 -05:00
Yotam Mann
0b09c674b4 TickSignal extends Signal instead of TimelineSignal 2017-12-29 20:06:47 -05:00
Yotam Mann
8f5c6ea20b increasing testing tolerance 2017-12-29 20:06:21 -05:00
Yotam Mann
1104f3cfc0 moving automation logic to Param instead of AudioParam shim 2017-12-29 20:05:57 -05:00
Yotam Mann
b4c81f7115 misspelled Approach in exponentialApproachValueAtTime 2017-12-29 20:04:46 -05:00
Yotam Mann
5b76ed06c2 testing AutoPanner syncing/unsyncing 2017-12-29 14:05:34 -05:00