Browse Source

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

main
TFLCL 3 months ago
parent
commit
c82a9053bb
  1. 7
      code/tc.preset.js

7
code/tc.preset.js

@ -776,7 +776,8 @@ 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 { } else if (args.length == 2) {
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];
@ -827,6 +828,10 @@ function recall() {
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.
// }
} }

Loading…
Cancel
Save