piano nowalso understands n

This commit is contained in:
Felix Roos
2022-06-30 16:48:48 +02:00
parent aa9a32c9af
commit d0acb32497
+1 -1
View File
@@ -51,7 +51,7 @@ Pattern.prototype.piano = function () {
.s('piano')
.fmap((value) => {
// pan by pitch
const pan = panwidth(Math.min(toMidi(value.note) / maxPan, 1), 0.5);
const pan = panwidth(Math.min(toMidi(value.note || value.n) / maxPan, 1), 0.5);
return { ...value, pan: (value.pan || 1) * pan };
});
};