Commit graph

36 commits

Author SHA1 Message Date
Yotam Mann
c3c5364397 remove unreachable code 2017-07-06 10:32:31 -04:00
Yotam Mann
2f65397000 don't convert to ticks twice 2017-06-29 12:33:16 -04:00
Yotam Mann
49b54f3c4c removing unused conditional
`options.events` will always be defined because of `Tone.defaults`
2017-06-29 11:02:15 -04:00
Yotam Mann
da60cbdfea Merge pull request #242 from christopheralcock/patch-1
tiny typo
2017-06-23 15:44:27 -05:00
Christopher Alcock
55f489c73b tiny typo
sorry for pedantry
2017-06-23 16:33:54 +01:00
Yotam Mann
b927395825 making defaultArg static 2017-04-30 15:03:49 -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
c9d41345b7 bass constructor invoked without options 2017-04-25 23:08:57 -04:00
Yotam Mann
b3dd6513b9 using new defaults API 2017-04-25 22:31:06 -04: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
f685bcd5ae deferred animation callback
This is useful for synchronizing animations with scheduled audio
events.
2016-12-03 12:15:37 -05:00
Yotam Mann
3f7c903302 sets event start/stop correctly when the loopEnd is changed to smaller than the initial value 2016-10-20 11:44:11 -04:00
Yotam Mann
b5ff5d365a Part accepts a objects that are not object literals in add/remove
it just needs to have a time property
2016-10-03 23:47:01 -04:00
Yotam Mann
3c5d328b97 should have been using Tone.Transport.ticks instead of now 2016-09-20 18:56:40 -04:00
Yotam Mann
1ba3733439 interval is exclusive of end point
specifically the repeat time is: [start, start + duration).

so Transport.scheduleRepeat(fn, 1, 0, 2) will repeat twice, not three
times (since it’s exclusive of the end time).
2016-06-22 16:39:48 -04:00
Yotam Mann
1e7773ae6a using new Timing primitives 2016-04-18 02:05:04 -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
07f8f227cf .events -> .values 2016-03-04 15:35:10 -05:00
Hidde de Jong
75628b53e8 fixed start offset in Tone.Part, now behaves like Tone.Player 2016-01-31 14:45:34 +01:00
Yotam Mann
68daf2aab9 fixing docs 2016-01-03 12:36:49 -05:00
Yotam Mann
cfc33cf39c doc'ing 2015-12-08 00:07:16 -05:00
Yotam Mann
972e7f1d00 set the state to "stopped" after a number of loops. 2015-12-06 17:23:30 -05:00
Yotam Mann
f0857f2e08 canceling next events on stop 2015-12-06 13:14:36 -05:00
Yotam Mann
8231fc5cf3 fixing and testing start offset for non-looping parts 2015-11-26 08:42:33 -08:00
Yotam Mann
97e8169c85 acts on the component Tone.Events and not on sub-Parts 2015-11-26 08:27:29 -08:00
Yotam Mann
21b8c074e4 changing the humanize amount to 0.02s 2015-11-25 21:46:33 -05:00
Yotam Mann
c8cfe33864 doc'ing 2015-11-17 22:52:22 -05:00
Yotam Mann
f893e2378b schedule rests with null 2015-11-10 23:01:14 -05:00
Yotam Mann
d6d9c397de Tone.Pattern iterates through an array of events in a number of patterns 2015-11-03 19:15:40 -05:00
Yotam Mann
a51ed921bf Tone.Loop provides a simple, schedulable looped callback. 2015-11-03 18:37:40 -05:00
Yotam Mann
03c580db3e sequence simplifies describing event order 2015-11-03 18:36:51 -05:00
Yotam Mann
fe57fa28f0 Part combines multiple Events or Parts 2015-11-03 18:36:36 -05:00
Yotam Mann
bcf49d2400 uses a private startOffset to keep track of nested Events 2015-11-03 18:34:47 -05:00
Yotam Mann
2e3e534e1e Note->Event 2015-11-02 21:53:39 -05:00