mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-20 10:08:29 +00:00
Merge pull request #656 from daslyfe/main
[Bug Fix] Account for numeral notation when converting to midi
This commit is contained in:
commit
2ec2e81511
@ -114,7 +114,7 @@ Pattern.prototype.midi = function (output) {
|
|||||||
const duration = hap.duration.valueOf() * 1000 - 5;
|
const duration = hap.duration.valueOf() * 1000 - 5;
|
||||||
|
|
||||||
if (note) {
|
if (note) {
|
||||||
const midiNumber = noteToMidi(note);
|
const midiNumber = typeof note === 'number' ? note : noteToMidi(note);
|
||||||
device.playNote(midiNumber, midichan, {
|
device.playNote(midiNumber, midichan, {
|
||||||
time,
|
time,
|
||||||
duration,
|
duration,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user