From bc790d8cd592d5e474a4161688d76762bd4ede63 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Sun, 20 Feb 2022 23:37:17 +0100 Subject: [PATCH] fix: voicings wouldn't work with objects --- repl/src/voicings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repl/src/voicings.ts b/repl/src/voicings.ts index 929ec31f..a5f55dc7 100644 --- a/repl/src/voicings.ts +++ b/repl/src/voicings.ts @@ -32,7 +32,7 @@ Pattern.prototype.voicings = function (range) { range = ['F3', 'A4']; } return this.fmapNested((event) => { - lastVoicing = getVoicing(event.value, lastVoicing, range); + lastVoicing = getVoicing(event.value?.value || event.value, lastVoicing, range); return stack(...lastVoicing); }); };