Commit graph

2523 commits

Author SHA1 Message Date
Yotam Mann
0c5307c3c7 stop time is inclusive of second event 2017-05-28 17:41:27 -04:00
Yotam Mann
2863389be9 loosening values slightly 2017-05-28 17:41:06 -04:00
Yotam Mann
06a3413824 removing start/stop/pause events from TickSignal
adding `getDurationOfTicks`
2017-05-28 16:55:25 -04:00
Yotam Mann
7afa2c578c cancel->cancedScheduledValues 2017-05-28 14:14:22 -04:00
Yotam Mann
5a8550690f start/stop/pause events to TickSignal 2017-05-28 14:02:15 -04:00
Yotam Mann
73adc20088 get an event before the given event 2017-05-28 13:57:47 -04:00
Yotam Mann
aa5b81f8d1 linting 2017-05-26 22:25:12 -04:00
Yotam Mann
1fcb4392d1 updating with more accurate values 2017-05-26 22:16:25 -04:00
Yotam Mann
323eb3000a using inverse integral technique described in WAC paper 2017-05-26 22:16:09 -04:00
Yotam Mann
8727ca4383 linting 2017-05-26 17:39:45 -04:00
Yotam Mann
bed6181b70 no input node on TimelineSignal
that way nothing could be connected to it which would overwrite its
computed values
2017-05-26 17:17:32 -04:00
Yotam Mann
8081940629 timeline takes optional comparator arg to getters
allows it to do binary search on other attributes, not just time
2017-05-26 17:06:11 -04:00
Yotam Mann
686a591219 linting 2017-05-26 16:55:03 -04:00
Yotam Mann
6077e18959 testing TickSignal 2017-05-26 16:45:46 -04:00
Yotam Mann
f86639fc8e Tone.TickSignal calculates elapsed ticks
sums area under scheduling curve. approximates exponential and target
curves using multiple linear ramps
2017-05-26 16:45:30 -04:00
Yotam Mann
470cc4520f Revert "fixing floating point error in test"
This reverts commit 3c4f03c816.
2017-05-23 23:29:28 -04:00
Yotam Mann
dc0e61c757 Revert "don't update clock time, just tick time"
This reverts commit 6597764434.
2017-05-23 23:29:14 -04:00
Yotam Mann
c0677d49f2 player was undefined 2017-05-23 23:02:55 -04:00
Yotam Mann
3c4f03c816 fixing floating point error in test
looks like a floating point error…
2017-05-23 22:15:32 -04:00
Yotam Mann
6597764434 don't update clock time, just tick time 2017-05-23 22:14:50 -04:00
Yotam Mann
7331a68104 additional seek test 2017-05-23 09:31:07 -04:00
Yotam Mann
54b11df1dd simplifying BufferSource playback offset > loopEnd logic 2017-05-23 09:30:17 -04:00
Yotam Mann
0b916bb4d0 testing stopping twice
second stop is sooner than previous stop. should stop on the sooner
one.

addresses #241
2017-05-22 16:12:35 -04:00
Yotam Mann
ea4078348f don't nullify source when stopped
fixes #241
2017-05-22 16:11:50 -04:00
Yotam Mann
3e58c39f10 organizing Buffer tests 2017-05-21 21:00:56 -07:00
Yotam Mann
0ba7837899 cloning queue to remove items within forEach loop 2017-05-21 21:00:44 -07:00
Yotam Mann
3f6c22ed39 removing unnecessary if statement 2017-05-21 20:41:43 -07:00
Yotam Mann
c8c436cbf2 Tone.Players wraps up multiple Tone.Player objects
fixes #215
fixes #217
2017-05-21 20:40:20 -07:00
Yotam Mann
a6bb882758 readonly loaded boolean if the buffer is loaded 2017-05-21 20:25:35 -07:00
Yotam Mann
7cd7bb1536 source shouldn't be muted
otherwise it’s not testing the right thing
2017-05-21 20:16:32 -07:00
Yotam Mann
f9dc9fea03 testing looping when ticks >= loopEnd 2017-05-21 19:43:50 -07:00
Yotam Mann
8d84d67c4a Transport loops when ticks is >= loopEnd
Fixes #223
2017-05-21 19:43:31 -07:00
Yotam Mann
6eaca059cb testing that progress is between 0,1 and reaches 1 2017-05-21 19:12:42 -07:00
Yotam Mann
d41c649a5c Buffer onload and onprogress only rely on downloadQueue and not currentDownloads count 2017-05-21 19:12:14 -07:00
Yotam Mann
8a692145f6 simplifying tests using ConstantOutput helper 2017-05-16 22:52:09 -07:00
Yotam Mann
fc1496182a making channel mode explicit
fixes splitting problem in FF
2017-05-16 22:51:51 -07:00
Yotam Mann
812388143b noting changes
[skip ci]
2017-05-13 22:17:10 -04:00
Yotam Mann
264e5d0869 pass additional options other than the urls in second constructor argument 2017-05-13 22:16:05 -04:00
Yotam Mann
f778774401 linting 2017-05-13 22:14:13 -04:00
Yotam Mann
f87665a52a make sure that the downloads count doesn't go below 0 2017-05-13 22:09:20 -04:00
Yotam Mann
f534e13a7e optionally pass in the options object in the second argument 2017-05-13 22:08:55 -04:00
Yotam Mann
b63a3f3f00 testing multisampler 2017-05-13 22:08:14 -04:00
Yotam Mann
5d7bd92d7a MultiSampler instrument 2017-05-13 22:08:04 -04:00
Yotam Mann
c354c85bb0 removing error in clock test
wasn’t able to recover the audio context
2017-05-08 12:19:43 -04:00
Yotam Mann
260d27bbb3 instruments depend on Tone.Master 2017-05-08 11:49:08 -04:00
Yotam Mann
187884f5ae testing min/max getter 2017-05-08 11:48:47 -04:00
Yotam Mann
a487395201 testing callback error throwing 2017-05-08 11:45:40 -04:00
Yotam Mann
e30e6c5cc9 try/catch block around callback
allows it to recover from errors that are in the callback

fixes #239
2017-05-08 11:45:21 -04:00
Yotam Mann
70e07a1144 Merge pull request #238 from Jinksi/patch-1
Fix typo in comments
2017-05-08 07:12:11 -07:00
Eric Jinks
19783f5e6c Fix typo in comments 2017-05-05 22:45:19 +10:00