Commit graph

1149 commits

Author SHA1 Message Date
Yotam Mann
0c3cd6a305 Set a ramp point before the release curve 2015-11-11 23:41:17 -05:00
Yotam Mann
42dadb6d2d using Emitter style for load/progress/error
The new syntax is `Tone.Buffer.on(“load”, callback);`
2015-11-11 12:33:02 -05:00
Yotam Mann
4f9871cd30 fixing 'off' case where Emitter is mixed into the class 2015-11-11 12:13:36 -05:00
Yotam Mann
22ab61fb09 noise has playbackRate which adjusts the "frequency" 2015-11-10 23:47:10 -05:00
Yotam Mann
f889a77f0f playbackRate is now a signal 2015-11-10 23:46:47 -05:00
Yotam Mann
3e14c63313 updated docs 2015-11-10 23:02:01 -05:00
Yotam Mann
f893e2378b schedule rests with null 2015-11-10 23:01:14 -05:00
Yotam Mann
6795161220 using random index in randomOnce
fixes scenario where the values change or the array changes sizes.
2015-11-03 19:40:45 -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
2197942af4 control-rate generators that only produce values when invoked 2015-11-03 19:14:01 -05:00
Yotam Mann
e184800225 moved Sequence to event folder 2015-11-03 18:38:44 -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
8e5dd56906 removing unused dependencies 2015-11-03 18:33:52 -05:00
Yotam Mann
2e3e534e1e Note->Event 2015-11-02 21:53:39 -05:00
Yotam Mann
1dd36570d3 doc'ing 2015-11-02 20:10:36 -05:00
Yotam Mann
858c815640 docing 2015-11-02 20:09:19 -05:00
Yotam Mann
f1be71c0c2 updating to new Volume API 2015-11-02 20:08:53 -05:00
Yotam Mann
afba7d77d2 toRemove array
This fixes issues where an event is removed mid loop.
2015-11-02 20:08:20 -05:00
Yotam Mann
825e3cd757 updating to new Delay API 2015-11-02 09:39:31 -05:00
Yotam Mann
67221f8f39 Delay no longer extends Tone.Param 2015-11-02 09:31:12 -05:00
Yotam Mann
31a9f8b426 Tremolo is now a StereoEffect 2015-11-01 17:52:02 -05:00
Yotam Mann
93993846ee updating to new Gain / Volume API 2015-11-01 17:49:53 -05:00
Yotam Mann
99769ca927 volume doens't extend Gain 2015-11-01 17:49:33 -05:00
Yotam Mann
2d6d733008 signal uses regular gain node 2015-11-01 17:49:14 -05:00
Yotam Mann
8c1bf599d0 reverting : gain no longer extends Tone.Param 2015-11-01 17:48:52 -05:00
Yotam Mann
b90db92749 parses quantized values with toSeconds 2015-10-27 21:08:02 -04:00
Yotam Mann
026501144d better accuracy by using the clock's next tick time. 2015-10-27 20:58:06 -04:00
Yotam Mann
681c38182d can quantize to a subdivision 2015-10-27 17:46:34 -04:00
Yotam Mann
bfa4f1ada2 renaming EventEmitter to just Emitter 2015-10-27 17:40:52 -04:00
Yotam Mann
1a8ccff5a0 removing shallowCopy from optionsObject
addresses #99
2015-10-21 15:27:52 -04:00
Yotam Mann
9cbcd5b94e handles case where first argument is a Tone.Buffer
addresses #99
2015-10-21 13:51:53 -04:00
Yotam Mann
61fc3b298d isObject checks only for Object literals 2015-10-21 13:51:23 -04:00
Yotam Mann
4a2bd215e7 using new type checking methods 2015-10-21 13:13:15 -04:00
Yotam Mann
0ba977456d removing shallowCopy
adding more type check methods
2015-10-21 13:12:51 -04:00
Yotam Mann
92a418af1e converts to destination units when connected 2015-10-21 12:12:35 -04:00
Yotam Mann
4bb7f2928a inherit connect SignalBase 2015-10-21 12:12:17 -04:00
Yotam Mann
7fc477b746 removing circular dependency 2015-10-21 12:11:41 -04:00
Yotam Mann
61fb1df660 adding strict mode 2015-10-21 12:11:19 -04:00
Yotam Mann
2b670482c6 added feedback delay 2015-10-21 10:55:31 -04:00
Yotam Mann
666d2f230a EQ3 using new Gain 2015-10-21 10:54:33 -04:00
Yotam Mann
cd3ae4f860 Timeline signal using new Tone.Param 2015-10-21 10:53:43 -04:00
Yotam Mann
b73a8cb71f updating to new Param class 2015-10-21 10:34:37 -04:00
Yotam Mann
1c00c650db updating to new Volume API 2015-10-21 10:33:13 -04:00
Yotam Mann
257b480535 Volume extends Gain 2015-10-21 10:30:21 -04:00
Yotam Mann
dd3667a234 no need for getType 2015-10-21 10:29:47 -04:00
Yotam Mann
1c7e9483e9 updating syncing for Params 2015-10-21 10:29:29 -04:00
Yotam Mann
796da24d9e connect method accommodates Tone.Param
also better way of testing for object literals instead of `typeof` in
`optionsObject`
2015-10-21 10:29:04 -04:00
Yotam Mann
11b4995b25 moving overridden flag to Param 2015-10-21 10:27:44 -04:00
Yotam Mann
0f841ff709 Signal extends Param and uses new Gain node 2015-10-21 10:11:34 -04:00
Yotam Mann
c2311b0794 Delay extends Param 2015-10-21 10:04:55 -04:00
Yotam Mann
532a8e6745 Gain class wraps native GainNode 2015-10-21 10:02:23 -04:00
Yotam Mann
386acdbb03 Param base class wraps native AudioParam 2015-10-21 10:01:40 -04:00
Yotam Mann
a3a7175f41 pass Frequency to AutoFilter's min/max 2015-10-20 17:31:10 -04:00
Yotam Mann
b061b81983 can get state of LFO 2015-10-20 17:30:20 -04:00
Yotam Mann
c98303331f clarifying Monophonic comment
Addresses #98
2015-10-13 10:37:21 -04:00
Yotam Mann
36d09dacc7 additional type-checking helpers 2015-10-11 16:04:14 -04:00
Yotam Mann
3fe5ef2b6c after-inclusive search 2015-10-11 16:03:20 -04:00
Yotam Mann
f844b6b021 updating docs 2015-10-11 16:02:10 -04:00
Yotam Mann
bd7168825e normalized loop progress
Fixes #75
2015-10-09 19:09:02 -04:00
Yotam Mann
db904f0510 updating parameter order in docs 2015-10-09 11:01:03 -04:00
Yotam Mann
8efd9b9c64 allowing for shallow copies with defaults 2015-10-08 11:36:15 -04:00
Yotam Mann
8a7195e962 canGetUserMedia -> supported
also handling MediaStream.stop deprecation
2015-09-30 13:47:42 -04:00
Yotam Mann
971c6ddfe1 updated mic docs 2015-09-18 17:19:09 -07:00
Yotam Mann
14a780c1ca bug fixes and compatibility tests 2015-09-18 17:18:44 -07:00
Yotam Mann
2d5d4d1dfe Merge pull request #89 from polyrhythmatic/externalinput
updated Microphone, added ExternalInput
2015-09-18 15:43:11 -07:00
Yotam Mann
813a665ac8 looped player passes no duration to start method 2015-09-11 17:06:57 -04:00
Yotam Mann
2f27321dda fixing doc description of analyser 2015-09-11 17:05:27 -04:00
Yotam Mann
ea1162da97 Tone.Part is now schedulable in the future. 2015-09-05 19:22:04 -04:00
Yotam Mann
4bf051afc8 Tone.Note with the new Transport API 2015-09-05 19:17:45 -04:00
Yotam Mann
4b29736ba2 don't do recurse defaultArg if it's an array 2015-09-05 19:17:00 -04:00
Yotam Mann
7c0318cbdf getNextEvent->getEventAfter 2015-09-05 16:27:42 -04:00
Yotam Mann
615c120688 getNextEvent -> getEventAfter and getEventBefore method
also fixed bug in forEachAfter method
2015-09-05 16:27:19 -04:00
Yotam Mann
95f1f15a12 giving example of repeated start and stop methods 2015-09-05 15:15:47 -04:00
Yotam Mann
42134d7ac3 scheduleRepeat implemented with IntervalTimeline 2015-09-05 15:15:04 -04:00
Yotam Mann
c66557a2cb Removes all events when no callback with off` 2015-09-05 15:06:58 -04:00
Yotam Mann
6a21b231ff the BSD now balances itself. 2015-09-05 14:26:19 -04:00
Yotam Mann
eccdb659c2 renamed Tone/core/Types -> Tone/core/Type 2015-09-04 16:48:21 -04:00
Yotam Mann
3e2ebfcc05 IntervalTimeline which implements an interval tree
used to keep track of events with a time and duration
2015-09-04 16:17:56 -04:00
Yotam Mann
7393a59410 cancel <-> clear
clear removes an ID and cancel cancels events after the given time. API
is now more consistent with the Web Audio’s cancelScheduledValues
2015-09-03 16:56:05 -04:00
Yotam Mann
24e9408b6e using Tone.Volume in instrument 2015-09-03 11:05:05 -04:00
Yotam Mann
09a151ea2b light styling. 2015-09-03 10:32:00 -04:00
Yotam Mann
a68b1aecd6 cleaning up syncing. 2015-09-03 10:24:20 -04:00
Yotam Mann
7ff330cb96 schedules a stopped state if the source is not looped 2015-09-03 10:24:10 -04:00
Seth Kranzler
1f667411fe removes double checking, changes sourceList to sources 2015-09-02 11:11:42 -04:00
Yotam Mann
9987af7a1d volume uses Tone.Gain 2015-08-31 16:59:36 -04:00
Yotam Mann
5e8c2c3777 source uses Tone.Volume as the output. 2015-08-31 16:55:47 -04:00
Yotam Mann
c222d7752d clean up events array. 2015-08-31 16:42:54 -04:00
Yotam Mann
45b6988090 set custom partials array for Oscillator 2015-08-31 16:42:27 -04:00
Yotam Mann
94e4c882fd Milliseconds type 2015-08-31 15:47:25 -04:00
Yotam Mann
56eca9b690 "loop" event when the transport loops 2015-08-31 15:19:03 -04:00
Yotam Mann
ec5504c8c3 off can take multiple event names. 2015-08-31 15:16:05 -04:00
Yotam Mann
80b938a4d1 removed old comment 2015-08-31 15:15:53 -04:00
Yotam Mann
3a6bc7adbd Source Syncing using events.
Signal syncing refactored.
2015-08-31 15:15:44 -04:00
Yotam Mann
66d8566c9e correctly converts from units
I was converting the values twice.
2015-08-31 15:14:34 -04:00
Yotam Mann
881b1779b0 fixed reference to old file names. 2015-08-31 15:13:58 -04:00
Yotam Mann
b2283d640f syncing to the Transport through events 2015-08-31 15:13:43 -04:00
Yotam Mann
4e18bb744d fixing typo 2015-08-31 11:37:19 -04:00
Yotam Mann
155f83d948 making bpm readOnly
keeps people from overwriting it.
2015-08-28 18:42:08 -04:00
Yotam Mann
a42b8e74ee making the signal explicitly 1 channel 2015-08-28 18:33:31 -04:00
Yotam Mann
ba87494ee7 bpm is a readOnly attribute 2015-08-28 18:33:20 -04:00
Yotam Mann
117337e5e1 make sure signal is defined before checking instanceof 2015-08-28 18:33:02 -04:00
Yotam Mann
a2611941ea accepts options object 2015-08-28 18:32:32 -04:00
Yotam Mann
54c14e1f96 default values and per channel clipping indication 2015-08-28 18:32:20 -04:00
Yotam Mann
48b38d0de9 can be constructed through an options object 2015-08-27 23:08:58 -04:00
Yotam Mann
61d0e1bbda lfo outputs signal while stopped 2015-08-27 23:03:42 -04:00
Yotam Mann
c72bcb250a auto panner starts at the middle of the cycle 2015-08-27 22:56:35 -04:00
Yotam Mann
9f0935967b can compute the first value of the oscillator 2015-08-27 21:32:09 -04:00
Seth Kranzler
68a0dcf943 adds open/close methods with callback, removes onLoad 2015-08-26 15:40:14 -04:00
Yotam Mann
908ee2606f Vibrato Effect
LFO attached to a Delay
2015-08-26 10:28:53 -04:00
Yotam Mann
5b4f93db48 updating docs 2015-08-26 10:00:32 -04:00
Yotam Mann
9438b84f34 pass arguments to the base class 2015-08-26 10:00:24 -04:00
Yotam Mann
302c40c30d corrected pass through.
LFO refactor
2015-08-26 10:00:15 -04:00
Yotam Mann
cd8712c65f passes arguments to base class 2015-08-26 09:59:37 -04:00
Yotam Mann
29d3a1166a uses defaults 2015-08-26 09:59:11 -04:00
Yotam Mann
9659689fd8 constant signal generator is now AudioBufferSource 2015-08-24 17:30:49 -04:00
Yotam Mann
102262cea9 removing unnecessary safari inconsistency bug 2015-08-24 17:30:11 -04:00
Yotam Mann
499bb57ac6 updating doc 2015-08-24 17:29:52 -04:00
Yotam Mann
4712580937 handles case where there is no Transport loaded 2015-08-24 17:29:35 -04:00
Yotam Mann
c8cb6c5256 buffer accepts Buffer in constructor 2015-08-24 11:18:01 -04:00
Yotam Mann
180c7fc943 Better docs for some math functions 2015-08-21 17:05:09 -04:00
Yotam Mann
c0bf3556dc added AudioToGain method 2015-08-21 17:04:44 -04:00
Yotam Mann
054662e033 accept phase in constructor 2015-08-21 17:04:29 -04:00
Yotam Mann
0eeaa402de player accepts a Tone.Buffer in the constructor 2015-08-21 17:04:15 -04:00
Yotam Mann
7cb373635d renamed Signal methods
setCurrentValueNow -> setRampPoint, linearRampToValueNow ->
linearRampToValue
2015-08-21 15:02:33 -04:00
Yotam Mann
ec400401c7 Sources don't extend TimelineState 2015-08-21 15:01:22 -04:00
Yotam Mann
af5609ce2e Player takes AudioBuffer in constructor 2015-08-21 15:01:09 -04:00
Yotam Mann
d714e05bb3 more precise regexp 2015-08-21 15:00:52 -04:00
Yotam Mann
80c416e398 throws error with invalid noise type 2015-08-21 15:00:40 -04:00
Seth Kranzler
c7b04bae47 remove unused callback, name change, remove error 2015-08-20 15:04:48 -04:00
Seth Kranzler
8fc5de8677 updated Microphone, added ExternalInput 2015-08-19 21:28:47 -04:00
Yotam Mann
74a63110da NewClock -> Clock 2015-08-18 18:15:19 -04:00
Yotam Mann
e5b0fb49d3 NewClock -> Clock 2015-08-18 18:14:26 -04:00
Yotam Mann
d64fe31df7 doc'ing the clock 2015-08-18 18:13:30 -04:00
Yotam Mann
dff1e43239 fixes bug when clear time was before any events 2015-08-18 18:07:35 -04:00
Yotam Mann
ad57ad2bcb fixing tick offset on start method 2015-08-18 18:06:45 -04:00
Yotam Mann
36e8002e85 fixed clearBefore to do what it says 2015-08-18 17:33:39 -04:00
Yotam Mann
d85c973a83 added index to iterator.
removeEvent uses iterator
2015-08-18 17:08:14 -04:00
Yotam Mann
ac2d078afd using clock's ticks 2015-08-18 16:30:50 -04:00
Yotam Mann
673abf3649 clock counts its own ticks 2015-08-18 16:30:33 -04:00
Yotam Mann
80abf87292 reflecting rename 2015-08-18 16:29:39 -04:00
Yotam Mann
b5c94bbfee clarifying _toUnits and _fromUnits 2015-08-18 16:29:15 -04:00
Yotam Mann
72ee2dcc37 renamed Schedulable to Timeline 2015-08-18 16:28:55 -04:00
Yotam Mann
5fd98c2064 doc'ing the EventEmitter 2015-08-17 14:57:54 -04:00
Yotam Mann
f380627628 updating to new Schedulable API 2015-08-17 01:02:06 -04:00
Yotam Mann
257c313f58 events are no longer private
added getNextEvent
2015-08-17 01:01:38 -04:00
Yotam Mann
8ed60da67a updated to new Schedulable API 2015-08-17 01:01:04 -04:00
Yotam Mann
2fcb93f3ce don't cancel scheduled values when setting a value 2015-08-17 01:00:02 -04:00