Prettier!

This commit is contained in:
nkymut 2025-01-25 08:00:49 +08:00
parent 3189b365c8
commit 3ffe3957ba

View File

@ -267,7 +267,7 @@ Pattern.prototype.midi = function (output) {
if (midibend !== undefined) { if (midibend !== undefined) {
if (typeof midibend == 'number' || midibend < 1 || midibend > -1) { if (typeof midibend == 'number' || midibend < 1 || midibend > -1) {
device.sendPitchBend(midibend, midichan, { time: timeOffsetString }); device.sendPitchBend(midibend, midichan, { time: timeOffsetString });
}else{ } else {
throw new Error('expected midibend to be a number between 1 and -1'); throw new Error('expected midibend to be a number between 1 and -1');
} }
} }
@ -276,7 +276,7 @@ Pattern.prototype.midi = function (output) {
if (miditouch !== undefined) { if (miditouch !== undefined) {
if (typeof miditouch == 'number' || miditouch < 1 || miditouch > 0) { if (typeof miditouch == 'number' || miditouch < 1 || miditouch > 0) {
device.sendKeyAfterTouch(miditouch, midichan, { time: timeOffsetString }); device.sendKeyAfterTouch(miditouch, midichan, { time: timeOffsetString });
}else{ } else {
throw new Error('expected miditouch to be a number between 1 and 0'); throw new Error('expected miditouch to be a number between 1 and 0');
} }
} }