m4ldevices/js i dont need any more/notesustain.js

13 lines
208 B
JavaScript
Raw Permalink Normal View History

2021-08-02 17:26:11 +10:00
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; }
}