mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-25 12:38:35 +00:00
adjust default envelope
This commit is contained in:
parent
014c258c57
commit
91934006d5
@ -181,10 +181,10 @@ Pattern.prototype.out = function () {
|
|||||||
crush,
|
crush,
|
||||||
shape,
|
shape,
|
||||||
pan,
|
pan,
|
||||||
attack = 0.0001,
|
attack = 0.001,
|
||||||
decay = 0.0001,
|
decay = 0.001,
|
||||||
sustain = 1,
|
sustain = 1,
|
||||||
release = 0.0001,
|
release = 0.001,
|
||||||
speed = 1, // sample playback speed
|
speed = 1, // sample playback speed
|
||||||
begin = 0,
|
begin = 0,
|
||||||
end = 1,
|
end = 1,
|
||||||
|
|||||||
@ -54,6 +54,7 @@ const panwidth = (pan, width) => pan * width + (1 - width) / 2;
|
|||||||
Pattern.prototype.piano = function () {
|
Pattern.prototype.piano = function () {
|
||||||
return this.clip(1)
|
return this.clip(1)
|
||||||
.s('piano')
|
.s('piano')
|
||||||
|
.release(.1)
|
||||||
.fmap((value) => {
|
.fmap((value) => {
|
||||||
const midi = typeof value.note === 'string' ? toMidi(value.note) : value.note;
|
const midi = typeof value.note === 'string' ? toMidi(value.note) : value.note;
|
||||||
// pan by pitch
|
// pan by pitch
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user