In this case, I’m expecting what the code is described to do: play a sound.
What the problem is:
I gave two examples of code that does not work. One of them is from the help docs:
SinOsc.ar(freq: 440.0, phase: 0.0, mul: 1.0, add: 0.0).
The other is from The SuperCollider Book by David Cottle, Scott Wilson, and Nick Collins, 1 Beginner’s Tutorial:
play({SinOsc.ar(LFNoise0.kr(12, mul: 600, add: 1000), 0.3)})
Every time I open sc, I always do either s.boot or ctrl+b, and I wait for the server to finish before running.
Day 1: When I first downloaded sc, I accidentally did not click allow from the message that popped up to make a firewall exception. I used s.boot, waited and then ran the code from The SuperCollider Book and it worked as expected (every time I used s.boot or ctrl+b it always said it was booting in the post win and the status bar was green).
Day 2: I opened sc, used s.boot, waited, and ran the same code from the book. It did not play sound. The error had to do with syntax (I’ll post it later). I tried closing and opening, used ctrl+b, tried the code from the help docs, uninstalled and reinstalled sc, and did the same procedure as I did before; it did not work.
Because of this, I was thinking the problem had to do with firewall; it worked the first day and not the next.
Also, I mentioned ERROR: Class not defined, because for some reason, none of a program by Sam Pluta that I downloaded worked. I tried running different parts of the code and the errors said similar things about syntax errors.