Yotam Mann
3e2de8f259
fixing spacing
...
typedoc wants one space before the "@"
2019-08-30 09:06:38 -07:00
Yotam Mann
7a5ca042d0
removing converting classes
2019-08-27 10:02:44 -07:00
Yotam Mann
b4c2153749
updating docs
2019-08-27 08:58:40 -07:00
Yotam Mann
949a123b47
can add a subsequence to a part
2019-08-14 12:03:32 -04:00
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
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