Commit graph

66 commits

Author SHA1 Message Date
tambien
cbe1588662 calling resume on clock start
since it relies on the context clock being started
2018-06-18 11:23:31 -04: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
a5503e02d2 linting 2018-03-05 12:25:33 -05:00
Yotam Mann
b14e51f9e9 Clock uses TickSource to track ticks 2018-02-27 17:02:41 -05:00
Yotam Mann
dded291a25 linting 2018-01-02 10:37:27 -05:00
Yotam Mann
32d5451293 ability to get/set ticks at a given time. more accurate seconds counter using elapsed ticks. 2017-12-27 16:23:39 -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
effd317acd Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev 2017-07-27 17:46:15 -04:00
Yotam Mann
96719c8621 Clock forwards the caught error
makes the source of the crash easier to find
2017-06-28 15:22:26 -04:00
Yotam Mann
775042bbe7 removing "lookAhead" from Clock 2017-06-21 10:21:38 -04:00
Yotam Mann
69481fd05b removing comment
[skip ci]
2017-05-28 22:19:26 -04:00
Yotam Mann
e3715a634e removing unused tryCallback 2017-05-28 19:42:08 -04:00
Yotam Mann
652c5631cc clock using TickSignal 2017-05-28 19:39:18 -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
6597764434 don't update clock time, just tick time 2017-05-23 22:14:50 -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
edfa168713 moving to static type queries
i.e. this.isString -> Tone.isString
2017-04-26 00:24:19 -04:00
Yotam Mann
a3f54ce4cd new defaults api 2017-04-25 22:23:22 -04:00
Yotam Mann
58bdbbc82a invoke super constructor first
preparation for moving to es6 modules. also moving to slightly
simplified `default` method
2017-04-24 23:23:15 -04:00
Yotam Mann
9919667467 shouldn't zero out next tick time 2017-02-28 18:09:53 -05:00
Yotam Mann
a74e84fa26 moving Clock worker to Context
offline clocks can be more easily rendered by the offline context
2017-02-19 11:45:43 -05:00
Yotam Mann
68ac2bb0da latencyHint example
[skip ci]
2017-01-08 17:18:41 -05:00
Yotam Mann
27739ca795 changing name of private lookAhead member and adding 'lag' member
‘lag’ is the amount that the clock is falling behind the desired update
interval
2016-12-25 19:38:19 -05:00
Yotam Mann
f70825fa17 start no longer starts one lookAhead in the future
made testing more difficult and inconsistent with other behavior of Time
2016-12-20 22:49:20 -05:00
Yotam Mann
2c3fa527fd adding updateInterval
how often the web worker callback is invoked
2016-12-20 22:37:34 -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
23f220d62a updating jsdocs
[skip ci]
2016-12-18 20:26:44 -05:00
Yotam Mann
8911dce68a Clock.start with undefined arg is scheduled into the future
if there is no argument passed into the first argument of Clock.start /
Transport.start, the currentTime + Clock’s lookAhead time will be used
as the start time.
2016-12-05 20:59:39 -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
Yotam Mann
84c1affe83 Clock uses static lookahead
lookAhead is more conservatively computed and adjusts to the largest
value.
2016-11-21 00:05:19 -08:00
Yotam Mann
3d4bb4a9d1 removing rAF vestiges 2016-09-26 16:31:01 -04:00
Yotam Mann
792f85bebd clock is an event emitter 2016-09-24 11:26:57 -04:00
Yotam Mann
6f35e743a6 get the time before testing Timeline classes 2016-09-20 19:35:21 -04:00
Yotam Mann
6c8c75a2ec Clock ticks do not catch up when restarted after pause
fixes #145
2016-07-08 12:26:58 -04:00
Yotam Mann
cebeb3e577 clock goes to stop state immediately
no need to test if it’s started.
2016-04-18 01:12:35 -04:00
Yotam Mann
df30c40bd3 maximum diff between frames 2016-03-18 10:24:11 -04:00
Yotam Mann
5ddf71a3da removing millisecond conversion
accidentally still had that in there.
2016-03-17 18:00:42 -04:00
Yotam Mann
724ac4090c removing threshold value
making _worker static
2016-03-03 01:34:48 -05:00
Yotam Mann
bfbf567d98 Clocks uses Workers instead of requestAnimationFrame
Fixes #124
2016-02-27 17:14:39 -05:00
Yotam Mann
61fb1df660 adding strict mode 2015-10-21 12:11:19 -04:00
Yotam Mann
db904f0510 updating parameter order in docs 2015-10-09 11:01:03 -04:00
Yotam Mann
e5b0fb49d3 NewClock -> Clock 2015-08-18 18:14:26 -04:00
Yotam Mann
01060f13db removing old API test 2015-07-18 14:59:18 -04:00
Yotam Mann
4e9cb3ce1e doc'ing 2015-06-20 15:50:57 -04:00
Yotam Mann
80a28f8554 using noOp function for defaults 2015-06-14 01:54:36 -04:00
Yotam Mann
23cc2408b2 changing link tag 2015-06-13 21:54:20 -04:00
Yotam Mann
a81ba071f3 changing the styling of this in return statements 2015-06-13 20:54:29 -04:00