florian-grond / SC-HOA

HOA wrapper classes for SuperCollider based on https://github.com/sekisushai/ambitools
GNU General Public License v3.0
32 stars 7 forks source link

Errors in HOAAmbiDecoderHelper.sc #43

Open anwaldt opened 3 years ago

anwaldt commented 3 years ago

String concatenation causes problems on Linux. Changing it to the following fixes it: file.write("\t unix([\"faust2supercollider -sn -ks \",out_path,num2str(order,0),\".dsp\"]);\n");

thibaudk commented 3 years ago

Hi @anwaldt

Thanks for reporting this. The solution you provide does not compile for me tho, As you can see with the js highlighting below, the faust2supercollider -sn -ks ",out_path,num2str(order,0), line isn't between quotes

 file.write("\t unix(["faust2supercollider -sn -ks ",out_path,num2str(order,0),".dsp"]);\n");

did you mean

 file.write("\t unix([\"faust2supercollider -sn -ks \",out_path,num2str(order,0),\".dsp\"]);\n");

with the quotes escaped ?