mirror of
https://github.com/italicsjenga/m4ldevices.git
synced 2024-11-22 16:41:33 +11:00
13 lines
208 B
JavaScript
13 lines
208 B
JavaScript
inlets = 1;
|
|
outlets = 2;
|
|
|
|
var current = 0;
|
|
var last = 0;
|
|
|
|
function msg_int(note) {
|
|
last = current;
|
|
current = note;
|
|
outlet(0, current);
|
|
outlet(1, last);
|
|
if (current == last) { current = 0; }
|
|
} |