fix regression not interpreting recall feedback correctlty

This commit is contained in:
2024-08-20 01:45:13 +02:00
parent 8b91c7ad5d
commit e07e8ef9ca

View File

@@ -783,8 +783,7 @@ function recall() {
is_interpolating = 0; is_interpolating = 0;
set_active_slot(args[0]); set_active_slot(args[0]);
outlet(0, 'recall', args[0]); outlet(0, 'recall', args[0]);
} else if (args.length == 2) { } else if (args.length == 3) {
if (typeof(args[0]) == 'number') {
var src_slot = args[0]; var src_slot = args[0];
var trg_slot = args[1]; var trg_slot = args[1];
@@ -830,17 +829,11 @@ function recall() {
slots[trg_slot].interp = interp; slots[trg_slot].interp = interp;
is_interpolating = 1; is_interpolating = 1;
active_slot = 0; active_slot = 0;
// set_active_slot(0);
} }
outlet(0, "recall", src_slot, trg_slot, interp); outlet(0, "recall", src_slot, trg_slot, interp);
} }
} }
// else {
// //typeof(args[0]) == 'string', so user just recalled a single parameter.
// }
}
mgraphics.redraw(); mgraphics.redraw();
} }