Avoid errors when recall messages start by a string (parameter name)

This commit is contained in:
2024-08-19 18:41:38 +02:00
parent b85e2ff66b
commit c82a9053bb

View File

@@ -776,7 +776,8 @@ function recall() {
is_interpolating = 0;
set_active_slot(args[0]);
outlet(0, 'recall', args[0]);
} else {
} else if (args.length == 2) {
if (typeof(args[0]) == 'number') {
var src_slot = args[0];
var trg_slot = args[1];
@@ -827,6 +828,10 @@ function recall() {
outlet(0, "recall", src_slot, trg_slot, interp);
}
}
// else {
// //typeof(args[0]) == 'string', so user just recalled a single parameter.
// }
}