mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-25 20:48:27 +00:00
fix piano velocity
This commit is contained in:
parent
963cfe052a
commit
d8d460f175
@ -44,7 +44,7 @@ Pattern.prototype.tone = function (instrument) {
|
|||||||
break;
|
break;
|
||||||
case 'Piano':
|
case 'Piano':
|
||||||
note = getPlayableNoteValue(event);
|
note = getPlayableNoteValue(event);
|
||||||
instrument.keyDown({ note, time, velocity: 0.5 });
|
instrument.keyDown({ note, time, velocity });
|
||||||
instrument.keyUp({ note, time: time + event.duration, velocity });
|
instrument.keyUp({ note, time: time + event.duration, velocity });
|
||||||
break;
|
break;
|
||||||
case 'Sampler':
|
case 'Sampler':
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user