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
Yotam Mann
571183bf27
removing Tone.Type prefix in docs
2015-06-13 20:20:36 -04:00
Yotam Mann
1f69151c5f
renamed Tone.Frequency -> Tone.Type.Frequency
2015-05-23 19:07:28 -04:00
Yotam Mann
6ef3dd2f51
renamed Tone.Time -> Tone.Type.Time
2015-05-23 19:01:05 -04:00
Yotam Mann
f0bcd68812
renamed Tone.Signal.Units to Tone.Type
...
also renamed Tone.Source.State to Tone.State
2015-05-23 18:57:05 -04:00
Yotam Mann
2fdaa36d1f
Clock onended callback similar to Sources
...
Fixes #65
2015-05-05 15:36:06 -04:00
Yotam Mann
76973cda7d
changed internal tag to private tag
...
JSDoc stuff
2015-02-25 16:19:43 -05:00
Yotam Mann
51622a1272
renaming rate to frequency
2015-02-10 16:33:18 -05:00
Yotam Mann
2e15f03490
Revert Tone.Volume representation
2015-01-05 23:33:05 -05:00
Yotam Mann
693d96b1b7
Clock uses setTimeout to invoke onended
...
the native onended is too flakey. addresses #48
2015-01-04 22:19:33 -05:00
Yotam Mann
603bc03d62
deferring on clock tick
...
to not block the audio thread
2014-09-15 21:45:31 -04:00
Yotam Mann
f2ae3bd594
include an onend function for stop
2014-09-14 15:33:32 -04:00
Yotam Mann
d71f1cb5b7
jsdocs updates.
2014-09-05 11:32:35 -04:00
Yotam Mann
1cfa016026
fixes jsdoc error
2014-09-04 15:22:25 -04:00
Yotam Mann
af85ae7e19
Added "use strict" to all classes
...
Fixes #17
2014-09-04 00:41:40 -04:00
Yotam Mann
b2c85eaf44
signals inherit Signal.connect method
...
this is so that params and signals they connect to don’t need to be
manually zeroed out after connecting.
Fixed #11
2014-08-24 13:19:49 -04:00
Yotam Mann
cd4388fe89
refactored out clock from Transport
2014-07-30 13:54:55 -04:00