Commit graph

3317 commits

Author SHA1 Message Date
Yotam Mann
18fa10086d making the inner forEachBetween exclusive of the end time 2018-03-30 17:57:35 -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
5dcf75ea01 updating synth sounds 2018-03-29 16:57:04 -04:00
Yotam Mann
08aeae8cc6 removing deprecated expression evaluation in time string 2018-03-29 16:56:56 -04:00
Yotam Mann
79a4aaae99 getLevelAtTime returns the envelope's value at the given time 2018-03-29 16:56:27 -04:00
Yotam Mann
2841fefe40 Revert "Encode URL when loading buffer (#318)"
This reverts commit e6db1daed8.
2018-03-29 15:43:44 -04:00
David Su
e6db1daed8 Encode URL when loading buffer (#318)
* encode url in request when loading buffer

* separate components by slash when encoding url

* match indentation style

* fix lint errors
2018-03-20 09:16:05 -05:00
Yotam Mann
77c7b85da5 changing simpleSynth sounds 2018-03-06 00:03:04 -05: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
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