Browse Source

fix regression not interpreting recall feedback correctlty

main
TFLCL 3 months ago
parent
commit
e07e8ef9ca
  1. 9
      code/tc.preset.js

9
code/tc.preset.js

@ -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();
} }

Loading…
Cancel
Save