Commit graph

2899 commits

Author SHA1 Message Date
Yotam Mann
e3d9cd136a use 'this.now()' instead of Tone.now() 2017-12-27 11:45:37 -05:00
Yotam Mann
f6bd45036e increasing number of segments in exponential and approach ramps 2017-12-25 14:43:59 -05:00
Yotam Mann
e61a4c5fe2 renaming to getTicksAtTime 2017-12-21 15:13:43 -05:00
Yotam Mann
7bf39fc7c5 using Math.log2 instead of dividing by Math.LN2 2017-12-18 10:45:25 -05:00
Yotam Mann
3ea44d3af6 linting 2017-12-17 14:49:26 -05:00
Yotam Mann
d4afe1e6ee Tone.Midi is primitive type for Midi notes 2017-12-17 14:48:25 -05:00
Yotam Mann
2138d2c26f adding toMidi() 2017-12-17 14:48:08 -05:00
Yotam Mann
456dd7ceb3 making midi<->freq conversions static 2017-12-17 14:47:51 -05:00
Yotam Mann
77d352450f moving basic conversions to TimeBase 2017-12-17 14:44:36 -05:00
Yotam Mann
1bb0a95a8e clone array so that events can be added/removed during iteration 2017-12-17 14:18:47 -05:00
Yotam Mann
0bb2391a43 clean up time value on dispose 2017-12-17 13:33:09 -05:00
Yotam Mann
e55b1e9dc1 toNotation() returns closest notation representation 2017-12-17 13:26:21 -05:00
Yotam Mann
38d493fc68 using Tone.Ticks to represent times 2017-12-17 13:26:04 -05:00
Yotam Mann
b3f1b73250 testing dotted notes 2017-12-17 13:24:52 -05:00
Yotam Mann
cee2d3da3a TransportTime returns seconds instead of Ticks
introducing Ticks for tick representation
2017-12-17 13:24:34 -05:00
Yotam Mann
32374fe27a constructor can take another type and convert it to target type 2017-12-17 13:23:31 -05:00
Yotam Mann
ade2778082 Tone.Ticks extends TransportTime 2017-12-17 13:17:46 -05:00
Yotam Mann
92c7638786 evaluate time with .valueOf 2017-12-17 12:53:34 -05:00
Yotam Mann
410eb5727d noting changes 2017-12-16 14:31:37 -05:00
Yotam Mann
ac6af1cf56 simplifying TimeBase classes. No longer evaluate expressions 2017-12-16 14:31:09 -05:00
Yotam Mann
933fa95b45 define loopStart/End, subdivision and interval in terms of seconds 2017-12-16 14:23:08 -05:00
Yotam Mann
8f3f480baa loopStart/End times in Time instead of TransportTime 2017-12-16 14:08:22 -05:00
Yotam Mann
41eeb9884f adding min/maxValue to Param 2017-12-16 13:09:52 -05:00
Idicious
43c2e9b449 Increased general accurary of dbToGain method + updated test cases. (#279)
* Increased general accurary of dbToGain method + updated test cases.

* Increased test accuracy
2017-12-16 00:04:50 -05:00
Yotam Mann
b929b26ca4 can pass in an unloaded Tone.Buffer into Convolver constructor
fixes #277
2017-12-15 23:36:39 -05:00
Yotam Mann
e4380a048b player can be constructed with unloaded Tone.Buffer
onload callback is invoked when the Buffer parameter is loaded

fixes #273
2017-12-15 23:06:06 -05:00
Yotam Mann
4c783c9b09 buffer can be constructed with an unloaded Buffer
load callback is invoked when parameter Buffer is loaded
2017-12-15 23:04:22 -05:00
Yotam Mann
bc2be646dc fixing linting errors 2017-12-15 12:50:30 -05:00
Yotam Mann
0d22648aef adding 'once' to mixin methods 2017-12-15 12:49:53 -05:00
Yotam Mann
e184f9f149 using native connect instead of 'chain' 2017-12-15 12:49:41 -05:00
Yotam Mann
7d1b06f1bb promise-based decodeAudioData 2017-12-15 12:48:58 -05:00
Yotam Mann
167af325b5 decodeAudioData promise shim 2017-12-15 12:48:46 -05:00
Yotam Mann
a6ebaeeb9f Emitter.once invokes a callback only once 2017-12-15 11:11:14 -05:00
Yotam Mann
db4e5fab0d if the constructor delayTime is greater than the maxDelay, use the delayTime as the maxDelay
fixes #280
2017-12-06 13:16:22 -05:00
Yotam Mann
476e798c7e noting changes 2017-11-29 17:11:25 -05:00
Yotam Mann
f818bede9a releaseAll stops all currently active notes
fixes #272
2017-11-29 16:54:17 -05:00
Yotam Mann
1a60d8bd38 setting linting preferences 2017-11-29 16:29:04 -05:00
Yotam Mann
27b1513ddf removing Tone.Expr
no more use for this class
2017-11-29 16:28:47 -05:00
Yotam Mann
7b35eee3ed throw error if constructor is invoked without 'new'
addresses #271
2017-11-29 16:28:04 -05:00
Yotam Mann
309c2ecad0 running tests in parallel 2017-11-29 16:14:53 -05:00
Yotam Mann
ba55239032 only running when devices are available 2017-11-29 16:04:09 -05:00
Yotam Mann
975e2ea17d cache node_modules 2017-11-29 15:46:31 -05:00
Yotam Mann
95a7f9f5af running tests in series
instead of in parallel
2017-11-29 15:46:13 -05:00
Yotam Mann
528882be53 does not require device and deviceId in gUM 2017-11-29 15:38:25 -05:00
Yotam Mann
7f3fb5fd38 allow tests to run in parallel 2017-11-29 15:28:05 -05:00
Yotam Mann
3e7e351e4a fixing typo in else statement 2017-11-29 15:27:01 -05:00
Yotam Mann
30f118fd55 silence version logging in tests 2017-11-29 15:23:20 -05:00
Yotam Mann
f5e6d973c9 only throw 'no matching device error' when a specific device is requested 2017-11-29 15:22:58 -05:00
Yotam Mann
f02a46f0c0 skip tests which rely on AudioContext.close promise resolving on unsupported platforms 2017-11-29 15:22:30 -05:00
Yotam Mann
5310c984c6 running tests on headless FF 2017-11-29 15:07:25 -05:00