Problems running SuperCollider from the command line, OSX.
I'm not an expert with SuperCollider and am struggling to run some SuperCollider Code from the command line (I want to do this as this is part of an integrated system for a robot. Short answer, running SC and my code needs to be automated).
So, here is my command line command (tried with.sc, .scd, and .txt file extension):
$ exec ./sclang test.txt
This is the contents of test.txt:
s = Server.local.boot;
//Wait for Server to boot
//This does give me a tone, good.
var greeting; //This does not work, I get a parse error!?
Now, here I am stumped. Why am I unable to declare a variable?! The above is only a test. My end goal is to load two files that I know work (as they work if I use the GUI) using this method which I have also tested via the GUI: