Yotam Mann
17510c8f9c
latency hint should be "interactive" when set to fastest lookAhead
2017-05-01 13:55:21 -04:00
Yotam Mann
0bd8fbb717
merging dev commits
2017-05-01 11:11:11 -04:00
Yotam Mann
b927395825
making defaultArg static
2017-04-30 15:03:49 -04:00
Yotam Mann
8cd381c2ca
mirroring the way that Master is stored on the context
2017-04-30 14:48:57 -04:00
Yotam Mann
15c238a31e
don't create unnecessary output
2017-04-30 14:48:39 -04:00
Yotam Mann
867798e55d
properly disconnecting constant signals
2017-04-30 14:48:25 -04:00
Yotam Mann
0354a87dab
hasStereoPanner is now static
2017-04-30 14:11:44 -04:00
Yotam Mann
3a0a55be7b
Solo makes it easier to solo one of many sources
...
will mute all other instances of Tone.Solo when an instance.solo=true
2017-04-30 12:39:09 -04:00
Yotam Mann
f7b7600ac9
fixing jsdoc errors
...
[skip ci]
2017-04-30 11:16:35 -04:00
Yotam Mann
4bda177b83
gainToDb, dbToGain, intervalToFrequencyRatio now static functions
2017-04-26 23:21:26 -04:00
Yotam Mann
4bd1044cb4
using only static type queries
2017-04-26 00:27:28 -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
2e807dde30
light styling
2017-04-26 00:08:41 -04:00
Yotam Mann
c544255953
using defaults
in last remaining classes
2017-04-26 00:07:10 -04:00
Yotam Mann
2030034494
sources to new defaults
api
...
and es6 classes prep
2017-04-26 00:00:01 -04:00
Yotam Mann
a48a980861
moving signals to static defaults
...
invoking super constructor in prep for es6 classes
2017-04-25 23:45:37 -04:00
Yotam Mann
aa54db39fe
using static defaultArg/defaults methods
2017-04-25 23:22:34 -04:00
Yotam Mann
4019b49c12
effects moved to new defaults API
2017-04-25 23:18:08 -04:00
Yotam Mann
c9d41345b7
bass constructor invoked without options
2017-04-25 23:08:57 -04:00
Yotam Mann
6e585e8f82
components using new defaults api
...
also invoking super constructor first in preparation for es6 migration
2017-04-25 23:08:23 -04:00
Yotam Mann
4057252566
applying defaults API to control classes
2017-04-25 22:37:01 -04:00
Yotam Mann
b3dd6513b9
using new defaults
API
2017-04-25 22:31:06 -04:00
Yotam Mann
a3f54ce4cd
new defaults
api
2017-04-25 22:23:22 -04:00
Yotam Mann
4d08462067
type checkers and defaults
methods are static
2017-04-25 22:22:29 -04:00
Yotam Mann
58bdbbc82a
invoke super constructor first
...
preparation for moving to es6 modules. also moving to slightly
simplified `default` method
2017-04-24 23:23:15 -04:00
Yotam Mann
4bf55605c8
removing circular dependency
2017-04-24 23:18:53 -04:00
Yotam Mann
e66c515762
setTimeout method which is guaranteed by the clock source
...
also includes clearTimeout. API is similar to window.setTimeout, but
time is in seconds instead of milliseconds
2017-04-24 23:13:29 -04:00
Yotam Mann
a4a94b63ea
callback is invoked with the timeline as the context
2017-04-24 22:59:21 -04:00
Yotam Mann
aea6c80f09
trying out new defaults
API
2017-04-24 22:10:13 -04:00
Yotam Mann
741073c17b
transitioning defaults->optionsObject
...
slightly different API. defaults includes the default constructor API
without it needing to be passed in.
2017-04-24 22:08:59 -04:00
Yotam Mann
0befd293c9
Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev
2017-04-20 15:14:44 -04:00
Yotam Mann
b82f2bd6d7
surfaced returnType in docs
...
[skip ci]
2017-04-20 15:13:30 -04:00
Yotam Mann
88c0ea4fb6
fixed example to new UserMedia API
...
[skip ci]
2017-04-20 15:12:16 -04:00
Yotam Mann
2073ccdf8c
fixing panning in example
...
[skip ci]
2017-03-28 21:14:48 -04:00
Yotam Mann
12e1fcc272
increment version
...
[skip ci]
2017-03-28 20:57:04 -04:00
Yotam Mann
5569f7b26f
latencyHint has moved to Tone.Context
2017-03-27 11:34:47 -04:00
Yotam Mann
38cc955b66
updating version
2017-03-26 19:26:00 -04:00
Yotam Mann
4499e80b2e
uses passed in volume for _unmutedVolume
2017-03-26 16:40:00 -04:00
Yotam Mann
0df359a92f
fixed formatting issue in docs
...
[skip ci]
2017-03-26 12:32:41 -04:00
Yotam Mann
4cec0fb7a3
mute
is true when volume === -Infinity and false otherwise
...
fixes #221
2017-03-24 17:27:40 -04:00
Yotam Mann
bef5457c01
using Math.SQRT1_2
...
I didn’t know this existed
2017-03-22 15:21:21 -04:00
Yotam Mann
af58fd34de
updating to new getConstant API
2017-03-22 11:43:36 -04:00
Yotam Mann
f3cb7e577c
only creating constant sources when required
...
optimization
2017-03-22 11:43:35 -04:00
Yotam Mann
97c152d989
documenting Offline
...
[skip ci]
2017-03-22 11:15:50 -04:00
Yotam Mann
b5d6647c12
optimizing noise array creation
...
only created on initialization
addresses #216
2017-03-18 14:03:04 -04:00
Yotam Mann
971cfc1b93
variable name change
2017-03-18 14:01:23 -04:00
Yotam Mann
f859074254
catch block removes event listeners and throws error
2017-03-14 16:49:04 -04:00
Yotam Mann
1a1cb621e8
wrapping native getChannelData
2017-03-13 22:08:59 -04:00
Yotam Mann
10431589d2
moving shims to their respective files
...
hopefully simplifies maintenance
2017-03-13 01:12:20 -04:00
Yotam Mann
d81ad3e8c7
polyfilling getFloatTimeDomainData
2017-03-13 00:56:04 -04:00
Yotam Mann
3089f09083
also polyfilling copyFromChannel
2017-03-13 00:50:00 -04:00
Yotam Mann
5ab8f82d3e
copyToChannel polyfill
2017-03-13 00:40:30 -04:00
Yotam Mann
84bbdb5c04
optimizing slice call
...
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functi
ons/arguments
2017-03-13 00:38:40 -04:00
Yotam Mann
d037c28d6f
eval -> valueOf
...
thanks for the suggestion @JackCA
fixes #205
2017-03-12 21:31:23 -04:00
Yotam Mann
ea1b92e75a
only set the clock ticks when the value has changed
...
optimization
2017-03-12 21:09:57 -04:00
Yotam Mann
a48b58eb95
removing old initAudioContext
...
replaced by Context.on(‘init’)
2017-03-12 21:03:17 -04:00
Yotam Mann
752a0a6bc4
Duration argument must be greater than 0
...
fixes #203
[skip ci]
2017-03-05 13:19:55 -05:00
Yotam Mann
dba464fcca
safety checks for drift
...
fixes #199
2017-03-05 12:39:43 -05:00
Yotam Mann
39e923480f
decibels also ramps exponentially
2017-03-01 15:46:21 -05:00
Yotam Mann
83a019c987
moving context dependency from Transport to Type
2017-02-28 19:01:09 -05:00
Yotam Mann
9919667467
shouldn't zero out next tick time
2017-02-28 18:09:53 -05:00
Yotam Mann
8e5d5e9872
fixing typo in comments
...
[skip ci]
2017-02-28 17:43:04 -05:00
Yotam Mann
9858dbe563
start method takes an optional duration
...
also includes start method docs
fixes #195
2017-02-20 14:03:36 -05:00
Yotam Mann
662951cff9
uses constant from context
2017-02-19 23:56:04 -05:00
Yotam Mann
4652203066
stopDownloads -> cancelDownloads
2017-02-19 12:01:15 -05:00
Yotam Mann
d82918a6ce
referring to listener on the Context
...
instead of creating a local copy which can become out of sync with the
current AudioContext
2017-02-19 11:55:08 -05:00
Yotam Mann
b32f2606e7
convert the buffer to mono
...
replaces the existing buffer
2017-02-19 11:52:04 -05:00
Yotam Mann
4e5ff9d41d
_initAudioContext -> "init"
2017-02-19 11:50:53 -05:00
Yotam Mann
91bdd210cd
render offline audio
2017-02-19 11:50:34 -05:00
Yotam Mann
7549bdaa1a
renaming _initAudioContext() -> on("init")
2017-02-19 11:50:15 -05:00
Yotam Mann
19a41080ba
moving constants to Context
2017-02-19 11:48:23 -05:00
Yotam Mann
a74e84fa26
moving Clock worker to Context
...
offline clocks can be more easily rendered by the offline context
2017-02-19 11:45:43 -05:00
Yotam Mann
7aa336bee5
moving context creation to Tone.Context
2017-02-18 19:49:06 -05:00
Yotam Mann
5ceef2a227
OfflineContext extends Context
2017-02-18 19:48:15 -05:00
Yotam Mann
e08b7bc8fc
AudioContext wrapping class
2017-02-18 19:47:28 -05:00
Yotam Mann
c3158bbcf7
fixing docs
...
fixes #202
[skip ci]
2017-02-16 12:04:12 -05:00
Yotam Mann
05765aae66
only create audio context when web audio is supported
...
otherwise logs a warning
2017-02-11 13:56:51 -05:00
Yotam Mann
29d6fdd3b3
only schedule animation frame when something is scheduled
...
fixes #194
2017-02-07 22:26:08 -05:00
Yotam Mann
7f06666729
only add a stop event if it's not synced to the Transport
...
fixes #192
2017-01-30 23:17:14 -05:00
Yotam Mann
998444c528
removing silent node connection
...
seems like gain of 0 is optimized out in most cases anyways
2017-01-30 22:35:27 -05:00
Yotam Mann
0818f4f133
incrementing version
2017-01-30 22:12:53 -05:00
Yotam Mann
5d7c95b806
removing deprecated SimpleSynth
...
[skip ci]
2017-01-08 18:35:04 -05:00
Yotam Mann
3203b45d81
updating copyright year
2017-01-08 17:53:23 -05:00
Yotam Mann
9669e70d4f
using a local instance instead of the class in example
...
[skip ci]
2017-01-08 17:20:55 -05:00
Yotam Mann
7f2608ab06
updated example to Promise api
...
[skip ci]
2017-01-08 17:20:07 -05:00
Yotam Mann
4f292a4897
updating version
...
[skip ci]
2017-01-08 17:19:03 -05:00
Yotam Mann
68ac2bb0da
latencyHint example
...
[skip ci]
2017-01-08 17:18:41 -05:00
Yotam Mann
3c8d77d02b
Merge branch 'master' into dev
2017-01-08 17:08:24 -05:00
Yotam Mann
11d6da77cc
updating docs to UserMedia instead of Microphone
...
[skip ci]
2017-01-08 15:58:58 -05:00
Bobby Brennan
47d5299e9e
Update FMSynth.js
2016-12-31 20:36:24 -05:00
Bobby Brennan
1b9d82b189
Update AMSynth.js
2016-12-31 20:35:57 -05:00
Yotam Mann
a416eafc97
documenting expiration and anticipation more clearly
...
[skip ci]
2016-12-28 15:39:24 -08:00
Yotam Mann
27739ca795
changing name of private lookAhead member and adding 'lag' member
...
‘lag’ is the amount that the clock is falling behind the desired update
interval
2016-12-25 19:38:19 -05:00
Yotam Mann
f70825fa17
start
no longer starts one lookAhead
in the future
...
made testing more difficult and inconsistent with other behavior of Time
2016-12-20 22:49:20 -05:00
Yotam Mann
5d15ee324f
lookAhead -> latencyHint
...
more consistent with WAA spec
2016-12-20 22:47:37 -05:00
Yotam Mann
2c3fa527fd
adding updateInterval
...
how often the web worker callback is invoked
2016-12-20 22:37:34 -05:00
Yotam Mann
095f40f529
reverting getStateAtTime method in Tone.Clock
2016-12-18 23:39:53 -05: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
1536420bc8
adding numberOfInputs/Outputs
2016-12-18 20:57:00 -05:00
Yotam Mann
23f220d62a
updating jsdocs
...
[skip ci]
2016-12-18 20:26:44 -05:00
Yotam Mann
612b6c0b5e
Tone.Draw for synchronizing animation frame and Tone.Clock
2016-12-18 20:26:11 -05:00
Yotam Mann
a0ea404745
Revert "deferred animation callback"
...
This reverts commit f685bcd5ae
.
2016-12-18 13:43:23 -05:00
Yotam Mann
77640e7be3
delete pointer to scheduledOnce events after they are triggered
2016-12-18 13:41:23 -05:00
Yotam Mann
7f23302d01
linting
2016-12-17 16:35:50 -05:00
Yotam Mann
77953eede9
ExternalInput -> UserMedia
...
updated to latest MediaDevice API
2016-12-17 16:26:27 -05:00
Yotam Mann
0681181d67
speeding up the ramp time constant
2016-12-15 13:38:41 -05:00
Yotam Mann
cf69804322
uses buffer as string of actual buffer
2016-12-15 13:01:48 -05:00
Yotam Mann
423029d4b8
managing multiple starts of the same note
2016-12-15 12:48:49 -05:00
Yotam Mann
b19a2b5622
using setTimeout to trigger the onended callback
2016-12-15 12:48:06 -05:00
Yotam Mann
7a1380637e
Previous playback is not stopped if retrigger=true
...
Fixes #186
2016-12-05 21:29:55 -05:00
Yotam Mann
8911dce68a
Clock.start with undefined arg is scheduled into the future
...
if there is no argument passed into the first argument of Clock.start /
Transport.start, the currentTime + Clock’s lookAhead time will be used
as the start time.
2016-12-05 20:59:39 -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
2b7789b3a9
peek and shift methods
...
this allows the timeline to be used as a priority queue.
2016-12-02 18:59:12 -05:00
Yotam Mann
267d78d4a4
ease renamed to cosine
...
[skip ci]
2016-11-22 22:38:58 -08:00
Yotam Mann
b721ee8ffd
API to set Transport's lookAhead to customize the balance of latency and performance
2016-11-22 10:56:47 -08:00
Yotam Mann
d386ffed97
Convolver.load returns a Promise
2016-11-22 10:31:06 -08:00
Yotam Mann
84c1affe83
Clock uses static lookahead
...
lookAhead is more conservatively computed and adjusts to the largest
value.
2016-11-21 00:05:19 -08:00
Yotam Mann
5d469d44ba
adding triggerAttackRelease jsdoc
...
Clarifies and Fixes #175
[skip ci]
2016-11-07 10:42:09 -05:00
Yotam Mann
8a88acd735
linting
2016-11-06 20:13:18 -05:00
Yotam Mann
823d6efc16
linting
2016-11-06 19:41:00 -05:00
Yotam Mann
3ca0eadafd
.load method returns a Promise
2016-11-06 19:16:31 -05:00
Yotam Mann
45eba82840
updating to new Q values
2016-11-06 19:10:26 -05:00
Yotam Mann
e3d05840d9
'linear' attack removes pops in FF
2016-11-03 14:40:21 -04:00
Yotam Mann
99dd7717ec
don't decrement on error
...
added method to abort all downloads in progress
2016-11-03 14:39:45 -04:00
Yotam Mann
0cd8e26bf6
Merge pull request #174 from gerardabello/dev
...
Call 'set' method instead of looking into Tone objects
2016-10-31 20:09:54 -04:00
Richard Kwan
f2cc562d23
Change docs to correct default swingSubdivision
...
The default swingSubdivison for the Transport is an 8th note, not a 16th note.
2016-10-31 08:17:17 -04:00
Yotam Mann
934e731f82
OmniOscillator in MembraneSynth
2016-10-20 11:45:28 -04: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
Gerard Abelló
c9e5bd195a
Call 'set' method instead of looking into Tone objects
2016-10-20 08:57:13 +02:00
Yotam Mann
6c222a4b03
looping transport emits 'loopStart' / 'loopEnd' instead of 'start' / 'stop'
...
Fixes #173
2016-10-19 14:50:55 -04:00
Yotam Mann
c1e5792497
passing in initial value
2016-10-19 01:01:40 -04:00
Yotam Mann
5efa85081c
making all of Compressor's parameters Tone.Params
2016-10-19 01:01:31 -04:00
Yotam Mann
64a33b0c16
correcting offset when greater than loopEnd
2016-10-11 14:03:10 -04:00
Yotam Mann
6279582971
increment version
2016-10-11 14:01:03 -04:00
Yotam Mann
4a6fc4cc4b
updating version
2016-10-05 10:36:41 -04:00
Yotam Mann
fb9d1617d8
updating docs
...
[skip ci]
private attribute was missing
2016-10-05 01:31:11 -04:00
Yotam Mann
b5ba9e072c
ramping position values
...
this gets rid of a lot of clicking
2016-10-05 00:18:41 -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
bab37aea07
SpatialPanner and Listener wrappers
2016-10-01 21:45:22 -04:00
Yotam Mann
da59018fb3
convert the offset into seconds
2016-10-01 18:31:24 -04:00
Yotam Mann
b07577d53d
using Tone.seconds instead of Tone.position in start/stop
...
so that it can be fed straight into getStateAtTime
2016-10-01 16:26:37 -04:00
Yotam Mann
0285b4d83f
handle offset greater than the duration when set to loop
2016-09-29 09:57:31 -04:00
Yotam Mann
ecd5f9b5a3
only emit start/stop when setting ticks if transport is started
2016-09-29 00:52:00 -04:00
Yotam Mann
9ebd1dd7f4
min duration is 0
2016-09-26 21:13:20 -04:00
Yotam Mann
3d4bb4a9d1
removing rAF vestiges
2016-09-26 16:31:01 -04:00
Yotam Mann
753640bdeb
seek to a position in the buffer
2016-09-25 22:32:54 -04:00
Yotam Mann
ac0e3db386
updated docs
...
[skip ci]
2016-09-25 19:00:10 -04:00
Yotam Mann
827fda3d00
more accurate handling of syncing to Transport start with an offset / duration
2016-09-25 12:35:57 -04:00
Yotam Mann
7565530987
start/stop/pause callbacks are invoked at the moment they occur
...
Previously they were invoked when the ‘start/stop/pause’ methods were
called.
Fixes #159
2016-09-24 11:48:28 -04:00
Yotam Mann
792f85bebd
clock is an event emitter
2016-09-24 11:26:57 -04:00
Yotam Mann
d13d0179b3
testing undefined using typeof
2016-09-24 11:01:40 -04:00
Yotam Mann
545a0fe114
immediate scheduling when time <= now + this.blockTime
2016-09-24 10:39:44 -04:00
Yotam Mann
b1765f71b0
moving the minimum timing to the Instrument classes
2016-09-24 10:38:57 -04:00
Yotam Mann
10459f4281
set the .value of the AudioParam when the passed in time is less than one block away
...
addresses #163 . thanks for the suggestion @stuartpb
2016-09-23 20:20:14 -04:00
Yotam Mann
1c3e06c2e5
schedule immediate envelopes one block in the future
...
this avoids some pops
2016-09-23 20:07:41 -04:00
Yotam Mann
8d59c63d18
toSeconds no longer takes a currentTime value as second parameter
2016-09-23 20:06:07 -04:00
Yotam Mann
3d36324b8d
updating Q value so it doesn't feedback
...
Fixes #166
thanks @mmckegg
2016-09-23 10:16:10 -04:00
Yotam Mann
e19e54b072
wrapping playbackRate in Tone.Param
2016-09-22 18:36:44 -04:00
Yotam Mann
c0cb8945a6
AutoPanner LFO goes between -1 and 1
...
Fixes #165
2016-09-20 19:39:12 -04:00
Yotam Mann
6f35e743a6
get the time before testing Timeline classes
2016-09-20 19:35:21 -04:00
Yotam Mann
07ba833ded
making sure it has the time before passing it into Timeline classes
2016-09-20 19:35:07 -04:00
Yotam Mann
4711d704da
timeline classes require Number instead of Time
...
since they were used with different time scales, it makes sense not to
impose Time, but allow for any kind of number.
2016-09-20 19:12:43 -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
3b6c15ff5b
clarifying code using toType()
2016-09-20 18:54:36 -04:00
Yotam Mann
26f7676ef5
frequency has a toFrequency
...
seems a little redundant, but it’s clearer.
2016-09-20 18:35:49 -04:00
Yotam Mann
75773eb0f2
binary expressions use the same constructor
2016-09-20 18:27:10 -04:00
Yotam Mann
3b32641d77
corrected toSeconds
...
didn’t take into account if it was now-relative
2016-09-20 18:25:39 -04:00
Yotam Mann
0856efe50f
added toSeconds method
...
no longer relies on the inherited method
2016-09-20 18:25:06 -04:00
Yotam Mann
9379165928
starts out at 0 progress
...
fixes NaN issue. Also only goes to 95% bc of loading. the last 5% is
after the file is decoded.
2016-09-20 17:24:56 -04:00
Yotam Mann
372053a029
using Tone.Delay everywhere instead of DelayNode
2016-09-20 00:01:27 -04:00
Yotam Mann
a60328345e
using Tone.Gain everywhere instead of GainNode
2016-09-19 23:53:07 -04:00
Yotam Mann
cc232ce3c3
updated buses to use Gain. clearing send/recv on new AudioContext
...
testing that a gain can be passed in.
2016-09-19 23:30:43 -04:00
Yotam Mann
76ad44360d
updating to new API
2016-09-19 23:02:42 -04:00
Yotam Mann
66911d4c72
internal method for making inputs/outputs
2016-09-19 23:01:21 -04:00
Yotam Mann
66c344de38
using Tone.Gain for Multiply
2016-09-19 21:44:41 -04:00
Yotam Mann
31ea7abbd5
styling the code a bit
...
[skip ci]
2016-09-19 20:21:42 -04:00
Yotam Mann
a6cc5fe845
Decibels ramp linearly
...
sounds better.
2016-09-19 19:13:59 -04:00
Yotam Mann
2f525e74b7
will emit 'progress' when there is .lengthComputable
is false
2016-09-19 00:16:44 -04:00
Yotam Mann
03c98a2e79
throws error if Tone.LFO isn't available
...
might be useful to debug.
2016-09-19 00:08:54 -04:00
Yotam Mann
3b8d44d344
Buffer.prototype.load returns Promise
...
Also simplified/removed XHR queuing and other complications
2016-09-19 00:08:16 -04:00
Yotam Mann
6a951fa217
using 'emit' instead of 'trigger'
...
more similar to Node.js EventEmitter class
2016-09-18 20:07:00 -04:00
Yotam Mann
d8d69ae662
changing old docs which used Buffer.onload
...
[skip ci]
2016-09-18 20:05:01 -04:00
Yotam Mann
8982688f9e
can now pass in Infinity or other valid numbers
2016-09-18 20:03:04 -04:00
Yotam Mann
ceefac97e7
adding lengthComputable so that it never divides by 0
2016-09-18 19:45:16 -04:00
Yotam Mann
f115b4cdf5
clone/copy methods of Time/TimeBase
2016-09-18 19:41:25 -04:00
Yotam Mann
c135392f55
changing sync
to match new Source sync API
2016-09-18 19:37:31 -04:00
Yotam Mann
71a4c986fc
Can pass in an LFO description in the .value parameter
2016-09-18 19:25:47 -04:00
Yotam Mann
de9f15f1e7
fixed another linting error
...
[skip ci]
2016-09-08 21:20:49 -04:00
Yotam Mann
3eaa98ef51
fixed some linting errors
...
[skip ci]
2016-09-08 10:29:41 -04:00
Yotam Mann
b4c31342fe
loaded
attribute
...
iterates over the contained buffers and returns true if all of them are
loaded
2016-08-19 18:03:13 -04:00
Yotam Mann
f751bba814
can convert to Milliseconds
2016-08-18 11:41:04 -04:00
Yotam Mann
535ce86179
adding error callbacks
2016-08-16 15:26:51 -04:00
Yotam Mann
cea47e5cdb
added seek
event when changing the Transport's position
2016-08-15 23:13:09 -04:00
Yotam Mann
f5b7924bf2
make sure the duration is always positive
...
otherwise it throws an error
2016-08-15 23:13:09 -04:00
Yotam Mann
12392eba34
new Transport syncing API
...
now all calls after sync will be placed along the Transport’s timeline
instead of the AudioContext
Fixes #154
2016-08-15 23:13:09 -04:00
Yotam Mann
2569bfef8b
to/fromArray
...
plus a few more properties.
2016-08-15 10:23:01 -04:00
Yotam Mann
682ec0e46e
get/set the progress in seconds
2016-08-15 07:28:52 -04:00
Yotam Mann
e8178581c0
Merge pull request #161 from JackCA/allow-silencing-version-log
...
allow silencing of version log
2016-08-15 06:44:15 -04:00
Jack Anderson
f2f1cf6b9c
allow silencing of version log
...
- useful for test environments
2016-08-14 12:21:50 -07:00
Yotam Mann
6d0565387e
only schedule the stop in a valid state
...
the playbackState API has been deprecated, but the bug still is
implemented in Safari.
2016-08-11 23:58:48 -04:00
Yotam Mann
75d6126615
Convolved takes callback as second parameter
...
also accepts no arguments now
2016-08-09 14:24:59 -04:00
Yotam Mann
9a74728858
no longer throws error when no buffer is set
...
just doesn’t play instead
2016-08-09 01:14:52 -04:00
Yotam Mann
3d2b86032e
added has
method to test if buffer exists
2016-08-09 01:14:52 -04:00
Yotam Mann
7984819753
update the octaves when changing the baseFrequency
...
this way the `lfo.max` also gets updated
2016-08-08 16:20:30 -04:00
Yotam Mann
464d64d13b
Merge branch 'master' into dev
2016-07-20 15:44:34 -04:00
Yotam Mann
b266902bd7
can set the buffer
2016-07-20 15:42:55 -04:00
Yotam Mann
0824582274
update the octaves when updating the baseFrequency
...
otherwise it remains at the previous value
2016-07-20 15:37:51 -04:00
Yotam Mann
e029ead2bc
small update to the docs
...
[skip ci]
2016-07-20 13:12:31 -04:00
Yotam Mann
3aea0546f5
starting r8
...
[skip ci]
2016-07-10 12:31:15 -04:00
Yotam Mann
6c8c75a2ec
Clock ticks do not catch up when restarted after pause
...
fixes #145
2016-07-08 12:26:58 -04:00
Yotam Mann
8195d9d260
release candidate
2016-07-07 14:56:33 -04:00
Yotam Mann
62ca8f8c7b
setRampPoint does not need to convert from units
2016-07-07 14:23:48 -04:00
Yotam Mann
cf20132b2c
limiting BarsBeatsSixteenths precision to three decimal places
2016-07-07 14:11:03 -04:00
Yotam Mann
99f4ab3b79
updating docs for types
...
[skip ci]
2016-07-07 10:40:23 -04:00
Yotam Mann
eb5a459d03
removing vibratoDelay
...
wasn’t doing anything.
2016-07-06 23:41:14 -04:00
Yotam Mann
99d7d2f8bd
disconnects from a specific node
...
(tests this feature only when supported)
2016-07-06 23:39:06 -04:00
Yotam Mann
c08e16087f
correctly setting PPQ
...
wasn’t taking into account that the returns bpm value was dependent on
the PPQ. therefore, need to read the bpm before setting the PPQ.
2016-07-06 23:23:14 -04:00
Yotam Mann
d0b18c5d09
test for file type support.
2016-07-06 23:09:56 -04:00
Yotam Mann
810ee8530e
uses the units value when ramping
...
previously there was an issue that it would start ramping from the
unconverted value.
2016-07-06 23:00:07 -04:00
Yotam Mann
2905cce5d2
making fadeTo exponential when set to decibels.
...
also converting from units to set ramp point
2016-07-06 22:59:21 -04:00
Yotam Mann
f5f75718e1
buffers can be more easily passed into the options object
2016-07-06 22:36:40 -04:00
Yotam Mann
02f96db94b
simplifiying Sampler
2016-07-06 22:32:34 -04:00
Yotam Mann
b0f11dfa5b
granular synthesis player
2016-07-05 20:32:53 -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
20f8adebba
adjust PWM scaling so it doesn't go silent
2016-06-17 14:02:24 -04:00
Yotam Mann
a40aa6bd12
Fixing case where partial envelope is retriggered using one of the predefined envelopes
2016-06-17 13:13:20 -04:00
Yotam Mann
49c401e6d8
calling stop when duration is given.
...
making sure to assign _startTime using it.
2016-06-17 11:32:34 -04:00
Yotam Mann
3dece40ac6
disposing of volume
2016-06-17 10:54:35 -04:00
Yotam Mann
a2000bf42b
adding volume and mute controls
2016-06-17 10:43:30 -04:00
Yotam Mann
89636d40ef
ramping from current gain value
2016-06-17 10:43:06 -04:00
Yotam Mann
c70ab5d07a
using fadeOut when duration is set
2016-06-16 17:30:46 -04:00
Yotam Mann
74ebee4bfe
MultiPlayer keeps track of all the BufferSources it's played
2016-06-15 00:48:55 -04:00
Yotam Mann
f1e6c154e0
using linear ramping instead (sounds pretty much the same)
...
also compensating for the fade time when there is a passed in
duration.
2016-06-14 23:48:25 -04:00
Yotam Mann
ac0851b4c8
ensure onended
callback is not invoked after disposing
2016-06-14 21:08:30 -04:00
Yotam Mann
1efc061ebd
explicitly stop the AudioBufferSource when duration is given
2016-06-14 20:43:26 -04:00
Yotam Mann
96644f37d2
Adjusting the timing of the tests
...
also using wav’s instead of mp3s
2016-06-14 20:27:12 -04:00
Yotam Mann
693867f9be
Revert "encoding the URI"
...
This reverts commit 754e9fc500
.
2016-06-14 20:04:28 -04:00
Yotam Mann
e0edb67a75
Wrapper around the basic AudioBufferSourceNode
2016-06-14 19:57:46 -04:00
Yotam Mann
754e9fc500
encoding the URI
2016-06-14 19:57:15 -04:00
Yotam Mann
5978d46825
Buffers is a data structure for holding multiple Tone.Buffer
2016-06-14 19:57:01 -04:00
Yotam Mann
238cf0caa4
randomizing the noise offset
...
this should make two noises played starting at the same time slightly
different.
2016-06-14 19:56:18 -04:00
Yotam Mann
cce32d7efc
IntervalTimeline.forEachOverlap -> forEachAtTime
2016-06-13 09:02:51 -04:00
Yotam Mann
eea938094c
renaming cosine->sine and ease->sine
...
Fixes #69
2016-06-12 09:56:18 -04:00
Yotam Mann
4628f8c47a
prefixing errors with class name.
2016-05-25 20:50:46 -04:00
Yotam Mann
aae52e3fa1
default PolySynth voice is Tone.Synth
...
instead of Tone.MonoSynth
2016-05-23 19:56:15 -04:00
Yotam Mann
49fc9d7bb6
renamed SimpleSynth to Tone.Synth
2016-05-23 19:49:41 -04:00
Yotam Mann
db6b901003
attack/release curves can be arrays
...
also introducing a bunch of new curve types
2016-05-23 19:20:20 -04:00
Yotam Mann
29df1b2293
setValueCurveAtTime now implemented with a series of linearRampToValue
...
this is more cross-platform and easier to work with.
2016-05-23 19:19:06 -04:00
Yotam Mann
3b9b65bf89
adding additional startTime value to rampTo
2016-05-17 21:59:27 -04:00
Yotam Mann
9528238873
computing rms from the analyser waveform data
2016-05-17 21:26:57 -04:00
Yotam Mann
6060b397ad
added detune to PolySynth
...
applied when available.
2016-05-14 20:49:55 -04:00
Yotam Mann
b3e9ec173a
added detune for AM/FM synths
2016-05-14 20:10:31 -04:00
Yotam Mann
cdebaeedf5
Can pass in an array of durations into triggerAttackRelease
...
Fixes #135
2016-05-14 19:55:51 -04:00
Yotam Mann
8e3d3264dd
setting a value will cancel scheduled values
...
so that it gets set immediately.
2016-05-14 19:18:33 -04:00
Yotam Mann
58a1223a9a
meter uses the analyser node
...
no more ScriptProcessorNodes
2016-05-14 19:13:50 -04:00
Yotam Mann
2db3265fb9
needs to cancel at 0 for some reason to take effect in Chrome
2016-05-14 18:57:18 -04:00
Yotam Mann
a25767cfbe
can mute the output
2016-05-14 18:07:53 -04:00
Yotam Mann
24692aa343
can be muted in the constructor options
2016-05-14 17:46:21 -04:00
Yotam Mann
3ecd99ecb6
moving mute code to Volume
2016-05-14 17:34:23 -04:00
Yotam Mann
b02a13ab08
not using Math.log2 (since it's not supported across all browsers yet)
2016-05-14 17:00:57 -04:00
Yotam Mann
c83c70d11c
cancels scheduling when setting a value with .value
...
this makes the behavior consistent between Webkit and FF
2016-05-14 16:52:58 -04:00
Yotam Mann
98e58d0576
switching argument position of type and size
...
type is more important a parameter.
2016-05-14 16:34:50 -04:00
Yotam Mann
af1a737f71
simplifying position
code to use TransportTime
2016-05-14 16:32:16 -04:00
Yotam Mann
6c77c60469
ensures addNow can only be called once
2016-05-14 16:31:35 -04:00
Yotam Mann
1d9e43f33a
handles math operations correctly now
2016-05-14 16:27:55 -04:00
Yotam Mann
5d6f1806c1
Making the Analyser a passthrough node.
2016-04-25 18:05:15 -04:00
Yotam Mann
688e3812ab
removing old types
2016-04-18 02:19:29 -04:00
Yotam Mann
d374790175
using new Type
2016-04-18 02:19:17 -04:00
Yotam Mann
059bbf20b2
converting units using new API
2016-04-18 02:19:01 -04:00
Yotam Mann
b1d0d33f1b
can accept time as the value
2016-04-18 02:05:54 -04:00
Yotam Mann
1e7773ae6a
using new Timing primitives
2016-04-18 02:05:04 -04:00
Yotam Mann
16c28892c8
using Time instead of TransportTime
2016-04-18 01:12:55 -04:00
Yotam Mann
cebeb3e577
clock goes to stop state immediately
...
no need to test if it’s started.
2016-04-18 01:12:35 -04:00
Yotam Mann
733b49bcd5
using new types
2016-04-18 00:36:08 -04:00
Yotam Mann
696e84cafb
new core timing primitives
2016-04-18 00:34:16 -04:00
Yotam Mann
3f6580b843
simplifying NoiseSynth
...
removing filer and filterEnvelope
2016-04-18 00:28:39 -04:00
Yotam Mann
9b5837df3e
Using new types
...
swing sinusoidally delays until a triplet.
2016-04-18 00:17:02 -04:00
Yotam Mann
2530182b2e
updating analyser docs
...
[skip ci]
2016-04-17 13:41:54 -04:00
Yotam Mann
ca95a0bef5
increasing PPQ to 192. quantize->nextSubdivision
...
separating out Timeline quantization from quantization method and
moving it elsewhere.
2016-04-13 13:05:27 -04:00
Yotam Mann
d47cc0fa9d
fixed precedence bug
2016-04-13 12:29:02 -04:00
Yotam Mann
0d5f790444
updating example
...
removing support of note interpolation (didn’t seem that useful).
[skip ci]
2016-04-13 12:28:10 -04:00
Yotam Mann
6d4a4cf164
moving intervalToFrequencyRatio into core
2016-04-12 20:30:18 -04:00
Yotam Mann
4a05dc4534
removing unused method
...
`fan` is more useful
2016-04-10 23:35:22 -04:00
Yotam Mann
4f4d93ba71
removing deprecated Note class
2016-04-10 23:34:34 -04:00
Yotam Mann
cd29397a15
Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev
2016-04-10 16:49:51 -04:00
Yotam Mann
48c7ca5cc4
Updating documentation to show start offset time and duration arguments
...
Fixes #136
[skip ci]
2016-04-10 16:00:10 -04:00
Yotam Mann
90c0b5febe
MultiPlayer needs Buffer as dependency
2016-03-22 16:01:32 -04:00
Yotam Mann
85cfedb03c
adding polyfill for getFloatTimeDomain
...
Fixes #129
2016-03-20 19:01:39 -04:00
Yotam Mann
52186f6d31
noting polyfill
...
[skip ci]
2016-03-20 18:58:08 -04:00
Yotam Mann
e18ed2e677
polyfill for browsers that don't support interpolate value curves
...
Required by [the
spec](http://webaudio.github.io/web-audio-api/#widl-AudioParam-setValueC
urveAtTime-AudioParam-Float32Array-values-double-startTime-double-durati
on), but not currently implemented by Safari and FF.
2016-03-20 18:36:59 -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
0a4b997bde
updating start
method documentation
...
[skip ci]
2016-03-18 11:00:07 -04:00
Yotam Mann
df30c40bd3
maximum diff between frames
2016-03-18 10:24:11 -04:00
Yotam Mann
14fcbb3553
Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev
2016-03-18 09:54:17 -04:00
Yotam Mann
5ddf71a3da
removing millisecond conversion
...
accidentally still had that in there.
2016-03-17 18:00:42 -04:00
Yotam Mann
40d739fc4d
More waveshaper points
...
works better on Safari
2016-03-16 13:09:46 -04:00
Yotam Mann
04614a2948
added setCurveAtTime to Timeline
2016-03-05 10:44:03 -05:00
Yotam Mann
78095af046
properly handles error on buffer decoding
2016-03-05 00:07:42 -05:00
Yotam Mann
aa1b5123aa
fixing panner for browsers that don't support stereo panner
2016-03-04 18:59:31 -05:00
Yotam Mann
ad9ae4dbe9
fitting fft size to conform with old spec range
...
this allows it to pass on older systems which haven’t increased the
range to 32k
2016-03-04 18:30:15 -05:00
Yotam Mann
ac6ef2c263
ifdef which allows Tone work on the same page as p5.sound
2016-03-04 18:14:24 -05:00
Yotam Mann
2728e02555
ability to cancel an envelope
2016-03-04 15:54:24 -05:00
Yotam Mann
07f8f227cf
.events -> .values
2016-03-04 15:35:10 -05:00
Yotam Mann
f2fc38210f
updated doc examples
2016-03-03 13:08:26 -05:00
Yotam Mann
18b2136148
.value
returns the scheduled value at time=now
2016-03-03 13:04:02 -05:00
Yotam Mann
366e61562f
canceling future states on stop
...
also not checking if it’s already started.
Fixes #121
2016-03-03 13:02:38 -05:00
Yotam Mann
278aace787
setting a reasonable max voice count
2016-03-03 13:01:11 -05:00
Yotam Mann
2020194a1c
testing and handling edge cases
2016-03-03 13:00:59 -05:00
Yotam Mann
7a23c08703
LFO outputs 0 value when stopped
...
gets around 0 gain optimization
2016-03-03 01:35:29 -05:00
Yotam Mann
724ac4090c
removing threshold value
...
making _worker static
2016-03-03 01:34:48 -05:00
Yotam Mann
89711b336e
process single occurrence events first
...
Fixes #114
2016-02-27 17:23:38 -05:00
Yotam Mann
e8eb147935
Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev
2016-02-27 17:19:26 -05:00
Yotam Mann
bfbf567d98
Clocks uses Workers instead of requestAnimationFrame
...
Fixes #124
2016-02-27 17:14:39 -05:00
Yotam Mann
12c7426f53
baseUrl
...
useful for various production environments.
2016-02-27 17:12:11 -05:00
Yotam Mann
93d70a3a9e
waveshaper goes between -1 and 1 inclusive
2016-02-27 17:08:53 -05:00
Yotam Mann
ac5841d8ad
removing startMobile
...
use StartAudioContext to accomplish the same thing.
2016-02-27 16:46:13 -05:00
Yotam Mann
115b9376ab
Panner is now between -1 and 1
...
Same as the Web Audio API.
2016-02-27 11:31:15 -05:00
Yotam Mann
23c70cbc93
disposing fully
2016-02-27 11:22:26 -05:00
Yotam Mann
0441bc5008
pruning away unused signal classes
2016-02-27 11:18:59 -05:00
Yotam Mann
c4f85780f2
using sampleTime variable
2016-02-27 11:16:51 -05:00
Yotam Mann
a427070904
Outputs 0 at audio-rate
...
This is to get around an optimization in most browsers which stops
processing when the gain is equal 0 in the Signal.
2016-02-27 11:16:25 -05:00
Yotam Mann
670e3ef92b
static 'now' function
...
updated description.
2016-02-25 17:58:26 -05:00
Yotam Mann
faf434400b
pull in Master like the rest of the sources
2016-02-18 14:12:30 -05:00
Yotam Mann
35e065ca80
adding error callback on open
2016-02-18 14:11:47 -05:00
Yotam Mann
9049857b80
fire-and-forget buffer player
2016-02-08 13:44:49 -05:00
Yotam Mann
64dbebeb67
triggers oldest note
...
no more control over retriggering.
2016-02-08 13:44:49 -05:00
Yotam Mann
4a9f39a62b
keeps track of release times
...
so it’s able to trigger the voice that has already been release, or
retrigger the oldest voice (if stealVoices) is true.
2016-02-08 13:44:49 -05:00
Yotam Mann
ecd15808c2
simplified Abs
...
now only accepts signals in the range [-1,1]
2016-02-06 15:06:03 -05:00
Yotam Mann
abc62d3962
Merge pull request #115 from hiddedejong/PartOffset
...
fixed start offset in Tone.Part, now behaves like Tone.Player
2016-02-01 22:28:59 -05:00
Yotam Mann
af6babf8d8
shortens attack time if the envelope is already active
...
this retains the attack slope.
2016-01-31 23:40:50 -05:00
Yotam Mann
c72a5f25c9
makes sure that exponential ramping is never from or to 0
...
when trying to ramp from 0, it does a setValueAtTime to a near zero
value, then ramps exponentially. And the reverse when ramping to 0.
2016-01-31 23:33:36 -05:00
Yotam Mann
79ab31603a
cache the time in seconds of 1 sample
2016-01-31 23:13:00 -05:00
Yotam Mann
de37b6798d
adding Master as a dependency
...
Addresses #112
2016-01-31 12:20:55 -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
9e7dd15e46
removed unused enum
2016-01-30 20:24:53 -05:00
Yotam Mann
995a12d765
Making sure the envelope is active before triggering the release
...
This keeps FF from throwing an error when trying to exponentially ramp
from 0.
2016-01-30 15:56:56 -05:00
Yotam Mann
46919e7c86
Simplifying the API of FMSynth and AMSynth
...
uses SimpleSynth instead of MonoSynth. API more flat.
2016-01-30 15:53:40 -05:00
Yotam Mann
2f4d6d07cd
DrumSynth->MembraneSynth & CymbalSynth->MetalSynth
2016-01-30 15:48:32 -05:00
Yotam Mann
3d67297166
updated copyright year
2016-01-23 12:30:34 -05:00
Yotam Mann
d5499f64f8
CymbalSynth synthesizes spectrally complex, metallic sounds
2016-01-19 10:02:46 -05:00
Yotam Mann
e53c864948
making sure the envelope is silent after the decay if the sustain is 0
2016-01-18 22:46:36 -05:00
Yotam Mann
9f785b371e
removing deprecated methods
2016-01-18 22:45:46 -05:00
Yotam Mann
61caca5054
volume change proportional to the number of oscillators
2016-01-18 00:27:46 -05:00
Yotam Mann
5a772466ae
3 new oscillator types
...
and combined them into the OmniOscillator
2016-01-17 22:43:44 -05:00
Yotam Mann
0349216473
Envelope is completely silenced while not being triggered
...
Fixes #109
2016-01-16 15:39:29 -05:00
Yotam Mann
68daf2aab9
fixing docs
2016-01-03 12:36:49 -05:00
Yotam Mann
e371c69a79
incrementing version
2015-12-13 13:09:53 -05:00
Yotam Mann
6c81d59df2
r6 version
2015-12-08 00:26:03 -05:00
Yotam Mann
cfc33cf39c
doc'ing
2015-12-08 00:07:16 -05:00
Yotam Mann
b3e08a4c02
removed instrument presets
2015-12-07 21:32:28 -05:00
Yotam Mann
7fd1ad026e
removing effect presets
...
Presets have been moved to their own repo
2015-12-07 19:14:12 -05:00
Yotam Mann
eda4553169
using baseFrequency
and octaves
for AutoFilter
2015-12-07 11:46:34 -05:00
Yotam Mann
d29995a42a
phaser uses octaves
instead of depth
.
...
more consistent with rest of API.
2015-12-07 01:04:09 -05:00
Yotam Mann
2664140ab0
implementing filterEnvelope
with Tone.FrequencyEnvelope
2015-12-07 00:39:39 -05:00
Yotam Mann
acd3722add
exposing exponent value
2015-12-07 00:38:48 -05:00
Yotam Mann
307dd6632c
FrequencyEnvelope is like ScaledEnvelope but with baseFrequency and octaves instead of min and max
2015-12-07 00:23:21 -05:00
Yotam Mann
3bbd66c5d2
constrain TimelineSignal's memory
2015-12-07 00:19:38 -05:00
Yotam Mann
f7547217c8
Timeline has an optional memory length
2015-12-06 23:48:53 -05:00
Yotam Mann
2626b19469
setValueAtTime makes the attack less prone to clicks
...
not sure why.
2015-12-06 21:39:59 -05:00
Yotam Mann
298799dee9
added 'spread' to Chorus
2015-12-06 20:53:36 -05:00
Yotam Mann
1d7385d819
spread
is initialized with the constructor.
2015-12-06 17:37:37 -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
8984365883
resolves case where items are removed during iteration
2015-12-06 17:23:30 -05:00
Yotam Mann
dbc33d0a1c
fixes case of canceling events when there's only one event in the timeline
2015-12-06 17:23:30 -05:00
Yotam Mann
441f964206
Merge pull request #103 from lukephills/upstream-dev
...
Tremolo stereo spread control
2015-12-06 17:22:54 -05:00
Yotam Mann
9d3b5947fd
Reverting to non-signal playbackRate
...
because Safari isn’t there yet with signal-rate playbackRate
2015-12-06 13:14:36 -05:00
Yotam Mann
74110715f5
Revert "playbackRate is now a signal"
...
This reverts commit f889a77f0f
.
2015-12-06 13:14:36 -05:00
Yotam Mann
ae669e7fa6
making sure the ramp time constant is above 0
2015-12-06 13:14:36 -05:00
Yotam Mann
1cf6910796
Using exponentialRamp for decay and release
...
This normalizes things across browsers because it seems that FF
setTargetAtTime always starts from 0
addresses #91
2015-12-06 13:14:36 -05:00
Yotam Mann
f4200aa2a7
left and right inputs of merger are explicitly mono
...
this fixes issue of not splitting correctly in FF and Safari.
2015-12-06 13:14:36 -05:00
Yotam Mann
12d7cd0e1f
eventsToRemove is no longer necessary
2015-12-06 13:14:36 -05:00
Yotam Mann
2bf8039b4e
iterator with guarding in case items are deleted
...
makes it safer to delete an item during a forEach loop
2015-12-06 13:14:36 -05:00
Yotam Mann
f0857f2e08
canceling next events on stop
2015-12-06 13:14:36 -05:00
Luke Phillips
1cbe390d8d
Give tremolo a stereo spread option
2015-12-06 13:29:08 +13: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
8bcf318271
updating to new playbackRate API
2015-11-26 08:21:38 -08:00
Yotam Mann
1b10f4e47b
reverting. getValueAtTime should return unconverted units
...
Making a note of this in the docs
2015-11-26 01:24:34 -05:00
Yotam Mann
f6a95f2f49
default partials value
2015-11-25 21:46:54 -05:00
Yotam Mann
33dbdeff41
can set partials in constructor
2015-11-25 21:46:47 -05:00
Yotam Mann
21b8c074e4
changing the humanize amount to 0.02s
2015-11-25 21:46:33 -05:00
Yotam Mann
fe5d6ac94e
getting partials (correctly) for other Oscillator types
2015-11-23 23:51:36 -05:00
Yotam Mann
093d2e3a36
getValueAtTime returns converted values
2015-11-23 23:49:54 -05:00
Yotam Mann
ac693eac4b
doc'ing
2015-11-17 23:21:55 -05:00
Yotam Mann
c8cfe33864
doc'ing
2015-11-17 22:52:22 -05:00
Yotam Mann
7f660730df
removing exponent member
2015-11-17 22:51:32 -05:00
Yotam Mann
4c3cf0d8fc
handling partials member for other oscillator types
2015-11-17 22:51:10 -05:00
Yotam Mann
2c215ce703
setting ramp point cancels next values so they don't interfere with the next ramp
2015-11-16 11:11:01 -05:00
Yotam Mann
e09ec8de23
reverting to old volume implementation in Master
2015-11-16 11:10:12 -05:00
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
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
Yotam Mann
17c6bf3661
note attack parameter is a Frequency type
2015-07-02 13:11:44 -04:00
Seth Kranzler
12c56011b6
doc'ing components
2015-07-01 20:19:58 -04:00
Seth Kranzler
faf289bdd6
Effects, mic, Noise, Omniosc, and AmplitudeEnvelope docs updated
2015-07-01 17:44:30 -04:00
Yotam Mann
42d3ee84b9
remove dry signal feedback
...
this caused it to fail after the feedback gain was above 0.5.
Fixes #70
2015-06-28 21:07:27 -04:00
Yotam Mann
2bdd2eccce
can set volume initially on instruments
2015-06-27 17:25:47 -04:00
Yotam Mann
47a354c9ce
fixed typo in description
2015-06-27 17:25:32 -04:00
Yotam Mann
690ddd69fc
updated units
2015-06-27 17:25:19 -04:00
Yotam Mann
e0b6ec48ad
fixed refactor bug
2015-06-26 01:21:59 -04:00
Yotam Mann
0757b580b7
adjusting defaults
2015-06-26 01:21:49 -04:00
Yotam Mann
8ffd6e538f
fixed doc bugs
2015-06-22 01:21:25 -04:00
Yotam Mann
747dff0636
fixing mute/unmute
2015-06-22 01:21:09 -04:00
Yotam Mann
07b4516974
doc'ing effects
2015-06-22 01:20:57 -04:00
Yotam Mann
0457def366
updating instrument images
2015-06-22 01:20:20 -04:00
Yotam Mann
5ea8eaa35d
doc'ing components
2015-06-20 19:25:49 -04:00
Yotam Mann
cedc2040e8
doc'ing instruments
2015-06-20 18:03:49 -04:00
Yotam Mann
4e9cb3ce1e
doc'ing
2015-06-20 15:50:57 -04:00
Yotam Mann
8449622a68
new types MIDI and TransportTime
2015-06-20 15:50:06 -04:00
Yotam Mann
b13beccba8
doc'ing signals
2015-06-19 00:52:04 -04:00
Yotam Mann
90b5ee3844
instrument examples
2015-06-15 22:36:20 -04:00
Yotam Mann
6306841779
doc'ing
2015-06-15 11:27:13 -04:00
Yotam Mann
80a28f8554
using noOp function for defaults
2015-06-14 01:54:36 -04:00
Yotam Mann
8d02f2eb81
editing class comments.
2015-06-14 01:45:12 -04:00
Yotam Mann
4b1f235781
doc'ing bus
2015-06-14 01:24:12 -04:00
Yotam Mann
bb4754928f
styling docs
2015-06-14 01:21:10 -04:00
Yotam Mann
cf6fdefdab
doc'ing signals
2015-06-14 01:17:09 -04:00
Yotam Mann
bd7e4fd76a
doc'ing components
2015-06-14 01:09:06 -04:00
Yotam Mann
d22e00d6ba
write protection on harmonicity and modulation index
2015-06-14 00:54:51 -04:00
Yotam Mann
dff77a9944
doc'ing effects
2015-06-14 00:54:17 -04:00
Yotam Mann
f2a244a960
doc'ing instruments
2015-06-14 00:32:17 -04:00
Yotam Mann
b2fa7a065e
jsdocing
2015-06-13 23:56:32 -04:00
Yotam Mann
216ed6e472
instrument jsdoc'ing
2015-06-13 23:15:57 -04:00
Yotam Mann
8b7b4ab3f3
making envelope attack/release method private
2015-06-13 22:47:07 -04:00
Yotam Mann
58573b15c1
harmonically as a signal value
2015-06-13 22:30:53 -04:00
Yotam Mann
800ac13332
jsdoc'ing the sources
2015-06-13 22:30:33 -04:00
Yotam Mann
de3564827d
set
example
2015-06-13 22:03:58 -04:00
Yotam Mann
0877a4862c
jsdoc'ing sources
2015-06-13 22:03:06 -04:00
Yotam Mann
23cc2408b2
changing link tag
2015-06-13 21:54:20 -04:00
Yotam Mann
20ad29dc61
removing types from array notation
2015-06-13 20:56:41 -04:00
Yotam Mann
a81ba071f3
changing the styling of this
in return statements
2015-06-13 20:54:29 -04:00
Yotam Mann
6bb7b761a1
updating docs
2015-06-13 20:52:51 -04:00
Yotam Mann
571183bf27
removing Tone.Type prefix in docs
2015-06-13 20:20:36 -04:00
Yotam Mann
f2f838b630
using signal jsdoc
2015-06-13 19:50:39 -04:00
Yotam Mann
5cb915a332
removing notes on default
2015-06-13 19:29:35 -04:00
Yotam Mann
07264eb05b
signal jsdocing
2015-06-13 19:29:25 -04:00
Yotam Mann
99c7067f54
sets initial volume of source
2015-06-07 14:05:59 -04:00
Yotam Mann
d29ecdad36
parameter can be passed in
2015-06-07 13:16:50 -04:00
Yotam Mann
807db1640c
made filter
public
2015-06-07 12:58:21 -04:00
Yotam Mann
37286c3d23
better rolloff validation.
2015-06-07 12:57:50 -04:00
Yotam Mann
9505bf77b6
setting parameters of LFO
2015-06-07 12:12:03 -04:00
Yotam Mann
3bf65cddb3
type annotation
2015-06-07 12:09:08 -04:00
Yotam Mann
3ee0ab2e3e
adding typedefs to Tone.Type
2015-05-31 10:54:23 -04:00
Yotam Mann
b3f7babcca
respelling the enum types
2015-05-24 09:53:53 -04:00
Yotam Mann
68a47a9d58
Normal->NormalRange & Number->Default
2015-05-24 09:45:15 -04:00
Yotam Mann
38f66d92ad
get can use "." to access deeper props
2015-05-24 09:34:17 -04:00
Yotam Mann
1f69151c5f
renamed Tone.Frequency -> Tone.Type.Frequency
2015-05-23 19:07:28 -04:00
Yotam Mann
6ef3dd2f51
renamed Tone.Time -> Tone.Type.Time
2015-05-23 19:01:05 -04:00
Yotam Mann
f0bcd68812
renamed Tone.Signal.Units to Tone.Type
...
also renamed Tone.Source.State to Tone.State
2015-05-23 18:57:05 -04:00
Yotam Mann
17e76b0642
3 new Simplified Synths
2015-05-23 18:26:16 -04:00
Yotam Mann
17143cf777
Tone.Frequency type
2015-05-23 18:16:53 -04:00
Yotam Mann
176ddcb52b
Instrument default value
2015-05-23 18:16:34 -04:00
Yotam Mann
fdf8da421c
gain gets the default value
2015-05-23 18:16:14 -04:00
Yotam Mann
f765c6127f
chain and mute
2015-05-23 18:15:39 -04:00
Yotam Mann
dbf992d195
LFO takes on unit values
...
it also starts at min value instead of jumping to the middle value on
start
2015-05-23 18:15:19 -04:00
Yotam Mann
a53c7b8eec
moving typedefs into Tone core
2015-05-23 18:14:39 -04:00
Yotam Mann
0667feae49
removing unneeded connections
2015-05-22 10:13:05 -04:00
Yotam Mann
dfc04af754
adding Q control to Multiband split
2015-05-22 10:12:50 -04:00
Yotam Mann
9bd56c89c6
removing panner references
2015-05-21 13:53:04 -04:00
Yotam Mann
4bb78b0fa2
passing options to base class
2015-05-21 13:52:44 -04:00
Yotam Mann
e2ed3b4350
volume is first parameter of constructor
2015-05-21 13:52:06 -04:00
Yotam Mann
3f3cbe5f04
detune value in cents
2015-05-21 13:51:40 -04:00
Yotam Mann
b7864d1c4d
correctly sets resonance and dampening
...
it was set at 0 before, making it silent.
2015-05-13 12:13:25 -04:00
Yotam Mann
d63290f4ee
returning to original get
method
...
gets everything, not just the defaults of the parent
2015-05-13 12:13:00 -04:00
Yotam Mann
02ec3215df
new oscillator types
...
sine[partialsCount] i.e. sine6, triangle2, square3, etc.
2015-05-12 23:49:03 -04:00
Yotam Mann
0b00db3ec6
defaults
2015-05-12 23:48:13 -04:00
Yotam Mann
d8575a38ba
get
crawls defaults correctly
2015-05-12 23:46:12 -04:00
Yotam Mann
2e36740b9b
fixing deps
2015-05-05 16:40:58 -04:00
Yotam Mann
a2f4a3595b
jsdoc'ing
2015-05-05 16:40:52 -04:00
Yotam Mann
eec1c3135d
option not to convert units
...
that would make the .units attribute only for labelling and
non-functional.
2015-05-05 16:38:46 -04:00
Yotam Mann
2fdaa36d1f
Clock onended callback similar to Sources
...
Fixes #65
2015-05-05 15:36:06 -04:00
Yotam Mann
4818c14faa
fixes AudioSourceNode looping bug in Chrome 42
...
This should be addressed in Chrome 43.
Fixes #64
2015-04-28 22:12:59 -04:00
Yotam Mann
e797398395
buffer is reversed when it's loaded
...
not every time the buffer is set (as in the case a Sampler’s buffer is
being set).
2015-04-28 16:27:11 -04:00
Yotam Mann
15ebac4c37
Player autostart
...
Plays as soon as the buffer is loaded.
2015-04-28 16:17:54 -04:00
Yotam Mann
274bab6336
removing Tone.Stereo
...
changing the `channelCountMode` is much simpler.
2015-04-28 14:42:40 -04:00
Yotam Mann
c7ff31caf9
sources are explicitly stereo
...
makes it easier to go through stereo effects.
2015-04-28 14:33:59 -04:00
Yotam Mann
632c22b9e5
set PolySynth with rampTime
2015-04-24 19:34:26 -04:00
Yotam Mann
f0861838fc
mute boolean so that you can't double mute the master output
2015-04-24 17:45:32 -04:00
Yotam Mann
3ae799fc6e
onload callback
2015-04-24 17:45:12 -04:00
Yotam Mann
295901e383
new LowpassCombFilter interface
2015-04-24 17:45:03 -04:00
Yotam Mann
ef5ef5fed9
dampening in hertz rather than normalized
2015-04-24 17:44:42 -04:00
Yotam Mann
1be27628c4
simplifying comb filters
...
128 samples is defined in the spec as the block size and minimum delay
time for cyclic delayNodes. this makes it unnecessary to string
together multiple delays for small delay times.
2015-04-24 17:44:10 -04:00
Yotam Mann
e069787697
Keeping the lfo min above 0
...
addresses #59
2015-04-24 13:46:12 -04:00
Yotam Mann
f7c6c1cd95
slimming down compressor code
2015-04-24 13:13:20 -04:00
Yotam Mann
68685f0fc8
renaming "amount" -> "depth"
2015-04-24 13:13:00 -04:00
Yotam Mann
dd3676d5a8
Tremolo Effect
2015-04-24 13:10:16 -04:00
Yotam Mann
0ff1962d51
MidSideCompressor
2015-04-20 15:41:49 -04:00
Yotam Mann
b3bd168b1f
defined MidSideEffect in terms of MidSideSplit/Merge
2015-04-20 15:41:42 -04:00
Yotam Mann
8ad222d94f
MidSide Split and Merge components
2015-04-20 15:41:30 -04:00
Yotam Mann
bbdeffb7f7
attackType -> attackCurve
2015-04-20 10:42:27 -04:00
Yotam Mann
e79c9a33e4
optimizing Tone.Stereo
2015-04-20 10:42:09 -04:00
Yotam Mann
1b72e91b32
renamed EQ to EQ3
2015-04-20 10:41:55 -04:00
Yotam Mann
8fed8ee52b
DrumSynth instrument
2015-04-20 10:39:47 -04:00
Yotam Mann
90a3aeb151
removing setValueAtTime in exponential ramp
2015-04-18 20:24:07 -04:00
Yotam Mann
0b3528c2fe
setting min output
2015-04-18 20:23:14 -04:00
Yotam Mann
2f9a304acf
Envelope has exponential or linear attack
2015-04-18 14:54:51 -04:00
Yotam Mann
8e69627ad1
making attributes readOnly
2015-04-18 10:54:08 -04:00
Yotam Mann
ba3a7556a7
new AutoFilter effect
2015-04-18 10:52:33 -04:00
Yotam Mann
9e98e9078a
stricter interface for components
2015-04-05 15:13:15 -04:00
Yotam Mann
a85b72727f
setting read/write as an array
2015-04-05 14:53:27 -04:00
Yotam Mann
4be776955d
private _writable
method
...
inverse of readOnly
2015-04-05 14:42:32 -04:00
Yotam Mann
c0de630442
fixing dispose methods
2015-04-05 14:42:14 -04:00
Yotam Mann
81670122d3
completely disposing readOnly properties
...
need to set them writable first
2015-04-05 14:41:43 -04:00
Yotam Mann
7f984464bd
properly disposing readonly objects
...
first making them writable
2015-04-05 14:35:32 -04:00
Yotam Mann
550ceb5038
stricter interface on signal attributes
2015-04-05 14:25:01 -04:00
Yotam Mann
6b1373e431
cosmetics
2015-04-05 14:01:05 -04:00
Yotam Mann
3a93d52ee1
making source's signal attributes readOnly
...
this helps avoid a common error which is overwriting a signal property
instead of setting the .value attribute
2015-04-05 14:00:52 -04:00
Yotam Mann
bcb7dad795
panner uses GainToAudio
2015-04-05 12:13:19 -04:00
Yotam Mann
da1d03b616
inverse of AudioToGain
...
maps values in the gain range [0, 1] to the audio range [-1, 1]
2015-04-05 12:13:03 -04:00
Yotam Mann
7be93abc0a
correctly maps values in Safari
...
Fixes #59
2015-04-05 12:12:32 -04:00
Yotam Mann
e6602d561d
fixing bug when updating phase
...
previously wouldn’t update because the type was still the same. thanks
@mindofmatthew
2015-04-05 10:38:17 -04:00
Yotam Mann
33bedd3fbe
applying @mindofmatthew patch
2015-03-27 09:42:20 -04:00
Yotam Mann
a572df7a88
Merge pull request #61 from mindofmatthew/phase-patch
...
Phase patch
2015-03-27 09:32:59 -04:00
Matthew Kaney
5576c3db22
Fix phase bug for complex waveforms
...
Fix bug where phase is applied to partials relative to the partial,
rather than the fundamental, frequency
2015-03-26 13:18:41 -04:00
Yotam Mann
ec2bd15ee1
can reverse buffer playback
2015-03-26 10:51:44 -04:00
Yotam Mann
f60a0ea947
implementing PanVol with Volume
2015-03-26 10:51:08 -04:00
Yotam Mann
b093dd4d73
deleting deprecated classes
2015-03-26 10:50:48 -04:00
Yotam Mann
2be3f1dcbb
Merge pull request #58 from kirbysayshi/ksh/fx-bug-decrease
...
prevent SyntaxError(s) in Firefox
2015-03-24 16:32:39 -04:00
Yotam Mann
de7a22aecd
Simple Volume control in decibels
2015-03-24 16:30:04 -04:00
Yotam Mann
e0d7ac212b
uses StereoPannerNode when available
2015-03-24 16:29:48 -04:00
Yotam Mann
788c703aa3
Tone.Stereo coerces mono signal into stereo
2015-03-24 16:29:36 -04:00
Yotam Mann
52b113a611
optimizing Split components
2015-03-24 16:29:11 -04:00
Yotam Mann
470e8063e3
fix unused playback rate in Noise
2015-03-24 16:28:48 -04:00
Yotam Mann
829934d0e6
send values in decibels
2015-03-24 16:28:36 -04:00
Andrew Petersen
a2aeffe2a2
prevent SyntaxError(s) in Firefox
2015-03-21 23:24:54 -04:00
Yotam Mann
28a86eeba1
removed console log
2015-03-12 17:45:00 -04:00
Yotam Mann
940f92b5a0
convolver buffer not being set correctly
...
Fixes #54
2015-03-10 14:08:16 -04:00
Yotam Mann
a61860c826
fixed panning bug
2015-03-09 22:52:08 -04:00
Yotam Mann
56e178af76
incremented version
2015-03-09 10:47:44 -04:00
Luke Phillips
237202c049
updated typescript definitions and fixed a few type errors
2015-03-07 19:17:16 +00:00
Luke Phillips
e706e0ad5e
remove getOversample
2015-03-07 19:04:40 +00:00
Luke Phillips
f4fc005a57
new typescript definitions
2015-03-07 18:45:11 +00:00
Luke Phillips
db5c6eb865
remove old get and set functions
2015-03-07 18:41:10 +00:00
Luke Phillips
17df3dc4bb
es5 getters and setters used in multiband eq
2015-03-07 18:26:08 +00:00
Luke Phillips
d2755e10de
Merge Tone r4
2015-03-05 16:06:27 +00:00
Yotam Mann
269b2940c3
r4 build
2015-03-03 12:15:37 -05:00
Yotam Mann
b796d3ef1e
more presets
2015-03-03 11:19:53 -05:00
Yotam Mann
41e55e138c
clean up
2015-03-03 10:30:42 -05:00
Yotam Mann
a03541c41a
fixed problem with sensitivity
2015-03-03 10:27:34 -05:00
Yotam Mann
edbcffc505
simplified components
2015-03-03 10:26:46 -05:00
Yotam Mann
649c2df574
delay works with stereo signals too
2015-03-01 19:49:01 -05:00
Yotam Mann
d8a13d6dea
setting initial oscillator type
2015-02-28 19:35:27 -05:00
Yotam Mann
3211347fef
test if setting "type" is necessary before doing it
2015-02-28 18:06:25 -05:00
Yotam Mann
d609f8e266
jsdoc'ing instruments
2015-02-27 23:24:51 -05:00
Yotam Mann
e6718e4781
jsdoc'ing effects and components
2015-02-27 16:53:10 -05:00
Yotam Mann
930728648b
jsdoc'ing
2015-02-27 13:40:35 -05:00
Yotam Mann
0c4a67296a
simplified modulo by constraining input range
...
only handles inputs between -1 and 1
2015-02-27 13:00:20 -05:00
Yotam Mann
4e77c61638
JSDoc'ing sources
2015-02-27 11:19:45 -05:00
Yotam Mann
4ca5d26848
updating docs
2015-02-26 11:47:44 -05:00
Yotam Mann
a791d80ddf
removing some vestigial methods
2015-02-26 11:26:49 -05:00
Yotam Mann
24875c2f4c
more JSDoc massaging
2015-02-26 11:26:23 -05:00
Yotam Mann
371e3ce387
more jsdoc examples
2015-02-25 16:20:12 -05:00
Yotam Mann
76973cda7d
changed internal tag to private tag
...
JSDoc stuff
2015-02-25 16:19:43 -05:00
Yotam Mann
a28f805374
made toTicks and ticksToSeconds private
2015-02-25 16:18:40 -05:00
Yotam Mann
62cd815563
made dryWet private in effects
...
still expose wet control
2015-02-25 00:57:00 -05:00
Yotam Mann
97c6395a3f
Sampler regtriggers by default
2015-02-24 12:02:56 -05:00
Yotam Mann
12896a5630
get/set method on Transport
2015-02-23 22:14:22 -05:00
Yotam Mann
c5b2cdae3e
low/mid/high uses Signals
2015-02-23 19:46:28 -05:00
Yotam Mann
9722415a4c
deprecated Inverse and Divide
...
They were more complicated than they were useful.
2015-02-23 19:39:46 -05:00
Yotam Mann
9e7742fde7
ramp values in set
method
2015-02-23 14:07:52 -05:00
Yotam Mann
c7cf0d0823
setting a preset moved to core
2015-02-23 00:32:33 -05:00
Yotam Mann
db04c9db39
default value
2015-02-23 00:31:05 -05:00
Yotam Mann
93ded2eb2f
extend Signal to allow for scheduling
2015-02-23 00:30:53 -05:00
Yotam Mann
8f0fbe2de8
changing _onended callback
2015-02-23 00:29:49 -05:00
Yotam Mann
219eeaa537
source uses scheduled values to determine state
2015-02-23 00:29:07 -05:00
Yotam Mann
4a93f5e53d
convolver buffer setter
2015-02-23 00:28:07 -05:00
Yotam Mann
adb80fe792
update to new Transport API
2015-02-23 00:27:37 -05:00
Yotam Mann
3e358536dd
methods return this
2015-02-21 14:06:58 -05:00
Yotam Mann
f8b2261b3a
new signal syncing API
2015-02-21 14:06:27 -05:00
Yotam Mann
c52d61deaf
moved syncing to Transport
2015-02-21 14:05:58 -05:00
Yotam Mann
012b1c28f3
es5 getter/setter on Transport
2015-02-21 14:05:12 -05:00
Yotam Mann
af855b3f55
player does not retrigger by default
2015-02-20 01:01:03 -05:00
Yotam Mann
46b03f2180
forward arguments to voice constructor
2015-02-20 01:00:32 -05:00
Yotam Mann
baba517f09
unmuting the output returns previous value
2015-02-20 00:58:29 -05:00
Yotam Mann
c824b023eb
updated to new signal api with connections
2015-02-20 00:53:39 -05:00
Yotam Mann
26d0bcd10e
pulseoscillator width gate
2015-02-20 00:53:03 -05:00
Luke Phillips
b545692c09
Noise can setPlayback
2015-02-17 19:58:47 +00:00
Yotam Mann
0ae0d60419
safety checks on set
2015-02-17 11:07:34 -05:00
Yotam Mann
4a3d443936
throws error when not valid filter type
2015-02-17 00:58:17 -05:00
Yotam Mann
b224499df3
fixed bug in pingpongdelay
2015-02-13 16:10:45 -05:00
Yotam Mann
3d1ba46e4c
fixed bug in fan
method
2015-02-13 16:09:49 -05:00
Yotam Mann
531836c42c
this._scalar.gain -> this._value
2015-02-13 10:52:38 -05:00
Yotam Mann
c0f87b1202
volume control in decibels
2015-02-11 23:10:14 -05:00
Yotam Mann
b5ddc8203e
using bind
instead
2015-02-11 23:10:04 -05:00
Yotam Mann
89495c8635
fixing follower error
2015-02-11 23:09:20 -05:00
Yotam Mann
54bc36cb98
clean up.
2015-02-11 23:08:53 -05:00
Yotam Mann
cbcbdf11b1
fixing attack/release time values
2015-02-11 16:44:50 -05:00
Yotam Mann
baf00519fa
crossfade is now equalPower
2015-02-11 15:28:33 -05:00
Yotam Mann
35ca46e811
removing static annotation.
2015-02-11 14:38:10 -05:00
Yotam Mann
e74cfdf41e
added amplitude to LFO
2015-02-11 14:37:48 -05:00
Yotam Mann
8f77745a6b
only convert when setting.
2015-02-11 14:37:36 -05:00
Yotam Mann
6b36cf13ef
fully migrated to new Signal API
2015-02-10 16:45:05 -05:00
Yotam Mann
5cf420838e
updated to new API
2015-02-10 16:44:27 -05:00
Yotam Mann
86be033f31
rampTime defaults to 0
2015-02-10 16:33:55 -05:00
Yotam Mann
da2c77acd2
added pitch parameter
2015-02-10 16:33:37 -05:00
Yotam Mann
51622a1272
renaming rate to frequency
2015-02-10 16:33:18 -05:00
Yotam Mann
9be7113fff
added setDelayTimeAtTime to allow for note timing
...
the note timing is used in Tone.PluckSynth
2015-02-10 12:04:57 -05:00
Yotam Mann
110afb7531
deprecated Tone.Recorder
...
using it just for testing
2015-02-10 12:02:48 -05:00
Yotam Mann
e1bdfdc8ef
return this
in Core
2015-02-10 11:41:14 -05:00
Yotam Mann
afb913aec6
Tone.Frequency typedef
2015-02-10 11:40:42 -05:00
Yotam Mann
532edf7bfb
ES5 getter/setter on effects
2015-02-10 11:40:27 -05:00
Yotam Mann
9e9321e936
ES5 getter/setter on instruments
2015-02-10 11:40:04 -05:00
Yotam Mann
a8619a95b6
clarifying Signal.Units enum
2015-02-10 11:37:36 -05:00
Yotam Mann
f61eff011b
incorporating playbackRate into player
...
can’t be an Tone.Signal yet because of a Blink bug
2015-02-10 11:37:11 -05:00
Yotam Mann
26ff8d756e
clean up source on dispose
2015-02-10 11:36:36 -05:00
Yotam Mann
b1ba37d8d6
migrating components to ES5 getter/setter
2015-02-06 17:49:04 -05:00
Yotam Mann
50917ac49f
migrating signals to ES5 getter/setters
2015-02-06 17:47:26 -05:00
Yotam Mann
e713c6d2ce
Normal and Audio range signals
2015-02-04 10:29:25 -05:00
Yotam Mann
3bc48cbb75
moving loaded flag to 'set' method
2015-02-04 10:16:49 -05:00
Yotam Mann
9c3aa24426
using new setter/getter in core
2015-02-04 10:16:33 -05:00
Yotam Mann
66f524eae6
frequency signal units
2015-02-04 10:15:25 -05:00
Yotam Mann
88bb77ba69
getter/setter on playbackRate
...
for now playbackRate will be just a number until i can get the signal
connection of playbackRate to work across browser.
2015-02-04 10:15:06 -05:00
Yotam Mann
2dbacd3310
added decibels volume control to sources
2015-02-04 10:11:10 -05:00
Yotam Mann
b0b572f113
Using ES5 getter/setter
2015-02-04 10:10:34 -05:00
Yotam Mann
e7f9595ac8
Signal accepts units and an AudioParam
...
passing in an AudioParam allows that AudioParam to be synced to the
Transport and use the unit conversions of the Signal class.
2015-02-04 00:36:18 -05:00
Yotam Mann
914123b9d1
using only ES5 getter/setters
...
replacing old getThing and setThing starting with Oscillators
2015-02-03 23:48:47 -05:00
Yotam Mann
5e9a3981e0
instrument methods return this
2015-02-02 13:30:36 -05:00
Yotam Mann
754a9b77ca
effects' methods return this
2015-02-02 13:22:16 -05:00
Yotam Mann
fe93152920
signal value setters/getters
2015-02-02 12:50:18 -05:00
Yotam Mann
0fa6b6cdaf
components' methods return this
2015-02-02 12:49:13 -05:00
Yotam Mann
11ef065861
renamed DryWet to CrossFade
2015-02-02 12:48:04 -05:00
Yotam Mann
ee8c2cd43f
using isFunction method
2015-02-02 09:41:32 -05:00
Yotam Mann
bda90701d6
all Signals return this
2015-02-01 22:56:33 -05:00
Yotam Mann
362afb32eb
returning to public dispose method
2015-02-01 22:05:24 -05:00
Yotam Mann
dd57603003
loaded flag
2015-02-01 21:32:49 -05:00
Yotam Mann
7d30c7784b
moving state management to Source
2015-02-01 21:32:07 -05:00
Yotam Mann
e96fb08c44
moved onended in Tone.Source
2015-02-01 20:38:06 -05:00
Yotam Mann
0429548703
small optimization in getter/setter
2015-02-01 20:37:40 -05:00
Yotam Mann
0551f451d0
getter/setter and new dispose
2015-02-01 20:02:54 -05:00
Yotam Mann
fc20586939
getVolume
2015-02-01 20:02:38 -05:00
Yotam Mann
632baf2862
new dispose method and getter/setter
2015-02-01 20:02:30 -05:00
Yotam Mann
650458fafd
new dispose and get/set api
...
integrated new API on sources
2015-02-01 20:02:13 -05:00
Yotam Mann
9070b13c89
ES5 add getter/setter method
2015-02-01 15:48:20 -05:00
Yotam Mann
251a1e02a5
phase get/set for each of the extended oscillators
2015-02-01 15:47:31 -05:00
Yotam Mann
9eee63459a
all sources return this
...
good for chaining methods
2015-02-01 14:40:47 -05:00
Yotam Mann
db0250e054
set loop boundaries after started
...
Fixes #49
2015-02-01 13:42:51 -05:00
Yotam Mann
b6875955e4
add type getter/setter
2015-02-01 13:32:39 -05:00
Yotam Mann
8a9f5a9ce9
updating docs
2015-02-01 13:32:02 -05:00
Luke Phillips
b40ce6ba8c
getters for player.js
2015-01-25 18:45:19 +00:00
Luke Phillips
1f52e24c95
MultibandEQ setters and getters
2015-01-22 13:24:10 +00:00
Luke Phillips
7dad7adfa7
getGain() for Filter class
2015-01-21 09:15:39 +00:00
Luke Phillips
ea5febc95a
DryWet getDry and getWet
2015-01-21 09:07:14 +00:00
Luke Phillips
a99325b01a
DryWet getter function description added
2015-01-20 21:08:26 +00:00
Luke Phillips
4c93abb315
DryWet getter functions added
2015-01-20 21:06:38 +00:00
Luke Phillips
c0ba518f30
MultibandEQ getter functions
2015-01-20 14:03:58 +00:00
Luke Phillips
16ee304d48
Chebyshev getter functions
2015-01-20 13:55:28 +00:00
Luke Phillips
ab6710e0b1
WaveShaper getter functions
2015-01-20 13:50:51 +00:00
Luke Phillips
a7e4e316c1
Source getter functions
2015-01-20 13:48:54 +00:00
Luke Phillips
4cdd3a30da
Filter getter functions
2015-01-20 13:45:12 +00:00
Luke Phillips
a48c7a759d
Envelope getter functions
2015-01-20 13:41:48 +00:00
Luke Phillips
96dab0cdcc
StereoWidener getter functions
2015-01-20 13:38:08 +00:00
Luke Phillips
b22804a06f
StereoWidener getter functions
2015-01-20 13:36:57 +00:00
Luke Phillips
3ec811b2b7
PingPongDelay getter functions
2015-01-20 13:35:11 +00:00
Luke Phillips
c5695f3efd
Phaser getter functions
2015-01-20 13:33:50 +00:00
Luke Phillips
7faee048c8
JCReverb getter functions
2015-01-20 13:30:36 +00:00
Luke Phillips
55a7c628a6
Freeverb getter functions
2015-01-20 13:29:37 +00:00
Luke Phillips
67dbaf203b
FeedbackEffect getter functions
2015-01-20 13:17:33 +00:00
Luke Phillips
49a2a6a37e
FeedbackDelay getter functions
2015-01-20 13:15:56 +00:00
Luke Phillips
a5d6ae61dc
Distortion getter functions
2015-01-20 13:11:43 +00:00
Luke Phillips
0717c194ae
BitCrusher getter functions
2015-01-20 13:05:27 +00:00
Luke Phillips
782d7731cf
AutoPanner getter functions
2015-01-20 13:00:23 +00:00
Luke Phillips
b584ea242e
Pow getter functions
2015-01-20 12:50:31 +00:00
Luke Phillips
cc829b2327
ScaleExp getter functions
2015-01-20 12:49:08 +00:00
Luke Phillips
20bbfd85ed
Scale getter functions
2015-01-20 12:46:37 +00:00
Luke Phillips
c670988f6b
AutoWah getter functions
2015-01-20 12:42:31 +00:00
Luke Phillips
b11f86be7c
Oscillator getter functions
2015-01-20 12:33:07 +00:00
Luke Phillips
bc7c76998b
LFO getter functions
2015-01-20 12:31:28 +00:00
Luke Phillips
1371f2522a
Chorus getter functions
2015-01-20 12:30:31 +00:00
Luke Phillips
e651a6a62e
set functions for bitcrusher
2015-01-18 16:09:31 +00:00
Luke Phillips
dca25ae204
fixed sensitivity error
2015-01-14 14:06:54 +00:00
Yotam Mann
2e15f03490
Revert Tone.Volume representation
2015-01-05 23:33:05 -05:00
Yotam Mann
177b096f55
moved isFrequency to Tone
2015-01-05 22:46:38 -05:00
Yotam Mann
a60ec836db
migrating to Tone.Volume representation
2015-01-05 22:46:19 -05:00
Yotam Mann
d659e923bb
Tone.Volume representation
...
accepts db as strings like “6db”
2015-01-05 22:45:24 -05:00
Yotam Mann
49883947de
putting the onload callback back in player
...
at least for now…
2015-01-05 21:55:57 -05:00
Yotam Mann
b825e55385
deprecating Tone.MultiSampler
2015-01-05 21:49:56 -05:00
Yotam Mann
22d29c42e3
removing onload callbacks
...
fits better into the Tone.Buffer.onload scheme
2015-01-05 21:49:21 -05:00
Yotam Mann
f986b32849
Sampler can load many samples
...
choose which sample plays in the triggerAttack method
2015-01-05 21:48:03 -05:00
Yotam Mann
a965c520f0
make buffer private
...
reset download count after the download is complete
2015-01-05 21:47:07 -05:00
Yotam Mann
3c2d962715
renamed onend to onended
2015-01-04 22:25:16 -05:00
Yotam Mann
693d96b1b7
Clock uses setTimeout to invoke onended
...
the native onended is too flakey. addresses #48
2015-01-04 22:19:33 -05:00
Yotam Mann
080b8f5854
updated Player and Convolver with new Buffer
2015-01-04 21:46:10 -05:00
Yotam Mann
c11d66f2c3
Tone.Buffer has static progress and load event
2015-01-04 20:59:08 -05:00
Yotam Mann
3a0845f009
sync/unsync the LFO
2014-12-19 16:40:06 -05:00
Yotam Mann
f1cbd96f98
sync/unsync the frequency
2014-12-19 16:39:50 -05:00
Yotam Mann
9ed92b7af0
removing unneeded disposes
2014-12-19 16:33:43 -05:00
Yotam Mann
cc26f35e57
master send/receive
...
master effects chain
2014-12-19 16:32:59 -05:00
Yotam Mann
6ddf1b372f
single 'setVolume' definition in Master
2014-12-19 16:27:50 -05:00
Yotam Mann
3316ea381f
StereoEffect deps clean up
2014-12-19 12:21:02 -05:00
Yotam Mann
62dbec1937
Distortion setter
2014-12-19 12:20:47 -05:00
Yotam Mann
9e140a7605
Fixing/testing microphone dispose method
...
Fixes #46
2014-12-19 12:20:26 -05:00
Luke Phillips
9b4e69eaed
added MultibandEQ
2014-12-17 14:22:58 +00:00
Luke Phillips
e6caa81479
don't crash if user deny's microphone stream
2014-12-16 17:55:08 +00:00
Luke Phillips
8fafb3d20b
microphone disconnect error
2014-12-15 17:08:14 +00:00
Yotam Mann
a730873ff1
Threshold - removing deprecated
2014-12-09 15:02:36 -05:00
Yotam Mann
de707f1838
volume gets set right away
2014-12-08 11:03:47 -05:00
Yotam Mann
202c84c0ec
making voices public
2014-12-08 11:03:20 -05:00
Yotam Mann
ba445538f2
using AudioToGain instead of Expr
2014-12-08 11:03:10 -05:00
Yotam Mann
e1ce5f54a9
default args
2014-12-08 11:02:55 -05:00
Yotam Mann
63876cafe2
LFO, changing 'rate'->'frequency'
2014-12-08 11:02:47 -05:00
Yotam Mann
daf428b23b
fixed velocity bug
2014-12-08 11:02:22 -05:00
Yotam Mann
3b7b7b5423
fixed bus infinite recursion.
2014-12-08 00:44:40 -05:00
Yotam Mann
ba90b842a1
Envelope no longer has an exponent
2014-12-06 16:48:57 -05:00
Yotam Mann
f7a14f2b37
all frequency values accept a note name as well
2014-12-06 16:48:36 -05:00
Yotam Mann
908ae686f2
ramp exponential won't go below some small value
2014-12-06 16:47:48 -05:00
Yotam Mann
bf325680a6
started r4-dev
2014-12-03 23:04:56 -05:00
Yotam Mann
f79ccd9825
release candidate 3
2014-12-03 22:41:56 -05:00
Yotam Mann
809dc99091
no feedback in phaser
2014-12-03 22:24:36 -05:00
Yotam Mann
c2d320ce8d
renamed MidSide -> MidSideEffect
2014-12-03 22:11:23 -05:00
Yotam Mann
cd31d02048
jsdoc'ing
2014-12-03 21:38:24 -05:00
Yotam Mann
da014bf954
better presets
2014-12-03 21:37:58 -05:00
Yotam Mann
db544d20c4
using markdown instead of example tag
2014-12-03 17:25:34 -05:00
Yotam Mann
1b9cc1483b
jsdoc'ing
2014-12-03 17:20:23 -05:00
Yotam Mann
902f1fa24d
updating Envelope ADR types
2014-12-02 10:39:19 -05:00
Yotam Mann
2d0bcffc9f
adding defaults to jsdocs
2014-12-02 01:42:08 -05:00
Yotam Mann
0a944516af
doc tweaks
2014-12-02 00:27:28 -05:00
Yotam Mann
398f2bcce2
jsdoc tweak
2014-12-02 00:08:44 -05:00
Yotam Mann
a7dbac68bb
optimizing input/output
...
also subclass of Tone.SignalBase
2014-11-30 23:26:42 -05:00
Yotam Mann
ce0d5f3597
signals inherit from a signal base class
2014-11-30 23:26:06 -05:00
Yotam Mann
c8478192e1
get the time till the next beat
...
useful for the eventual quantization
2014-11-30 22:40:07 -05:00
Yotam Mann
25496dea77
switched to updated chain method
2014-11-30 21:32:09 -05:00
Yotam Mann
efe69616bd
changing presets
2014-11-30 21:20:22 -05:00
Yotam Mann
152f0cdda5
using updated fan method
2014-11-30 21:20:12 -05:00
Yotam Mann
7fcddeb000
removed feedback from phaser
2014-11-30 21:18:58 -05:00
Yotam Mann
c5da40969e
chain and fan methods use 'this' nodes output
2014-11-30 17:46:09 -05:00
Yotam Mann
9498d6af3c
boost Tone.Pow resolution
2014-11-30 17:42:02 -05:00
Yotam Mann
cf2cb263b2
chain -> connectSeries, fan -> connectParallel
2014-11-30 17:37:29 -05:00
Yotam Mann
d1839dc1b6
output is 0 when input is 0
2014-11-30 17:36:56 -05:00
Yotam Mann
cd4121ef41
removed feedback divisor
...
Fixes #42
2014-11-30 17:17:50 -05:00
Yotam Mann
597d07510e
NoiseSynth added triggerAttackRelease
2014-11-30 14:53:54 -05:00
Yotam Mann
a25c106565
removing unnecessary comments
2014-11-30 14:53:32 -05:00
Yotam Mann
310231dbd1
using Tone.WaveShaper instead of native node
2014-11-30 13:20:35 -05:00
Yotam Mann
ae24c8272d
Tone.WaveShaper abstraction on WaveShaperNode
2014-11-30 13:16:20 -05:00
Yotam Mann
ab28ad9a99
NoiseSynth
2014-11-29 22:03:28 -05:00
Yotam Mann
e32386da79
MonoSynth dispose cleanup
2014-11-29 21:55:38 -05:00
Yotam Mann
ffd5ac875a
LFO has a defaults object
2014-11-29 21:54:29 -05:00
Yotam Mann
574c75f7c6
Tone.Limiter is a compressor with limiter settings
2014-11-29 21:47:28 -05:00
Yotam Mann
09f4b5fdf8
Normalize an input range to 0,1
2014-11-29 21:37:21 -05:00
Yotam Mann
5fdc2cfd38
updated to new Tone.Scale API
2014-11-29 21:36:32 -05:00
Yotam Mann
d3bb514dde
Scale and ScaleExp scale from gain range only
2014-11-29 21:18:04 -05:00
Yotam Mann
15c33fdecd
Scale a gain to an equal power scale
2014-11-29 20:32:33 -05:00
Yotam Mann
b67c187caa
map audio range to gain range
2014-11-29 20:30:52 -05:00
Yotam Mann
2b22bfac31
updating dependencies
2014-11-24 18:51:35 -05:00
Yotam Mann
4948fde652
the filter envelope is not optional
...
#41
2014-11-11 15:24:34 -05:00
Yotam Mann
aa2f1fc2ef
cleaning up the constructor - Expr
2014-11-09 10:57:34 -05:00
Yotam Mann
0a442a2608
oscillator accepts Tone.Time as frequency
2014-11-09 10:57:14 -05:00
Yotam Mann
4587420071
some deps cleanup
2014-11-09 10:56:55 -05:00
Yotam Mann
f1593c1a29
new class PanVol. combined Pan and Vol
...
useful for making stereo mixer-type things
2014-11-04 01:27:36 -05:00
Yotam Mann
7e09fc6931
small reorganization
2014-11-04 01:24:24 -05:00
Yotam Mann
adcf3a0c74
small object count optimization
2014-11-04 01:23:59 -05:00
Yotam Mann
dcfac108eb
using Tone constructor in signal classes
2014-11-04 01:21:42 -05:00
Yotam Mann
484a7bf47d
Tone constructor accepts input/output num as param
2014-11-04 01:01:57 -05:00
Yotam Mann
f7a0590ec5
optimizing comb filters
...
also trying to get them to crash less often. (i think it worked)
2014-11-04 00:46:31 -05:00
Yotam Mann
13f091e43e
Using ScaledEnvelope for filter envelope
2014-11-04 00:44:59 -05:00
Yotam Mann
4272e051ee
created ScaledEnvelope as its own class
...
factors out the scaling from the amplitude env and normal envelope
2014-11-04 00:44:16 -05:00
Yotam Mann
043172df7c
keeping reference to Float32Array
...
potentially causing crashes (trying to debug)
2014-11-03 19:22:17 -05:00
Yotam Mann
58338bef23
removing Mono from stereo effect
...
(will need to run single channel signals through a panner or mono node
if connecting to stereo effect)
2014-11-03 11:45:33 -05:00
Yotam Mann
10099e6f6d
Sampler: exponential scaling on filterEnv
2014-11-03 11:44:12 -05:00
Yotam Mann
7ab00d1760
cleaning up AMSynth and testing
2014-11-03 11:43:42 -05:00
Yotam Mann
d0bcc2f931
max delay time on feedback comb filter
2014-11-03 11:34:02 -05:00
Yotam Mann
3d9639b48a
tiny bit of clean up
2014-11-01 22:00:36 -04:00
Yotam Mann
48181f140b
new instrument AMSynth
2014-11-01 21:56:23 -04:00
Yotam Mann
fe9a87daa3
using exponential scaling for frequencyEnvelope
2014-11-01 21:55:59 -04:00
Yotam Mann
d3866bcf51
using new Envelope internals
2014-11-01 21:55:19 -04:00
Yotam Mann
bf20552449
using new string replacement syntax
2014-11-01 21:54:53 -04:00
Yotam Mann
a830f4b711
handles exponential scaling
2014-11-01 21:54:40 -04:00
Yotam Mann
5c3cdab7cc
does string replacements
2014-11-01 21:53:36 -04:00
Yotam Mann
56791f2ef2
pow is just a waveshapercurve
2014-11-01 21:53:14 -04:00
Yotam Mann
4f6d04498a
using Pow and optimizing nodes
2014-11-01 21:52:49 -04:00
Yotam Mann
7a8c8d168b
Merge branch 'expr' into dev
...
Conflicts:
.gitignore
CHANGELOG.md
Tone/signal/Modulo.js
test/tests/Effect.js
2014-11-01 18:34:22 -04:00
Yotam Mann
680b2cd8ee
MidSide and StereoWidener
2014-11-01 18:17:03 -04:00
Yotam Mann
21a0b84137
including Pow and Divide
2014-11-01 16:18:23 -04:00
Yotam Mann
6362b59725
fixed connect method bug non-array multiple ins
2014-11-01 16:18:07 -04:00
Yotam Mann
264c56a343
small dry/wet optimization
2014-11-01 16:17:27 -04:00
Yotam Mann
c454357fd7
small modulo optimization
2014-11-01 16:16:27 -04:00
Yotam Mann
866bb5cd65
simplified BitCrusher further
2014-11-01 16:16:14 -04:00
Yotam Mann
ef4692789e
Tone.Divide division
2014-10-30 21:34:53 -04:00
Yotam Mann
77559a4264
Tone.Inverse multiplicative inverse of a number
2014-10-30 21:34:34 -04:00
Yotam Mann
3a6261c9b9
Tone.Pow exponential
2014-10-30 21:34:11 -04:00
Yotam Mann
36f4a85582
connect method from Tone.Signal
2014-10-30 19:48:53 -04:00
Yotam Mann
7f4b873aa8
Follower uses subtract
2014-10-30 19:44:05 -04:00
Yotam Mann
2a65eb3ce7
rewrote floor in BitCrusher with Expr
2014-10-30 18:06:13 -04:00
Yotam Mann
79e4c1c9fc
refactored Expr
...
put regexp all in one place and function callbacks all in one place
2014-10-30 17:04:15 -04:00
Yotam Mann
9d41f7aa3d
handles multiple inputs
2014-10-30 01:05:17 -04:00
Yotam Mann
47a5e2d962
bug fixes
2014-10-30 01:04:49 -04:00
Yotam Mann
e19e0cea30
first Expr version
...
aggregate signal processing expression
2014-10-29 23:56:08 -04:00
Yotam Mann
ba7ead9581
Envelope -> AmplitudeEnvelope in MonoSynth
2014-10-28 14:51:22 -04:00
Yotam Mann
76c596ca31
Fixed whitespace problem with toSeconds
2014-10-25 11:57:00 -04:00
Yotam Mann
e1d27c5525
Convolver style and formatting
2014-10-23 11:42:41 -04:00
Yotam Mann
477eef29c7
making distortion curve length smaller
...
trying to fix occasional crashes in chrome.
2014-10-23 11:42:07 -04:00
Yotam Mann
f36b185517
rearranging dispose methods for readability
2014-10-23 11:41:38 -04:00
Yotam Mann
98ef0e8fae
making mod curve smaller
2014-10-23 11:41:15 -04:00
Yotam Mann
4766f5a27f
Transport loops when greater than the loopEnd
...
used to be just equal to. caused bugs sometimes.
2014-10-23 00:24:02 -04:00
Yotam Mann
0bea209d68
simplify buffer constructor
2014-10-22 22:27:21 -04:00
Yotam Mann
e1ba3a4487
returns an array when given an array
2014-10-22 22:27:01 -04:00
Yotam Mann
3b10b93eca
Merge pull request #39 from indefinit/unicode-fix
...
Unicode fix
2014-10-22 21:55:21 -04:00
Yotam Mann
0fce1bf624
Modulo small doc changes.
2014-10-22 21:52:42 -04:00
Yotam Mann
7ae56f179c
Equal accepts two signals.
2014-10-22 21:26:10 -04:00
Yotam Mann
0a68826768
LessThan accepts two signals
2014-10-22 21:25:28 -04:00
Yotam Mann
8b58bd0a9b
Greater than compares two signals
2014-10-22 21:24:40 -04:00
Yotam Mann
de194f24c3
min and max accept two signals
2014-10-22 21:23:47 -04:00
Yotam Mann
fcba9bd62a
multiply handles two signals
2014-10-22 21:20:43 -04:00
Yotam Mann
23eaf83935
handles summing two signals
...
or a signal and a number.
2014-10-22 21:19:04 -04:00
Yotam Mann
7f7e093a4b
Subtract class
...
subtract a signal and a number or a signal and a signal
2014-10-22 21:17:29 -04:00
Kevin Siwoff
054d5ff2e8
fixes buffer initialization in Player.js
2014-10-22 18:24:58 -04:00
Kevin Siwoff
1422a544f9
adds Convolver class, IR, and convolver example
2014-10-22 17:58:03 -04:00
Kevin Siwoff
b45c983152
updates player class and build for Buffer
2014-10-21 14:55:29 -04:00
Kevin Siwoff
d71f83c8fd
adds new Buffer class to core
2014-10-21 14:44:02 -04:00
Yotam Mann
167d989828
using bufferTime in Follower
2014-10-19 22:07:18 -04:00
Yotam Mann
68dea5880a
3 band compressor
2014-10-19 21:55:55 -04:00
Yotam Mann
fdae3c0b5b
thin DynamicsCompressorNode wrapper
2014-10-19 21:55:18 -04:00
Yotam Mann
425bca36ad
Chebyshev effect
...
applies Chebyshev wave shaper to incoming signal.
2014-10-19 19:39:50 -04:00
Yotam Mann
918be69c6c
connectEffect switched to internal
2014-10-19 17:56:41 -04:00
Yotam Mann
6317e02a67
Distortion effect
2014-10-19 17:54:30 -04:00
Yotam Mann
e28f77a683
PolySynth accepts an array of notes for attack/release
2014-10-19 16:17:40 -04:00
Yotam Mann
4a4da6c85b
use MasterConstructor on init
2014-10-19 16:08:40 -04:00
Yotam Mann
9f827a8dad
short delay to avoid clicks on change OmniOsc type
2014-10-16 14:52:08 -04:00
Yotam Mann
f913c50241
precompute the bufferTime for a single frame
...
still need to figure out how to find the frame size
2014-10-16 14:51:25 -04:00
Kevin Siwoff
f784f5585f
adds Buffer class, refactors Player class to use new Buffer member
2014-10-16 14:48:23 -04:00
Yotam Mann
3eba6e58a4
optimizing initial script loading
2014-10-16 00:49:31 -04:00
Yotam Mann
eb07e84a6e
simplified internals of IfElseThen
...
changes API slightly because false is 0 and not != 1
2014-10-13 19:24:06 -04:00
Yotam Mann
7277a7eb68
wrote Min and Max with IfThenElse
...
makes the internals much more readable
2014-10-13 19:22:11 -04:00
Yotam Mann
baf1f0162a
enforce min time on Tone.Follower
2014-10-13 19:21:34 -04:00
Yotam Mann
d1cf785350
some jsdoc notes on Meter and Recorder
2014-10-13 17:31:07 -04:00
Yotam Mann
4ccc0e08e7
ability to set rolloff of autowah
2014-10-13 17:16:10 -04:00
Yotam Mann
4f9850d315
disconnect method handles output arrays
2014-10-13 15:58:21 -04:00
Yotam Mann
05b2415fa6
wrote EQ in terms of MutibandSplit
2014-10-13 15:58:06 -04:00
Yotam Mann
757c114ede
new class MultibandSplit
...
splits incoming signal into low/mid/high frequency bands
2014-10-13 15:57:53 -04:00
Yotam Mann
a4cc79cfde
stopped state doesn't wait for on ended event
...
the oneneded event is inconsistent when the source is not connected
directly to Master (such as in the case of an LFO).
Fixes #34
2014-10-08 11:59:31 -04:00
Yotam Mann
231d803848
IfThenElse class
...
convenience on using the selector for signal switching logic.
2014-10-03 17:20:35 -04:00
Yotam Mann
fe96656d2a
AND and OR classes
...
Fixes #22
2014-10-03 17:20:00 -04:00
Yotam Mann
7972f0db34
Pulse, PWM, and Omni extend Oscillator
2014-10-03 16:07:30 -04:00
Yotam Mann
a8e156fcaf
made Oscillator.oscillator _private
2014-10-03 16:06:42 -04:00
Yotam Mann
4eaa4f75df
es5 getter/setter on Tone.Signal value
...
#33
2014-10-03 15:50:21 -04:00
Yotam Mann
2daa8c64ad
Oscillators inherit Tone.Oscillator setFrequency
2014-10-03 15:16:32 -04:00
Yotam Mann
e2c0e47f2f
Noise getType method
2014-10-03 14:54:09 -04:00
Yotam Mann
0270b3c9e0
deprecating Tone.Threshold
2014-10-03 13:07:53 -04:00
Yotam Mann
f94034345d
rewrote GreaterThan and LessThan in terms of GreaterThanZero
2014-10-03 13:07:26 -04:00
Yotam Mann
93eace9694
new GreaterThanZero class
...
Fixes #20 . Also deprecates the need for Tone.Threshold
2014-10-03 13:06:26 -04:00
Yotam Mann
b310136dee
JCReverb: constructor takes room size as parameter
2014-10-03 11:34:47 -04:00
Yotam Mann
1ed4f5288c
allowing for loopEnd to be a Tone.Time
2014-10-03 01:00:48 -04:00
Yotam Mann
02c21fed73
switches types without a pop
2014-10-03 01:00:37 -04:00
Yotam Mann
35bdca0568
default Player loop is still the end of the file
2014-10-02 18:58:24 -04:00
Yotam Mann
666d8f96c1
removed reference to global 'define' with build
...
gets rid of the problem of having the global ‘define’ left defined in
the window which may have adverse effects on other AMD shim modules.
2014-10-02 18:55:24 -04:00
Yotam Mann
d1d155f58d
envelope stays tempo relative until triggered
2014-10-02 13:23:04 -04:00
Yotam Mann
93d9dd24c0
can start the transport at a specific offset
2014-10-02 13:22:44 -04:00
Yotam Mann
d743e1eb17
reveals player attributes through set in Sampler
...
and through the constructor options object
2014-10-02 13:22:29 -04:00
Yotam Mann
7d26a67910
loop attributes can be passed in options object
...
also attributes can remain tempo relative. #27
2014-10-02 13:21:22 -04:00
Yotam Mann
bb17651349
MultiSampler accepts the sample names as numbers
2014-10-02 13:16:17 -04:00
Yotam Mann
527ce958cf
cleaning up PingPongDelay
2014-10-02 13:15:38 -04:00
Yotam Mann
30e71b1c82
Added pre delay in left channel
...
Fixes #32
2014-10-01 19:45:30 -04:00
Yotam Mann
0233abf40e
cool color console printing
2014-10-01 14:48:05 -04:00
Yotam Mann
ef80d1e81c
light styling.
2014-10-01 14:47:45 -04:00
Yotam Mann
d3f9834ca0
typo in Noise
2014-10-01 00:55:31 -04:00
Yotam Mann
ff57f046f3
synths use OmniOscillator
2014-09-30 22:49:48 -04:00
Yotam Mann
f5ff008170
changing Oscillator JSON description
2014-09-30 22:49:17 -04:00
Yotam Mann
452983920f
using OmniOscType enum type
2014-09-30 22:48:21 -04:00
Yotam Mann
14d254fd97
altering default values
2014-09-30 22:48:00 -04:00
Yotam Mann
be4f132aef
changed load to unload in Sampler
2014-09-30 00:29:02 -04:00
Yotam Mann
18bab7da59
setters and options objects for Sources
...
Fixes #27
2014-09-30 00:28:48 -04:00
Yotam Mann
1e7f46ff61
jsdoc addition 'const'
2014-09-29 23:45:31 -04:00
Yotam Mann
23128469ca
combination oscillator class
2014-09-29 23:44:59 -04:00
Yotam Mann
014c5e5db2
new PWMOscillator class
2014-09-29 23:44:43 -04:00
Yotam Mann
c67468cab6
PulseOscillator setters
2014-09-29 23:44:35 -04:00
Yotam Mann
1dcaccdb4c
defaults to loopStart offset if offset is not given
2014-09-29 23:44:15 -04:00
Yotam Mann
0c6383c49c
change swing to default to 16th note
2014-09-29 23:42:56 -04:00
Yotam Mann
704593b655
swing control on the Transport
2014-09-24 23:46:57 -04:00
Yotam Mann
c569670689
setters on the PluckSynth
2014-09-24 23:43:44 -04:00
Yotam Mann
26d2e1ef59
making a note of where methods get defined.
...
makes it easier to know which files to include.
2014-09-24 23:43:10 -04:00
Yotam Mann
2e753b80dc
renamed Tone.Not -> Tone.NOT
...
much clearer this way.
2014-09-24 14:44:56 -04:00
Yotam Mann
a99ff1d48e
removed Tone.Not
...
renaming it Tone.NOT
2014-09-24 14:44:01 -04:00
Yotam Mann
d99de46c26
started r3-dev version.
2014-09-24 14:43:11 -04:00
Yotam Mann
04359f6dbb
documenting Tone.Not
2014-09-23 22:23:58 -04:00
Yotam Mann
e0228e38d8
jsdoc tweaks
2014-09-23 22:07:16 -04:00
Yotam Mann
4427463013
release candidate 2
2014-09-23 21:57:32 -04:00
Yotam Mann
b59978d5fa
note<-->midi methods
2014-09-21 15:18:04 -04:00
Yotam Mann
6fc65ff1a3
added options object to freeverb
2014-09-21 14:43:38 -04:00
Yotam Mann
eacfce111c
new class JCReverb
...
John Chowning
2014-09-21 13:39:18 -04:00
Yotam Mann
2205375f40
some free verb presets
2014-09-21 13:38:54 -04:00
Yotam Mann
c7f7fbd31b
fixed deps and description
...
used to say AutoWah incorrectly.
2014-09-21 13:38:43 -04:00
Yotam Mann
71dd2b11c0
Freeverb setters
2014-09-21 13:38:13 -04:00
Yotam Mann
176cd0d563
fixed AutoWah deps
2014-09-21 13:38:00 -04:00
Yotam Mann
2cabd2bd3e
new class FeedbackCombFilter
2014-09-21 13:37:45 -04:00
Yotam Mann
f8ae02b5f9
made Mono into it's own component
2014-09-21 13:37:08 -04:00
Yotam Mann
9fb1f4d637
Freeverb implementation
...
with simple test
2014-09-20 21:19:06 -04:00
Yotam Mann
018498b22a
start out with the min delay time
2014-09-20 21:18:37 -04:00
Yotam Mann
007c1f0bbd
gain reduction to compensate for the signal split
...
otherwise the volume is doubled
2014-09-20 21:18:20 -04:00
Yotam Mann
b4d2ad9bc7
put bufferSize back to 2048
...
need a solution where i can determiner he buffer size of the sound
card.
2014-09-20 21:17:24 -04:00
Yotam Mann
4f3cca312f
instrument has Note as a dep
2014-09-20 19:24:12 -04:00
Yotam Mann
817a7a7d40
extends Instrument
2014-09-20 19:24:04 -04:00
Yotam Mann
d42cf9d698
filled out dispose method
2014-09-20 19:23:41 -04:00
Yotam Mann
198678d06b
Monophonic extends Instrument
2014-09-20 19:23:28 -04:00
Yotam Mann
49341e2eae
lowered buffer size
2014-09-20 19:23:07 -04:00
Yotam Mann
f076dec1e1
fixed dispose method
2014-09-20 19:22:35 -04:00
Yotam Mann
39f5e808f6
MultiSampler uses new Sampler interface
...
also extends Instrument
2014-09-20 18:58:02 -04:00
Yotam Mann
5059786389
Sampler extends Instrument
2014-09-20 18:57:44 -04:00
Yotam Mann
d6a2991526
Sampler attack accepts a note value in semitones
...
also using AmplitudeEnvelope.
2014-09-20 18:47:07 -04:00
Yotam Mann
1306d45884
PluckSynth uses LowpassCombFilter
2014-09-20 18:06:52 -04:00
Yotam Mann
760c397bfd
new class LowpassCombFilter
2014-09-20 18:06:41 -04:00
Yotam Mann
efd2def64b
triggerAttackRelease on Envelope
2014-09-20 15:18:36 -04:00
Yotam Mann
d612dd8705
AmplitudeEnvelope
...
new class
2014-09-20 15:18:08 -04:00
Yotam Mann
d9fa029569
Karplus-Strong first commit
2014-09-17 00:21:04 -04:00
Yotam Mann
65b0b5c660
Instrument base-class
2014-09-17 00:19:30 -04:00
Yotam Mann
603bc03d62
deferring on clock tick
...
to not block the audio thread
2014-09-15 21:45:31 -04:00
Yotam Mann
dff5852607
greater than equal to on threshold.
2014-09-14 15:34:37 -04:00
Yotam Mann
b27cebda3b
disposing of amplitude
2014-09-14 15:34:27 -04:00
Yotam Mann
ef12e6e5d0
fixed bugs with context setting and stop method
2014-09-14 15:34:17 -04:00
Yotam Mann
f2ae3bd594
include an onend function for stop
2014-09-14 15:33:32 -04:00
Yotam Mann
e3dc3a2f6a
modulo comments
2014-09-14 15:33:02 -04:00
Yotam Mann
41225430aa
started r2-dev
2014-09-12 11:53:07 -04:00
Yotam Mann
a0fe662dcd
more modulus optimization
2014-09-12 01:03:48 -04:00
Yotam Mann
5b178359fd
optimizing modulo operator
2014-09-12 00:55:10 -04:00
Yotam Mann
01003bc9d5
fixed note comment.
2014-09-11 20:45:02 -04:00
Yotam Mann
2ebd70b09b
release 1 candidate.
2014-09-11 20:37:40 -04:00
Yotam Mann
1d20c32bba
small default change
2014-09-11 20:36:17 -04:00
Yotam Mann
0ea25ec615
triggerAttackRelease
2014-09-11 20:36:07 -04:00
Yotam Mann
ebca621fc7
this will improve performance.
...
may cause issues when setting bits which are larger than the initial
value.
2014-09-11 20:35:39 -04:00
Yotam Mann
ad703e51d1
eq in db now
2014-09-11 20:31:37 -04:00
Yotam Mann
8f54007335
modulo starts at the maximum bits
2014-09-11 13:39:06 -04:00
Yotam Mann
669c52ee60
jsdoc'ing.
2014-09-11 13:38:41 -04:00
Yotam Mann
7850bdabc1
changed Master class to Tone.Master
...
this is for jsdoc purposes.
2014-09-11 13:00:59 -04:00
Yotam Mann
f51f7370a4
moved note stuff to Tone.Note
2014-09-11 13:00:09 -04:00
Yotam Mann
b3af62fa4a
documented Transport and Tone.Time
2014-09-10 22:37:57 -04:00
Yotam Mann
576383d34b
more extreme phasing.
2014-09-10 22:17:16 -04:00
Yotam Mann
50dcc6ccb0
jshint wants constructors to be Capitalized
2014-09-10 13:51:37 -04:00
Yotam Mann
cc95ee6caf
instrument tests
...
fixed dispose methods bc of tests.
2014-09-09 15:30:36 -04:00
Yotam Mann
894ced3755
fixed polysynth velocity bug
2014-09-09 12:58:07 -04:00
Yotam Mann
6637833ed4
added detune parameter
2014-09-09 12:36:14 -04:00
Yotam Mann
c3cb6af859
added setPreset to PolySynth
2014-09-09 00:40:25 -04:00
Yotam Mann
06987ea9e6
class tag on Tone
2014-09-09 00:24:51 -04:00
Yotam Mann
a49061ac9a
rewrote bit crusher without ScriptProcessorNode
...
wow. and it works well.
2014-09-08 11:54:03 -04:00
Yotam Mann
08c6d3d4b2
Modulus operator on incoming signal
...
the cost of the operation is proportional to the number of bits the
incoming signal has
2014-09-08 11:49:21 -04:00
Yotam Mann
8552833330
refactored GT and LT to get rid of redundant code
...
Fixes #21
2014-09-07 22:16:19 -04:00
Yotam Mann
820b9e8005
readded min...?
...
dunno what happened there.
2014-09-07 21:43:24 -04:00
Yotam Mann
253884d19e
renamed Tone.Selector to Tone.Select
2014-09-07 21:42:31 -04:00
Yotam Mann
71af6ca206
testing dispose methods for all classes.
...
a few classes were not being disposed correctly and leaving some
garbage attached.
2014-09-06 18:55:11 -04:00
Yotam Mann
270c01cbaf
put follower after greater than
2014-09-06 18:10:42 -04:00
Yotam Mann
938c979b8d
added freq and Q setter
2014-09-06 18:09:52 -04:00
Yotam Mann
cca2d84387
renamed Rego to Unicorn
2014-09-06 18:09:25 -04:00
Yotam Mann
bf0b738ca2
bits in integers
2014-09-06 18:09:15 -04:00
Yotam Mann
925e9b19a6
slight refactor + firefox exponential ramp bug
2014-09-06 15:57:01 -04:00
Yotam Mann
818797712c
made the sawtooth private in pulse oscillator
2014-09-06 15:56:41 -04:00
Yotam Mann
0b4c8f6037
removed unneeded default value
2014-09-06 15:56:23 -04:00
Yotam Mann
be1c230d54
fixed Tone.Filter construction error
2014-09-06 15:55:43 -04:00
Yotam Mann
26e45a9e63
fixed no Q bug
2014-09-06 15:37:44 -04:00
Yotam Mann
d6806a02ea
setLoopPoint -> setLoopPoints
2014-09-06 15:37:33 -04:00
Yotam Mann
2016778123
checks if part is array
2014-09-06 15:37:15 -04:00
Yotam Mann
a01dbb8518
setVolume in db like other set volumes
2014-09-06 15:36:59 -04:00
Yotam Mann
46a567c7f0
range test when setting rolloff
2014-09-06 15:36:10 -04:00
Yotam Mann
28f57c76bb
removed doc links
...
they were breaking jsdocs.
2014-09-05 11:40:55 -04:00
Yotam Mann
d71f1cb5b7
jsdocs updates.
2014-09-05 11:32:35 -04:00
Yotam Mann
856d88d88e
effects presets
2014-09-05 00:36:55 -04:00
Yotam Mann
fe6af882eb
AutoWah presets
2014-09-04 23:56:48 -04:00
Yotam Mann
ef90be0e95
preset setting in Monophonic class
2014-09-04 19:14:11 -04:00
Yotam Mann
042343bfd7
put presets in the prototype
2014-09-04 19:13:55 -04:00
Yotam Mann
f378b81fcf
can set context with master as well
...
Fixes #7
2014-09-04 19:04:16 -04:00
Yotam Mann
1cfa016026
fixes jsdoc error
2014-09-04 15:22:25 -04:00
Yotam Mann
2c414097a8
fixed jsdoc tag
2014-09-04 14:04:58 -04:00
Yotam Mann
f27fcc3123
updated README
2014-09-04 14:04:02 -04:00
Yotam Mann
af85ae7e19
Added "use strict" to all classes
...
Fixes #17
2014-09-04 00:41:40 -04:00
Yotam Mann
560359cf21
tweaking defaults
2014-09-04 00:32:44 -04:00
Yotam Mann
39c7da2ab1
styling examples
2014-09-04 00:06:01 -04:00
Yotam Mann
03bec5cb05
new score format.
2014-09-03 22:37:05 -04:00
Yotam Mann
935fa9ea38
envelopes accept velocity on attack
2014-09-03 22:36:56 -04:00
Yotam Mann
936424b356
parse the frequency from a note
2014-09-03 22:35:38 -04:00
Yotam Mann
338f0f683c
same function signature as Monophonics
2014-09-03 22:35:27 -04:00
Yotam Mann
0c0543db0b
fixed Sampler/MultiSampler bugs
2014-09-03 22:35:03 -04:00
Yotam Mann
71b475de60
monophonic instruments extend a base class
2014-09-03 19:05:09 -04:00
Yotam Mann
dc525e90ce
fixed setTargetAtTime typo
2014-09-03 17:31:51 -04:00
Yotam Mann
fbb7345f72
exponential release proved too difficult
...
couldn’t set values in the future. now using setTargetAtTime for all
envelopes
2014-09-03 17:31:29 -04:00
Yotam Mann
f34b6414f2
min set when min is set
2014-09-03 14:54:58 -04:00
Yotam Mann
02ffa25555
FM Synth with example
...
Fixes #26
2014-09-03 14:54:46 -04:00
Yotam Mann
0ba1224541
renamed voiceRatio -> harmonicity
2014-09-03 14:53:05 -04:00
Yotam Mann
8fc8505c43
updated presets
2014-09-02 17:10:33 -04:00
Yotam Mann
aa45c4402c
DuoSynth example first commit
2014-09-02 16:57:46 -04:00
Yotam Mann
c1bdba8cf4
WaveTable -> PeriodicWave for old browsers
2014-09-02 16:57:25 -04:00
Yotam Mann
70c27c7c89
a couple more presets
2014-09-02 12:11:25 -04:00
Yotam Mann
e6a15f8f7a
removed unison controls
2014-09-02 12:10:43 -04:00
Yotam Mann
e4d3aaab2b
optional input arg to receive.
2014-09-02 12:09:16 -04:00
Yotam Mann
62b5bfffed
flexible function signature if define is not defined
2014-09-02 12:08:52 -04:00
Yotam Mann
0bb2dcff80
Some MonoSynth presets
2014-09-02 00:26:34 -04:00
Yotam Mann
d69c5b940e
exponential decay and ability to setMin/Max
2014-09-02 00:26:17 -04:00
Yotam Mann
ba29f3b2c4
MonoSynth Example
2014-09-02 00:25:38 -04:00
Yotam Mann
9adbcc3c4d
getType
2014-09-02 00:25:20 -04:00
Yotam Mann
d381d9e210
PingPongDelay uses new StereoXFeedbackEffect
2014-09-01 13:09:33 -04:00
Yotam Mann
3fe7633604
can set phase on LFO
2014-09-01 12:52:32 -04:00
Yotam Mann
84135a4d1e
Chorus and Phaser are stereo effects
...
made a few intermediate classes to save on code.
2014-09-01 12:52:13 -04:00
Yotam Mann
c88826e979
setPhase method on Oscillator
...
This method uses not DelayNode so sample accurate start/stop are
maintained.
Fixes #18
2014-08-31 16:35:02 -04:00
Yotam Mann
76ee2b5540
Tone.PulseOscillator first commit
...
fixes #25
2014-08-31 16:29:56 -04:00
Yotam Mann
a713502784
fixed typo
2014-08-29 17:14:47 -04:00
Yotam Mann
7f7493105a
added set method
...
#27
also fixed dispose method
2014-08-29 17:14:41 -04:00
Yotam Mann
b45fc88ed0
removing base class set method.
...
it did nothing…
2014-08-29 16:40:20 -04:00
Yotam Mann
5a5e9be1f8
adds ability to set rolloff amount
...
AudioParams are now Tone.Signals
the wrapping is no longer paper thin
2014-08-29 16:39:09 -04:00
Yotam Mann
f6addd6b64
gets Signal.connect for use as a control signal
2014-08-29 16:36:52 -04:00
Yotam Mann
59b69a8d3a
has an initial bpm of 120
2014-08-29 16:36:31 -04:00
Yotam Mann
9d337cb101
fixed wave shaper curve length
2014-08-27 15:22:21 -04:00
Yotam Mann
e783e87834
borrows setVolume from Tone.Source
2014-08-25 21:47:58 -04:00
Yotam Mann
4567298b00
small ramp on vibrato delay
2014-08-25 21:47:45 -04:00
Yotam Mann
42288c5942
setVolume in db now
2014-08-25 21:47:22 -04:00
Yotam Mann
aa893180c0
Tone.DuoSynth first commit
2014-08-25 21:34:09 -04:00
Yotam Mann
f0d99afc16
added detune
...
this is separate from unison detuning
2014-08-25 21:19:18 -04:00
Yotam Mann
1dae08f874
switching to releases instead of versions
2014-08-25 18:43:37 -04:00
Yotam Mann
b4b3b46521
Note values should be JSONable
2014-08-25 18:40:15 -04:00
Yotam Mann
95c6e13995
first PolySynth version
2014-08-25 13:26:26 -04:00
Yotam Mann
1b94e8aa0c
feedback wasn't connect to the gain AudioParam
2014-08-25 10:36:07 -04:00
Yotam Mann
8b316762eb
_defaults -> defaults
...
made it not private
2014-08-25 10:23:37 -04:00
Yotam Mann
223a599f66
All effects have a 'set' method
...
#16
2014-08-25 09:57:36 -04:00
Yotam Mann
43206cbf29
ability to take options object AND parameters
2014-08-24 19:28:42 -04:00
Yotam Mann
f2bfabcc4a
first try on Tone.Phaser
2014-08-24 17:51:01 -04:00
Yotam Mann
6e2ba460d2
change default detune
2014-08-24 17:48:39 -04:00
Yotam Mann
4b085fd32e
privatize internals
2014-08-24 17:48:28 -04:00
Yotam Mann
3cd76459e5
link to parent's dispose method
...
Fixes #15
2014-08-24 16:24:16 -04:00
Yotam Mann
ccc24fb21b
fan out connections
2014-08-24 15:58:02 -04:00
Yotam Mann
595f81283e
updated Tone.dispose to handle input/output arrays
...
#15
2014-08-24 15:51:24 -04:00
Yotam Mann
b612f7839c
Added Signal dep to all Signals
...
#11
2014-08-24 15:47:59 -04:00
Yotam Mann
7890e74ac0
moved Merge and Split to components
2014-08-24 15:46:55 -04:00
Yotam Mann
b2c85eaf44
signals inherit Signal.connect method
...
this is so that params and signals they connect to don’t need to be
manually zeroed out after connecting.
Fixed #11
2014-08-24 13:19:49 -04:00
Yotam Mann
e3973aeead
started MonoSynth.preset
2014-08-24 13:06:45 -04:00
Yotam Mann
9121c5db59
3 band EQ
...
low/mid/high gain controls and control of crossover frequencies
2014-08-24 12:46:45 -04:00
Yotam Mann
3afd45f987
has 'set' interface
...
#16
2014-08-24 12:26:04 -04:00
Yotam Mann
e4ae6afb32
set interface for all internal Tone.Samplers
2014-08-24 12:20:16 -04:00
Yotam Mann
534b23f5cd
accepts options object
...
uses Tone.Filter internally
2014-08-24 12:19:25 -04:00
Yotam Mann
a63c4f42b6
added setters and constructor API
2014-08-24 12:12:40 -04:00
Yotam Mann
7fe3d61858
Tone.Filter
...
paper thin wrapper around the native BiquadFilter
2014-08-24 12:11:58 -04:00
Yotam Mann
f12fb5caa2
made lfo private
2014-08-23 17:04:01 -04:00
Yotam Mann
58e6e4532c
Tone.Envelope can take args as an Object
...
Fixes #12
2014-08-23 16:38:06 -04:00
Yotam Mann
8f0d49db29
fixed dispose method
2014-08-23 16:08:08 -04:00
Yotam Mann
c92c76fef3
added an abstract set method to the base class
...
#16
2014-08-23 16:07:55 -04:00
Yotam Mann
dc98641558
dispose method calls parent's dispose method
...
related to issue #15 . finished for all effects.
2014-08-23 15:51:21 -04:00
Yotam Mann
f6f0a35f57
started chorus effect
2014-08-23 15:19:01 -04:00
Yotam Mann
3f40e26c14
fixed typo
2014-08-23 15:18:51 -04:00
Yotam Mann
5d7807bede
description of _merger
2014-08-23 14:25:20 -04:00
Yotam Mann
127f5d52c9
updated doc
2014-08-23 14:24:54 -04:00
Yotam Mann
b6938ec10b
privatized panner
2014-08-23 14:24:20 -04:00
Yotam Mann
adf8c9fbbb
consistent spacing
2014-08-23 14:24:06 -04:00
Yotam Mann
52fca548b6
bit crusher extends Tone.Effect
2014-08-23 14:23:54 -04:00
Yotam Mann
3b08ef6997
AutoWah effect
2014-08-23 14:23:43 -04:00
Yotam Mann
63bce969c1
effects default to 100% wet
2014-08-23 14:22:51 -04:00
Yotam Mann
5f29b82d3b
privatized the _scalar
2014-08-23 14:22:18 -04:00
Yotam Mann
0cf82e94e8
more consistent spacing
2014-08-23 13:51:02 -04:00
Yotam Mann
e6e4586f70
renamed delay to delayTime
2014-08-23 13:50:30 -04:00
Yotam Mann
dbafb63b14
updated description on Effect
2014-08-23 13:50:13 -04:00
Yotam Mann
c37902cdfe
updated docs on LFO
2014-08-23 13:49:50 -04:00
Yotam Mann
151ca08a21
EnvelopeFollower with independent attack / decay
2014-08-23 13:48:52 -04:00
Yotam Mann
833132643e
Tone.ScaleExp scales values with an exponent
...
Fixes #14
2014-08-23 13:11:01 -04:00
Yotam Mann
6f6d0ea91b
recursively handles nested objects
2014-08-21 20:55:00 -04:00
Yotam Mann
be344b7963
unused argument
2014-08-21 14:20:55 -04:00
Yotam Mann
be9ad6ee5f
fixed deps
2014-08-21 01:03:51 -04:00
Yotam Mann
2f46a0f50a
fire version of MonoSynth
2014-08-21 00:59:11 -04:00
Yotam Mann
b26f313bd7
defaultArgs can do defaults on objects
2014-08-21 00:58:44 -04:00
Yotam Mann
6f0008b3d7
consistent whitespacing
2014-08-20 20:46:57 -04:00
Yotam Mann
4b12221812
updated jsdoc description
2014-08-20 20:46:40 -04:00
Yotam Mann
41e3e877d2
notes start at C instead of A
2014-08-20 20:46:28 -04:00
Yotam Mann
9819c07390
updated description in dry wet
2014-08-20 20:46:10 -04:00
Yotam Mann
5dce8e4958
added dispose method
2014-08-20 17:10:12 -04:00
Yotam Mann
343b54b784
reflects new connect method with indexing
...
changed the input/output to be arrays so that they can be used with the
new connect method
2014-08-20 17:09:58 -04:00
Yotam Mann
8425b1bd4d
updated description
2014-08-20 17:09:13 -04:00
Yotam Mann
9bb8df60a8
sync inherited from Tone.Source
2014-08-20 16:54:26 -04:00
Yotam Mann
535ef8133b
Sampler and MultiSampler instruments
2014-08-20 16:52:14 -04:00
Yotam Mann
5f383d1f03
Tone.Note registers note events
...
makes it easy to write JSON scores for multiple instruments.
2014-08-20 16:51:56 -04:00
Yotam Mann
d26147aa52
spacing and jsdoc
2014-08-20 16:51:02 -04:00
Yotam Mann
c86353d8dd
jsdoc'ing and sync
2014-08-20 16:50:27 -04:00
Yotam Mann
2bac71da75
styling comments. more cleanup in dispose method
2014-08-20 16:50:07 -04:00
Yotam Mann
ffcd6807df
simplified version number
2014-08-18 07:50:58 -04:00
Yotam Mann
66bf461ebf
sync -> syncSource
2014-07-30 15:12:47 -04:00
Yotam Mann
474b51ddd8
a single Transport object which doesn't get replaced
2014-07-30 15:12:21 -04:00
Yotam Mann
7c8c505b9d
exposed smoothTime in constructor
2014-07-30 13:57:05 -04:00
Yotam Mann
935161a31e
can set context
2014-07-30 13:56:44 -04:00
Yotam Mann
4e531dc06f
fixed deps. ability to setContext
2014-07-30 13:56:32 -04:00
Yotam Mann
a9714afbc2
setContext
2014-07-30 13:55:59 -04:00
Yotam Mann
7081619bcf
doesn't expose Buses anymore
2014-07-30 13:55:36 -04:00
Yotam Mann
9afc03afa7
fixed typo, can now set context
2014-07-30 13:55:24 -04:00
Yotam Mann
cd4388fe89
refactored out clock from Transport
2014-07-30 13:54:55 -04:00
Yotam Mann
d01cb52bf4
Volume Gate
2014-07-23 15:50:45 -04:00
Yotam Mann
ded3f1a61a
formerly Tone.Gate
2014-07-23 15:47:46 -04:00
Yotam Mann
b09fc13dc2
rename Gate to Switch and Switch to Selector
2014-07-23 15:47:00 -04:00
Yotam Mann
4147c3e734
cleaned up deps
2014-07-23 15:28:06 -04:00
Yotam Mann
9ca1e1286e
timing setter
2014-07-23 15:25:46 -04:00
Yotam Mann
cdd0d3d610
simplified envelope follower
2014-07-23 15:22:46 -04:00
Yotam Mann
73c10a90c4
works. sort of.
2014-07-22 19:17:45 -04:00
Yotam Mann
86c3b6e261
uses Tone.Switch now
2014-07-22 18:54:23 -04:00
Yotam Mann
8e646f033f
route a single input to multiple outputs
...
select the open output. (similar to Switch)
2014-07-22 13:39:53 -04:00
Yotam Mann
738f1c8c5d
api change from open to select
2014-07-22 13:39:28 -04:00
Yotam Mann
1ce8c653a8
fixed output connection bug
2014-07-22 13:38:42 -04:00
Yotam Mann
3494326f65
min and max using the new Tone.Switch
2014-07-22 12:48:37 -04:00
Yotam Mann
d9aa476a3f
some linting
2014-07-22 12:48:22 -04:00
Yotam Mann
524bae2e60
accepts input/output number selection
2014-07-22 12:48:04 -04:00
Yotam Mann
fe418cbe89
switch that accepts multiple inputs
2014-07-22 12:47:28 -04:00
Yotam Mann
18fca530c8
invalid constraint
2014-07-22 11:31:32 -04:00
Yotam Mann
1a9a5fae2b
min / max setters
2014-07-22 11:31:14 -04:00
Yotam Mann
bd05a1c1ed
startMobile. connect to array of inputs
2014-07-22 11:30:18 -04:00
Yotam Mann
fca7b0eba3
clip the incoming signal
2014-07-20 18:26:33 -04:00
Yotam Mann
69294ce410
switch between two sources
2014-07-20 18:18:43 -04:00
Yotam Mann
505bad1674
signal min and max
2014-07-20 18:18:29 -04:00
Yotam Mann
e6bcb3b10c
doc updates
2014-07-20 18:17:24 -04:00
Yotam Mann
2ee294b278
fixed logic.
...
now nearly the same as greater than
2014-07-20 18:17:01 -04:00
Yotam Mann
d91f177fb5
fixed dep and doc
2014-07-20 18:15:17 -04:00
Yotam Mann
10e2acdea9
class description for signals
2014-07-04 13:47:56 -04:00
Yotam Mann
2f027cfd50
updated docs
2014-07-04 13:36:13 -04:00
Yotam Mann
2bab21a9f5
rename
2014-07-03 22:59:35 -04:00
Yotam Mann
465d83f308
signal comparison
2014-07-03 22:59:16 -04:00
Yotam Mann
ce4d75db50
signal absolute value
2014-07-03 22:57:04 -04:00
Yotam Mann
343ab3dee4
code cleanup a bit
2014-07-02 23:38:20 -04:00
Yotam Mann
63f264ad6f
compare a signal to a number
2014-07-02 23:37:19 -04:00
Yotam Mann
67a1f7e76a
absolute value of any input signal
2014-07-02 23:36:59 -04:00
Yotam Mann
1436aa2990
renamed EqualsZero
2014-07-02 19:18:00 -04:00
Yotam Mann
18e79bba9e
attack / release frequency shifting
2014-07-02 18:20:34 -04:00
Yotam Mann
95113267c5
absolute value of incoming signal
...
between -1 and 1. can update this to work with all values if i use
Tone.Switch
2014-07-02 18:20:02 -04:00
Yotam Mann
bb9d4b9603
updated docs
2014-07-02 17:33:00 -04:00
Yotam Mann
89593b6dbc
optimizing the component count
2014-07-02 17:26:27 -04:00
Yotam Mann
b848ee9f9b
incremented version
2014-07-02 17:11:50 -04:00
Yotam Mann
793eb1ce39
negate an incoming signal
2014-07-02 17:08:59 -04:00
Yotam Mann
fbf7b189c0
open and close a switch
2014-07-02 17:08:50 -04:00
Yotam Mann
07a96711e5
update thresh value
2014-07-02 17:08:03 -04:00
Yotam Mann
8aa3e06085
moved bit crusher to effects
2014-07-02 17:07:53 -04:00
Yotam Mann
e0bbf3b460
threshold a signal between -1 and 1
2014-07-02 17:07:40 -04:00
Yotam Mann
2d32b38bb7
fixed deps in Multiply
2014-07-02 16:00:39 -04:00
Yotam Mann
f840861496
added a version number
2014-07-02 15:59:11 -04:00
Yotam Mann
072709f5b3
license in JSDocs
2014-07-02 15:51:55 -04:00
Yotam Mann
113e103514
dispose methods
2014-07-02 15:47:05 -04:00
Yotam Mann
5098ab8e10
Threshold ToneNode
2014-07-02 15:37:17 -04:00
Yotam Mann
070da78981
EqualsZero ToneNode
2014-07-02 15:37:08 -04:00
Yotam Mann
0af07289fd
recursive connect if the input is also a ToneNode
2014-07-02 15:36:41 -04:00
Yotam Mann
88336c50bb
cleaner looking alias
2014-06-30 17:11:46 -04:00
Yotam Mann
3391d0d08d
added notes to frequency and updated connect method
2014-06-30 17:09:55 -04:00
Yotam Mann
b43bb9c10d
started envelope follower (doesn't work yet)
2014-06-30 11:34:52 -04:00
Yotam Mann
ceb84b548f
no echo cancellation on microphone
2014-06-28 22:13:35 -04:00
Yotam Mann
97e60e11cf
updated looping API
...
removed “loop” method
2014-06-25 13:11:29 -04:00
Yotam Mann
0b4def6155
Tone.Sources can sync to the Transport
2014-06-25 12:47:47 -04:00
Yotam Mann
265b604e83
small doc changes
2014-06-23 23:18:19 -04:00
Yotam Mann
9ea64668cc
new docs theme.
2014-06-23 14:52:33 -04:00
Yotam Mann
5ff3b1e4ee
working on docs
2014-06-23 14:20:20 -04:00
Yotam Mann
4cd751e541
transportTicks and timelineTicks are separate
...
this allows for timeouts and intervals to go on independent of timeline
loop points.
2014-06-23 13:30:38 -04:00
Yotam Mann
b13afa1d19
panControl->pan
2014-06-23 13:30:00 -04:00
Yotam Mann
1f922516e7
aesthetic improvements
2014-06-23 00:53:59 -04:00
Yotam Mann
55f4ab5120
purged half-finished or unnecessary stuff
2014-06-23 00:53:35 -04:00
Yotam Mann
12f661c147
fixed single line docs
2014-06-22 12:33:27 -04:00
Chris Deaner
00b1bf25e7
First commit with the DocStrap template truely in effect ( in effect )
2014-06-21 22:56:51 -04:00
Yotam Mann
a0bdadc927
fixed error in API
2014-06-21 18:39:45 -04:00
Yotam Mann
d82129f995
fixed doc error
2014-06-21 18:39:09 -04:00
Yotam Mann
4059c891e5
updated player api
2014-06-21 18:39:01 -04:00
Yotam Mann
ff5d967dc7
some updated to the microphone
...
still untested
2014-06-21 17:37:17 -04:00
Yotam Mann
c3ab9a7b0d
renamed effects->effect. jsdocs on effects
2014-06-21 17:34:31 -04:00
Yotam Mann
07c247ea8b
updated docs
2014-06-21 15:55:15 -04:00
Yotam Mann
494cd5576f
new connect method. signal now has an input
2014-06-21 15:55:15 -04:00
Yotam Mann
542668a93e
new connect. optimized component count
2014-06-21 15:55:15 -04:00
Yotam Mann
beee9c2a74
fixed error in dispose method
2014-06-21 15:55:15 -04:00
Yotam Mann
e1647e2031
don't garbage collect the generator
2014-06-21 15:55:14 -04:00
Yotam Mann
fd75f7e167
updated initial tempo value and toSeconds API
2014-06-21 15:55:14 -04:00
Yotam Mann
275b05b96e
updated toSeconds api and throws error if no web audio
2014-06-21 15:55:14 -04:00
Yotam Mann
63278d6042
set master volume
2014-06-21 15:55:14 -04:00