Prettier!
This commit is contained in:
parent
3189b365c8
commit
3ffe3957ba
1 changed files with 2 additions and 2 deletions
|
|
@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue