Commit graph

1098 commits

Author SHA1 Message Date
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
Yotam Mann
4b78dcbed1 buffer accepts AudioBuffer in the constructor 2015-08-16 22:22:07 -04:00
Yotam Mann
1bd7f72b04 SchedulableState extends Schedulable 2015-08-16 22:21:54 -04:00
Yotam Mann
57402b289c updated Schedulable API 2015-08-16 22:21:42 -04:00
Yotam Mann
4076c24b82 fixed midi to note conversion octave problem 2015-08-16 22:21:28 -04:00
Yotam Mann
c4757ee146 Merge pull request #86 from Tonejs/dev
Dev
2015-08-16 20:35:46 -04:00
Yotam Mann
4b1e5d263d clusters of Tone.Notes
WIP
2015-08-16 20:31:55 -04:00
Yotam Mann
a965429dc8 Atomic event
replaces old Tone.Note
2015-08-16 20:31:31 -04:00
Yotam Mann
6fb8995170 WIP schedule methods + PPQ 2015-08-16 20:31:11 -04:00
Yotam Mann
5d6a669bba EventEmitter class 2015-08-16 20:30:41 -04:00
Yotam Mann
102b93ccda starting new Clock not using ScriptProcessor 2015-08-16 20:30:26 -04:00
Yotam Mann
79e0383ad6 connectSeries -> chain 2015-08-16 15:18:48 -04:00
Yotam Mann
66a9991ede Envelope uses new SchedulableSignal 2015-08-16 15:17:35 -04:00
Yotam Mann
5c99025e25 release all the currently played notes
boolean to steal voices or not
2015-08-16 15:17:20 -04:00
Yotam Mann
21391f2a9d Source is schedulable state 2015-08-16 15:16:36 -04:00
Yotam Mann
50d34c0ade using Error instead of TypeError 2015-08-16 15:16:26 -04:00
Yotam Mann
b74b8a781d using minOutput throughout 2015-08-16 15:16:07 -04:00
Yotam Mann
d56f4c196e schedulable signal class
Allows state in the future to be queried
2015-08-16 15:15:54 -04:00
Yotam Mann
77973f64ab Schedulable state 2015-08-16 15:15:32 -04:00
Yotam Mann
47dd0e2f45 amplitude envelope uses new Gain 2015-08-16 15:15:10 -04:00
Yotam Mann
8047294b32 test if signal exists before checking instanceof 2015-08-16 14:23:30 -04:00
Yotam Mann
cb963405ed master gets dispose method 2015-08-16 14:23:14 -04:00
Yotam Mann
1decb210f3 Gain takes options object 2015-08-16 14:23:01 -04:00
Yotam Mann
bc44a2ff99 wrapping GainNode in Tone class 2015-08-15 19:30:43 -04:00
Yotam Mann
f2bae50952 wrapping DelayNode into Tone class 2015-08-15 19:30:33 -04:00
Yotam Mann
1953309e2f Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev 2015-08-15 18:49:16 -04:00
Yotam Mann
d36af98c46 filter rolloff goes up to -96 now
because why not? Also accepts a string as the type. fixes #84.
2015-08-12 13:13:04 -04:00
Yotam Mann
5773944f88 fft and waveform analyser 2015-08-10 14:40:20 -04:00
Yotam Mann
a5820e406e updated link 2015-08-10 14:40:03 -04:00
Yotam Mann
05ae3480b9 F had the wrong index 2015-08-07 13:25:52 -04:00
Matthew Hasbach
73528051ec Fix typo "Tranport" 2015-08-04 19:34:28 -04:00
Yotam Mann
f9dadbf320 Exposed concert pitch in frequency conversions
now accommodates global detune
2015-08-01 01:25:10 -04:00
Yotam Mann
b71e577d4a removing old note dependency 2015-08-01 00:59:30 -04:00
Yotam Mann
e1c8fdaec5 Double accidental support
Fixes #81
2015-08-01 00:58:49 -04:00
Yotam Mann
c3f41e8424 Handles negative octaves 2015-07-24 23:16:00 -04:00
Yotam Mann
025a009d5b convert a Time value to Notation 2015-07-21 13:30:20 -04:00
Yotam Mann
17f5e8bb8e delays are offset only 1 block now. 2015-07-21 11:22:36 -04:00
Yotam Mann
1d8726c614 Tone.PitchShift
real time pitch shifting using sawtooth waves connected to DelayNodes.
Addresses #56. Ask and you shall receive.
2015-07-21 11:21:48 -04:00
Yotam Mann
24f1ddf4b9 Offset 'now' one block (128 samples) when triggering attack/release
Fixes #79
2015-07-21 10:31:37 -04:00
Yotam Mann
7eead0913b ramp to a smaller value
addresses #79
2015-07-20 10:47:52 -04:00
Yotam Mann
01060f13db removing old API test 2015-07-18 14:59:18 -04:00
Yotam Mann
7608371843 exposing toTicks and ticksToSeconds 2015-07-13 21:58:20 -04:00
Yotam Mann
5629ecd360 starting r6-dev 2015-07-11 14:55:48 -04:00
Yotam Mann
1d16c25ad9 r5 2015-07-04 16:35:46 -04:00
Yotam Mann
3ccc0683bf changing doc links to markdown style 2015-07-04 15:25:37 -04:00
Yotam Mann
6757aef9e3 added Q value to phaser 2015-07-04 13:48:18 -04:00
Yotam Mann
00e0ba7273 read envelope value 2015-07-04 13:36:38 -04:00
Yotam Mann
928f2c3168 pass options object to Instrument base class 2015-07-04 13:36:22 -04:00
Yotam Mann
caddec650f doc'ing sources
mergine @polyrhythmatic changes
2015-07-04 12:43:21 -04:00
Yotam Mann
6e15da9223 doc'ing effects
mergine @polyrhythmatic changes
2015-07-04 12:40:33 -04:00
Yotam Mann
64212d90f3 doc'ing components
merging seth's doc changes
2015-07-04 12:32:18 -04:00
Seth Kranzler
d599761f2e more doc'ing 2015-07-02 15:45:40 -04:00