mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 21:58:31 +00:00
[Bug Fix] Account for numeral notation when converting to midi
This commit is contained in:
parent
ad174957e8
commit
ac3d8b832c
@ -114,7 +114,7 @@ Pattern.prototype.midi = function (output) {
|
||||
const duration = hap.duration.valueOf() * 1000 - 5;
|
||||
|
||||
if (note) {
|
||||
const midiNumber = noteToMidi(note);
|
||||
const midiNumber = typeof note === 'number' ? note : noteToMidi(note);
|
||||
device.playNote(midiNumber, midichan, {
|
||||
time,
|
||||
duration,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user