'miditouch' change sendKeyAfterTouch to sendChannelAfterTouch
This commit is contained in:
parent
54c5454306
commit
5ff1d35272
1 changed files with 1 additions and 1 deletions
|
|
@ -275,7 +275,7 @@ Pattern.prototype.midi = function (output) {
|
|||
// Handle miditouch
|
||||
if (miditouch !== undefined) {
|
||||
if (typeof miditouch == 'number' || miditouch < 1 || miditouch > 0) {
|
||||
device.sendKeyAfterTouch(miditouch, midichan, { time: timeOffsetString });
|
||||
device.sendChannelAfterTouch(miditouch, midichan, { time: timeOffsetString });
|
||||
} else {
|
||||
throw new Error('expected miditouch to be a number between 1 and 0');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue