[Bug Fix] Account for numeral notation when converting to midi
This commit is contained in:
parent
ad174957e8
commit
ac3d8b832c
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue