faust
faust copied to clipboard
faust2sc.py does not support groups
Hi
One feature that is still lacking from the faust2sc.py tool is the ability to interpret groups properly. This is a problem happening in the json decoding. I think it's something going on around here: https://github.com/grame-cncm/faust/blob/master-dev/tools/faust2appls/faust2sc.py#L328
and/or here (this hardcoded [0] looks fishy):
https://github.com/grame-cncm/faust/blob/master-dev/tools/faust2appls/faust2sc.py#L341
I currently don't have the energy to fix it but would love to see it done, since this prevents the tool from being able to convert most of the demos that come with faust.
The symptom of the group conversion not working is jumbled or weird arguments in the .sc class file.
Hope someone wants to help fix this
An example
This dsp code:
import("stdfaust.lib");
process = dm.datorro_rev_demo;
leads to an audio rate function that looks like this in SuperCollider (with three inputs and an output argument both of which are superfluous I think?)
*ar{|in0, in1,input(0), decay_times_in_bands_see_tooltips(0), rm_peaking_equalizer_
1(0), rm_peaking_equalizer_2(0), output(0)|
^this.multiNew('audio', in0, in1,input, decay_times_in_bands_see_tooltips, rm_pea
king_equalizer_1, rm_peaking_equalizer_2, output)
}