fix: voicings wouldn't work with objects
This commit is contained in:
parent
74040e52b4
commit
bc790d8cd5
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ Pattern.prototype.voicings = function (range) {
|
||||||
range = ['F3', 'A4'];
|
range = ['F3', 'A4'];
|
||||||
}
|
}
|
||||||
return this.fmapNested((event) => {
|
return this.fmapNested((event) => {
|
||||||
lastVoicing = getVoicing(event.value, lastVoicing, range);
|
lastVoicing = getVoicing(event.value?.value || event.value, lastVoicing, range);
|
||||||
return stack(...lastVoicing);
|
return stack(...lastVoicing);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue