Commit graph

3101 commits

Author SHA1 Message Date
Yotam Mann
c5c6ba94d5 noting changes 2018-03-05 22:29:08 -05:00
Yotam Mann
7a5b872f76 using more accurate seconds counter for syncedStop 2018-03-05 22:29:00 -05:00
Yotam Mann
cf585cbfd5 testing lookAhead compared to currentTime instead of 'now' 2018-03-05 22:28:43 -05:00
Yotam Mann
810a667442 get elapsed seconds at the given time 2018-03-05 22:27:31 -05:00
Yotam Mann
25ae2081ce don't iterate if no index is found 2018-03-05 22:26:56 -05:00
Yotam Mann
8c2acd03d5 removing retrigger, maintaining array of activeSources 2018-03-05 22:26:37 -05:00
Yotam Mann
5ded029206 getSecondsAtTime returns elapsed seconds
also invoking event immediately if the window has already passed
2018-03-05 22:25:57 -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
dcd5a0d0e9 documenting getStateAtTime 2018-03-05 13:00:45 -05:00
Yotam Mann
a5503e02d2 linting 2018-03-05 12:25:33 -05:00
Yotam Mann
0da461ca8e ignoring scratch file 2018-03-05 12:23:50 -05:00
Yotam Mann
4988523b44 requiring Master in Offline 2018-03-05 11:58:46 -05:00
Yotam Mann
b70ba1fca0 removing reference to TONE_AUDIO_CONTEXT 2018-03-05 11:58:27 -05:00
Yotam Mann
0546bd9639 noting changes 2018-03-05 11:32:18 -05:00
Yotam Mann
a80ae0656b Tone.isDefined replaces !Tone.isUndef 2018-03-05 11:32:08 -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
897b885a40 increasing max search interval to 8 octaves
fixes #315
2018-03-05 10:40:46 -05:00
Yotam Mann
701092d6e2 Fixing documentation error
fixes #316
2018-03-05 10:31:32 -05:00
Yotam Mann
80033a047e expanding MetalSynth threshold 2018-03-01 14:55:13 -05:00
Yotam Mann
efa06f43f1 testing that the stop event is not the first event 2018-03-01 14:44:20 -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
1d6132a141 Revert "keeping reference to original Transport/Master/Listener interfaces"
This reverts commit 7bf69db3d6.
2018-03-01 14:33:16 -05:00
Yotam Mann
7bf69db3d6 keeping reference to original Transport/Master/Listener interfaces
fixes #314
2018-03-01 14:27:58 -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
d98b10d6f8 documenting oscillator node 2018-03-01 14:08:35 -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
40530e3c16 'stop' is invoked on the last scheduled stop value 2018-03-01 14:02:11 -05:00
Yotam Mann
897d1d1294 Param.value cancels scheduled values
uses context.currentTime for instant change
2018-02-27 17:05:39 -05:00
Yotam Mann
515973302b expanding pulse oscillator threshold 2018-02-27 17:05:05 -05:00
Yotam Mann
36beb6c5f8 events use Transport.getTicksAtTime for greater accuracy 2018-02-27 17:04:30 -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
5f1ae523f9 lookAhead shouldn't be private 2018-02-15 11:47:22 -05:00
Yotam Mann
cd31c5b3e9 pass maxDelay in the options object
addresses #280
2018-02-15 11:42:59 -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
a7e2f603d9 playing sources only while instruments are triggered 2018-02-08 11:11:57 -05:00
Yotam Mann
65f166570b Sources call 'restart' method if already started when 'start' is invoked 2018-02-08 11:10:53 -05:00
Yotam Mann
8f0b5d2279 making onConnect private 2018-02-08 11:02:30 -05:00
Yotam Mann
7d71389f47 noting changes
[skip ci]
2018-02-05 16:54:15 -05:00