Commit graph

72 commits

Author SHA1 Message Date
Yotam Mann
d4d7c8a78b testing 'stop' method
plays the correct number of iterations
2019-08-14 12:03:21 -04:00
Yotam Mann
0f45fc9efd removing unused import 2019-08-12 00:20:16 -04:00
Yotam Mann
4ed750bc1f using Reflect instead of 'hasOwnProperty'
takes care of situation where time has a 'getter'
2019-08-04 13:44:37 -04:00
Yotam Mann
63a0b4e207 Part can accept any object-like thing with a 'time' property 2019-08-04 13:35:48 -04:00
Yotam Mann
6e5e8b3399 using specific types
importing them so there are not multiple import type errors
2019-07-30 15:35:27 -04:00
Yotam Mann
84a8fb0255 updating docs 2019-07-26 11:56:33 -04:00
Yotam Mann
4a266742af making Event and Part values generic
gives better typing in the callback function
2019-07-26 11:50:29 -04:00
Yotam Mann
e3f5940afd only relative imports 2019-07-25 13:32:34 -04:00
Yotam Mann
10cd309a12 exporting events 2019-07-24 21:54:26 -04:00
Yotam Mann
14cd707855 can use an object as a value
no longer gets copied over
2019-07-24 21:53:56 -04:00
Yotam Mann
7c4196a589 converting Sequence to ts 2019-07-24 21:53:35 -04:00
Yotam Mann
ba77fa509e changing removeAll -> clear 2019-07-24 20:02:56 -04:00
Yotam Mann
e9f68103de need to fix this, skipping test for now
the issue is that merge creates a new object
2019-07-23 15:18:23 -04:00
Yotam Mann
659e5e62ea converting Part to ts 2019-07-23 15:17:45 -04:00
Yotam Mann
9306e5188c adding additional option to StateTimeline.add
enables more strict typing of returned object
2019-07-23 13:43:11 -04:00
Yotam Mann
f6f2e78574 convert Event to typescript 2019-07-23 13:15:04 -04:00
Yotam Mann
ada1423bd4 Merge branch 'dev' into typescript 2019-07-15 09:46:22 -04:00
Jared Ellison
6eaa8328cb Update JSDoc for loop property of Tone.Part and Tone.Event 2019-07-08 13:43:04 -04:00
Jared Ellison
a3d4cd2007 Refactor _rescheduleEvents to prevent repeating events when loop = 1 2019-07-05 10:57:39 -04:00
tambien
730a818bcb organizing into sub folders 2019-05-23 14:00:49 -04:00
tboie
bcd22b0463 #473 (#478)
Fixes Part loop toggle
2019-04-12 10:44:24 -04:00
tambien
610b847f4d fixing docs 2019-01-27 17:14:04 -05:00
tambien
ed71d8141b amd to es6 import/export
no longer using AMD (require.js) style imports, and beginning to move to es6 "import/export" statements everywhere.
2019-01-27 13:05:20 -05:00
tambien
b971ef94da changing part removing behavior
if a part is at the given time, it will remove the entire part instead of recursively checking and removing an event from the subpart.

fixes #269
2019-01-09 18:30:42 -05:00
tambien
3d1202043a all modules are relative paths
simplifies deep references to individual files
2018-08-26 22:29:17 -04:00
tambien
cbb5c78823 using super method 2018-05-25 18:25:08 -04:00
Matan Gover
147341688c Fix typo in documentation. (#327) 2018-04-09 12:09:46 -07:00
Yotam Mann
a5503e02d2 linting 2018-03-05 12:25:33 -05:00
Yotam Mann
a80ae0656b Tone.isDefined replaces !Tone.isUndef 2018-03-05 11:32:08 -05:00
Yotam Mann
36beb6c5f8 events use Transport.getTicksAtTime for greater accuracy 2018-02-27 17:04:30 -05:00
Yotam Mann
dded291a25 linting 2018-01-02 10:37:27 -05:00
Yotam Mann
38d493fc68 using Tone.Ticks to represent times 2017-12-17 13:26:04 -05:00
Yotam Mann
933fa95b45 define loopStart/End, subdivision and interval in terms of seconds 2017-12-16 14:23:08 -05:00
Yotam Mann
4316530b16 linting 2017-10-26 16:03:00 -04:00
Yotam Mann
c58fad41f0 linting 2017-10-26 15:26:04 -04:00
Yotam Mann
a82ab45132 linting 2017-10-25 17:57:52 -04:00
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