Commit graph

932 commits

Author SHA1 Message Date
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
Yotam Mann
acf3768120 setting rotation in another way 2017-12-29 13:50:57 -05:00
Yotam Mann
4ec99ed3c0 testing syncing/unsyncing 2017-12-29 13:48:16 -05:00
Yotam Mann
3ab93c008d increasing Midi conversion tests 2017-12-29 13:14:02 -05:00
Yotam Mann
0178845b2b expanding meter tolerance 2017-12-29 12:01:53 -05:00
Yotam Mann
bb8bbe6390 simplifying test
passes on Safari which still has 0-1 as min/max for gain
2017-12-28 18:51:18 -05:00
Yotam Mann
c4abd54719 ignoring UserMedia tests on Safari 2017-12-28 18:44:14 -05:00
Yotam Mann
1c45f13f12 test validating using Tone.Frequency into triggerAttack
addresses #219
2017-12-27 17:41:10 -05:00
Yotam Mann
83ec5d3288 transpose and harmonize Midi notes 2017-12-27 17:29:26 -05:00
Yotam Mann
4d8812ee02 transpose and harmonize a Tone.Frequency
fixes #219
2017-12-27 17:29:10 -05:00
Yotam Mann
40891fb865 using clock seconds
they are accurate even during bpm automation curves
2017-12-27 16:24:27 -05:00
Yotam Mann
32d5451293 ability to get/set ticks at a given time. more accurate seconds counter using elapsed ticks. 2017-12-27 16:23:39 -05:00
Yotam Mann
60cdeaa5f3 converting between ticks and seconds during automation curves
fixes #169
2017-12-27 16:21:45 -05:00
Yotam Mann
65599f8c68 adjusting testing threshold 2017-12-27 16:20:56 -05:00
Yotam Mann
3dadafaf87 verifying getTimeOfTick 2017-12-27 11:47:03 -05:00
Yotam Mann
8dbaf71d89 forEachBetween iterator 2017-12-27 11:46:27 -05:00