Commit graph

73 commits

Author SHA1 Message Date
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
267d78d4a4 ease renamed to cosine
[skip ci]
2016-11-22 22:38:58 -08:00
Yotam Mann
b1765f71b0 moving the minimum timing to the Instrument classes 2016-09-24 10:38:57 -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
a40aa6bd12 Fixing case where partial envelope is retriggered using one of the predefined envelopes 2016-06-17 13:13:20 -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
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
d374790175 using new Type 2016-04-18 02:19:17 -04:00
Yotam Mann
2728e02555 ability to cancel an envelope 2016-03-04 15:54:24 -05:00
Yotam Mann
18b2136148 .value returns the scheduled value at time=now 2016-03-03 13:04:02 -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
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
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
0349216473 Envelope is completely silenced while not being triggered
Fixes #109
2016-01-16 15:39:29 -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
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
0c3cd6a305 Set a ramp point before the release curve 2015-11-11 23:41:17 -05:00
Yotam Mann
eccdb659c2 renamed Tone/core/Types -> Tone/core/Type 2015-09-04 16:48:21 -04:00
Yotam Mann
80abf87292 reflecting rename 2015-08-18 16:29:39 -04:00
Yotam Mann
66a9991ede Envelope uses new SchedulableSignal 2015-08-16 15:17:35 -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
3ccc0683bf changing doc links to markdown style 2015-07-04 15:25:37 -04:00
Yotam Mann
00e0ba7273 read envelope value 2015-07-04 13:36:38 -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
5ea8eaa35d doc'ing components 2015-06-20 19:25:49 -04:00
Yotam Mann
b2fa7a065e jsdocing 2015-06-13 23:56:32 -04:00
Yotam Mann
23cc2408b2 changing link tag 2015-06-13 21:54:20 -04:00
Yotam Mann
a81ba071f3 changing the styling of this in return statements 2015-06-13 20:54:29 -04:00
Yotam Mann
571183bf27 removing Tone.Type prefix in docs 2015-06-13 20:20:36 -04:00
Yotam Mann
b3f7babcca respelling the enum types 2015-05-24 09:53:53 -04:00
Yotam Mann
6ef3dd2f51 renamed Tone.Time -> Tone.Type.Time 2015-05-23 19:01:05 -04:00
Yotam Mann
bbdeffb7f7 attackType -> attackCurve 2015-04-20 10:42:27 -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
e6718e4781 jsdoc'ing effects and components 2015-02-27 16:53:10 -05:00
Yotam Mann
b1ba37d8d6 migrating components to ES5 getter/setter 2015-02-06 17:49:04 -05:00
Yotam Mann
0fa6b6cdaf components' methods return this 2015-02-02 12:49:13 -05:00
Yotam Mann
daf428b23b fixed velocity bug 2014-12-08 11:02:22 -05:00
Yotam Mann
ba90b842a1 Envelope no longer has an exponent 2014-12-06 16:48:57 -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
25496dea77 switched to updated chain method 2014-11-30 21:32:09 -05:00
Yotam Mann
cf2cb263b2 chain -> connectSeries, fan -> connectParallel 2014-11-30 17:37:29 -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
a830f4b711 handles exponential scaling 2014-11-01 21:54:40 -04:00