mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 13:48:40 +00:00
fix sendChannelAfterTouch -> sendChannelAftertouch
This commit is contained in:
parent
5ff1d35272
commit
451cdcc3a9
@ -275,7 +275,7 @@ Pattern.prototype.midi = function (output) {
|
|||||||
// Handle miditouch
|
// Handle miditouch
|
||||||
if (miditouch !== undefined) {
|
if (miditouch !== undefined) {
|
||||||
if (typeof miditouch == 'number' || miditouch < 1 || miditouch > 0) {
|
if (typeof miditouch == 'number' || miditouch < 1 || miditouch > 0) {
|
||||||
device.sendChannelAfterTouch(miditouch, midichan, { time: timeOffsetString });
|
device.sendChannelAftertouch(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