Commit graph

107 commits

Author SHA1 Message Date
Yotam Mann
f685bcd5ae deferred animation callback
This is useful for synchronizing animations with scheduled audio
events.
2016-12-03 12:15:37 -05:00
Yotam Mann
b721ee8ffd API to set Transport's lookAhead to customize the balance of latency and performance 2016-11-22 10:56:47 -08:00
Richard Kwan
f2cc562d23 Change docs to correct default swingSubdivision
The default swingSubdivison for the Transport is an 8th note, not a 16th note.
2016-10-31 08:17:17 -04:00
Yotam Mann
6c222a4b03 looping transport emits 'loopStart' / 'loopEnd' instead of 'start' / 'stop'
Fixes #173
2016-10-19 14:50:55 -04:00
Yotam Mann
ecd5f9b5a3 only emit start/stop when setting ticks if transport is started 2016-09-29 00:52:00 -04:00
Yotam Mann
827fda3d00 more accurate handling of syncing to Transport start with an offset / duration 2016-09-25 12:35:57 -04:00
Yotam Mann
7565530987 start/stop/pause callbacks are invoked at the moment they occur
Previously they were invoked when the ‘start/stop/pause’ methods were
called.

Fixes #159
2016-09-24 11:48:28 -04:00
Yotam Mann
6a951fa217 using 'emit' instead of 'trigger'
more similar to Node.js EventEmitter class
2016-09-18 20:07:00 -04:00
Yotam Mann
cea47e5cdb added seek event when changing the Transport's position 2016-08-15 23:13:09 -04:00
Yotam Mann
682ec0e46e get/set the progress in seconds 2016-08-15 07:28:52 -04:00
Yotam Mann
c08e16087f correctly setting PPQ
wasn’t taking into account that the returns bpm value was dependent on
the PPQ. therefore, need to read the bpm before setting the PPQ.
2016-07-06 23:23:14 -04:00
Yotam Mann
cce32d7efc IntervalTimeline.forEachOverlap -> forEachAtTime 2016-06-13 09:02:51 -04:00
Yotam Mann
4628f8c47a prefixing errors with class name. 2016-05-25 20:50:46 -04:00
Yotam Mann
af1a737f71 simplifying position code to use TransportTime 2016-05-14 16:32:16 -04:00
Yotam Mann
16c28892c8 using Time instead of TransportTime 2016-04-18 01:12:55 -04:00
Yotam Mann
9b5837df3e Using new types
swing sinusoidally delays until a triplet.
2016-04-18 00:17:02 -04:00
Yotam Mann
ca95a0bef5 increasing PPQ to 192. quantize->nextSubdivision
separating out Timeline quantization from quantization method and
moving it elsewhere.
2016-04-13 13:05:27 -04:00
Yotam Mann
272ad66873 documenting distinction between Time and TimelinePosition
Fixes #104

[skip ci]
2016-03-18 11:28:49 -04:00
Yotam Mann
f2fc38210f updated doc examples 2016-03-03 13:08:26 -05:00
Yotam Mann
89711b336e process single occurrence events first
Fixes #114
2016-02-27 17:23:38 -05:00
Yotam Mann
9f785b371e removing deprecated methods 2016-01-18 22:45:46 -05:00
Yotam Mann
cfc33cf39c doc'ing 2015-12-08 00:07:16 -05:00
Yotam Mann
12d7cd0e1f eventsToRemove is no longer necessary 2015-12-06 13:14:36 -05:00
Yotam Mann
3e14c63313 updated docs 2015-11-10 23:02:01 -05:00
Yotam Mann
afba7d77d2 toRemove array
This fixes issues where an event is removed mid loop.
2015-11-02 20:08:20 -05:00
Yotam Mann
026501144d better accuracy by using the clock's next tick time. 2015-10-27 20:58:06 -04:00
Yotam Mann
681c38182d can quantize to a subdivision 2015-10-27 17:46:34 -04:00
Yotam Mann
1c7e9483e9 updating syncing for Params 2015-10-21 10:29:29 -04:00
Yotam Mann
bd7168825e normalized loop progress
Fixes #75
2015-10-09 19:09:02 -04:00
Yotam Mann
42134d7ac3 scheduleRepeat implemented with IntervalTimeline 2015-09-05 15:15:04 -04:00
Yotam Mann
7393a59410 cancel <-> clear
clear removes an ID and cancel cancels events after the given time. API
is now more consistent with the Web Audio’s cancelScheduledValues
2015-09-03 16:56:05 -04:00
Yotam Mann
c222d7752d clean up events array. 2015-08-31 16:42:54 -04:00
Yotam Mann
56eca9b690 "loop" event when the transport loops 2015-08-31 15:19:03 -04:00
Yotam Mann
3a6bc7adbd Source Syncing using events.
Signal syncing refactored.
2015-08-31 15:15:44 -04:00
Yotam Mann
155f83d948 making bpm readOnly
keeps people from overwriting it.
2015-08-28 18:42:08 -04:00
Yotam Mann
ba87494ee7 bpm is a readOnly attribute 2015-08-28 18:33:20 -04:00
Yotam Mann
74a63110da NewClock -> Clock 2015-08-18 18:15:19 -04:00
Yotam Mann
ac2d078afd using clock's ticks 2015-08-18 16:30:50 -04:00
Yotam Mann
6fb8995170 WIP schedule methods + PPQ 2015-08-16 20:31:11 -04:00
Yotam Mann
7608371843 exposing toTicks and ticksToSeconds 2015-07-13 21:58:20 -04:00
Yotam Mann
4e9cb3ce1e doc'ing 2015-06-20 15:50:57 -04:00
Yotam Mann
8d02f2eb81 editing class comments. 2015-06-14 01:45:12 -04:00
Yotam Mann
b2fa7a065e jsdocing 2015-06-13 23:56:32 -04:00
Yotam Mann
23cc2408b2 changing link tag 2015-06-13 21:54:20 -04:00
Yotam Mann
20ad29dc61 removing types from array notation 2015-06-13 20:56:41 -04:00
Yotam Mann
a81ba071f3 changing the styling of this in return statements 2015-06-13 20:54:29 -04:00
Yotam Mann
571183bf27 removing Tone.Type prefix in docs 2015-06-13 20:20:36 -04:00
Yotam Mann
f2f838b630 using signal jsdoc 2015-06-13 19:50:39 -04:00
Yotam Mann
3bf65cddb3 type annotation 2015-06-07 12:09:08 -04:00
Yotam Mann
1f69151c5f renamed Tone.Frequency -> Tone.Type.Frequency 2015-05-23 19:07:28 -04:00