Commit graph

147 commits

Author SHA1 Message Date
tambien
3d1202043a all modules are relative paths
simplifies deep references to individual files
2018-08-26 22:29:17 -04:00
tambien
1070f226f3 using is[ClassName] boolean instead of instanceof 2018-08-26 10:59:41 -04:00
tambien
df5c800df4 changing singleton references to lowercase 2018-07-29 23:34:13 -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
810a667442 get elapsed seconds at the given time 2018-03-05 22:27:31 -05:00
Yotam Mann
a80ae0656b Tone.isDefined replaces !Tone.isUndef 2018-03-05 11:32:08 -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
740131e062 Transport exposes getTicksAtTime
uses clock.nextTickTime to compute quantization
2018-02-27 17:03:18 -05:00
Yotam Mann
ec3a2d24e2 using getTicksAtTime to get the most accurate BarsBeatsSixteenths 2018-01-02 12:25:13 -05:00
Yotam Mann
985ce80a71 updated Transport.syncSignal to new Param values 2017-12-29 20:07:24 -05:00
Yotam Mann
b7424b5e4f using the bpm at the current time 2017-12-29 13:47:36 -05:00
Yotam Mann
7bd133ca02 using getTicksAtTime for better accuracy when getting progress 2017-12-27 16:29:15 -05:00
Yotam Mann
d72fba9bf7 using setTicksAtTime for more accuracy when setting/looping 2017-12-27 16:28:41 -05:00
Yotam Mann
40891fb865 using clock seconds
they are accurate even during bpm automation curves
2017-12-27 16:24:27 -05:00
Yotam Mann
38d493fc68 using Tone.Ticks to represent times 2017-12-17 13:26:04 -05:00
Yotam Mann
8f3f480baa loopStart/End times in Time instead of TransportTime 2017-12-16 14:08:22 -05:00
Yotam Mann
4316530b16 linting 2017-10-26 16:03:00 -04:00
Yotam Mann
cb2a982c39 linting 2017-10-21 19:02:46 -04:00
Yotam Mann
08812c0886 optimizing the way that repeat events are handled 2017-09-04 16:08:47 -04:00
Yotam Mann
5fe3e9106c using async callback for getting context
for classes that need it on init
2017-08-13 21:37:32 -04:00
Yotam Mann
effd317acd Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev 2017-07-27 17:46:15 -04:00
Yotam Mann
15537e1f19 dispose Transport/Master when context is closed 2017-06-19 17:51:59 -04:00
Yotam Mann
bdbbc14ad5 toggle the Transport state 2017-06-16 17:32:04 -04:00
Yotam Mann
8d84d67c4a Transport loops when ticks is >= loopEnd
Fixes #223
2017-05-21 19:43:31 -07:00
Yotam Mann
44a041a027 making method as private
[skip ci]
2017-05-07 18:45:23 -07:00
Yotam Mann
b927395825 making defaultArg static 2017-04-30 15:03:49 -04:00
Yotam Mann
8cd381c2ca mirroring the way that Master is stored on the context 2017-04-30 14:48:57 -04:00
Yotam Mann
edfa168713 moving to static type queries
i.e. this.isString -> Tone.isString
2017-04-26 00:24:19 -04:00
Yotam Mann
5569f7b26f latencyHint has moved to Tone.Context 2017-03-27 11:34:47 -04:00
Yotam Mann
d037c28d6f eval -> valueOf
thanks for the suggestion @JackCA
fixes #205
2017-03-12 21:31:23 -04:00
Yotam Mann
ea1b92e75a only set the clock ticks when the value has changed
optimization
2017-03-12 21:09:57 -04:00
Yotam Mann
83a019c987 moving context dependency from Transport to Type 2017-02-28 19:01:09 -05:00
Yotam Mann
7549bdaa1a renaming _initAudioContext() -> on("init") 2017-02-19 11:50:15 -05:00
Yotam Mann
5d15ee324f lookAhead -> latencyHint
more consistent with WAA spec
2016-12-20 22:47:37 -05:00
Yotam Mann
095f40f529 reverting getStateAtTime method in Tone.Clock 2016-12-18 23:39:53 -05:00
Yotam Mann
31fe050475 getStateAtTime -> getValueAtTime 2016-12-18 22:14:14 -05:00
Yotam Mann
9c94b89eec renaming addEvent->add, removeEvent->remove, getEvent->get 2016-12-18 21:56:22 -05:00
Yotam Mann
a0ea404745 Revert "deferred animation callback"
This reverts commit f685bcd5ae.
2016-12-18 13:43:23 -05:00
Yotam Mann
77640e7be3 delete pointer to scheduledOnce events after they are triggered 2016-12-18 13:41:23 -05:00
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