adjust default envelope
This commit is contained in:
parent
014c258c57
commit
91934006d5
2 changed files with 4 additions and 3 deletions
|
|
@ -181,10 +181,10 @@ Pattern.prototype.out = function () {
|
|||
crush,
|
||||
shape,
|
||||
pan,
|
||||
attack = 0.0001,
|
||||
decay = 0.0001,
|
||||
attack = 0.001,
|
||||
decay = 0.001,
|
||||
sustain = 1,
|
||||
release = 0.0001,
|
||||
release = 0.001,
|
||||
speed = 1, // sample playback speed
|
||||
begin = 0,
|
||||
end = 1,
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ const panwidth = (pan, width) => pan * width + (1 - width) / 2;
|
|||
Pattern.prototype.piano = function () {
|
||||
return this.clip(1)
|
||||
.s('piano')
|
||||
.release(.1)
|
||||
.fmap((value) => {
|
||||
const midi = typeof value.note === 'string' ? toMidi(value.note) : value.note;
|
||||
// pan by pitch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue