mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-22 11:08:35 +00:00
Prettier!
This commit is contained in:
parent
3189b365c8
commit
3ffe3957ba
@ -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…
x
Reference in New Issue
Block a user