No sound when starting scsynth from command line (linux)

Hi!

I’m toying around with a minimalist SuperCollider setup where I don’t need the IDE or sclang to produce sound, so naturally I start scsynth from command line. I am on Linux and use pipewire.

What works:

  • I get sound in the default SuperCollider IDE (that I start through pw-jack scide)
  • I get sound when I start scsynth through sclang when loading a script that contains a simple s.waitForBoot directive

What does not work: I don’t get sound to work when I start scsynth directly. Command line arguments are equal to when I start it from the IDE, the device looks exactly the same when investigating with wpctl status and wpctl inspect NN.

Any ideas? What am I missing?

Can you share the exact command line?

Sure!
I start sclang from my Guile program like this:

pw-jack sclang sc/bootServer.scd --include-path sc/

which in turn starts the following scsynth (as seen through ps aux | grep scsynth):

scsynth -u 57110 -a 1024 -i 2 -o 2 -R 0 -C 1 -l 1

I get sound like expected.

When I start scsynth in a terminal like this:

pw-jack scsynth -u 57110 -a 1024 -i 2 -o 2 -R 0 -C 1 -l 1

there is no sound.

Be sure to set the environment variables for automatic connections before running scsynth. It’s documented somewhere in the Linux readme. Sclang sets the variables for you, so you’d never have to consider the environment variables until you’re running scsynth on its own.

hjh

1 Like

That was it! Thank you lovely strangers so much!

2 Likes