Commit graph

806 commits

Author SHA1 Message Date
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