Commit graph

1000 commits

Author SHA1 Message Date
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