mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 06:19:33 -04:00
adjust default envelope
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user