sonic-pi
sonic-pi copied to clipboard
Could not start sonic-pi 4.2.0, maybe a problem with the way supercollider is started
I tried to start sonic-pi on Fedora 36 with supercollider 3.12. Sonic-pi fails to start because it cannot connect some inputs.
Starting Sonic Pi...
[API] [INFO ] : Home dir writable:
[API] [INFO ] : Args: ruby /usr/share/sonic-pi/app/server/ruby/bin/clear-logs.rb
[API] [INFO ] : Started...
ERROR SuperCollider:in_1 not a valid port
ERROR SuperCollider:in_2 not a valid port
QLayout: Attempting to add QLayout "" to MainWindow "", which already has a layout
Here is a screenshot of the qjackctl patchbay:
Hi there! Could you upload all of the .log files in ~/.sonic-pi/logs
? Having those will give us more info about the startup as well as output from SuperCollider which could be relevant
This can occur particularly where you first start up SP as Audio input may be switched off on the Audio preferences tab. It is an error message from pulseaudio trying to connect to SuperCollider Input. You should still be able to hear Sonic Pi playing if this is the case. However as lilyinstarlight says full logs would be helpful.
Have you tried enabling inputs? you have to uncomment the line 105 on your .sonic-pi/config/audio-settings.tom
l file, this line:
enable_inputs = true
On further investigation there is a problem with the code in version 4.2 Version 4.1 works OK, but in 4.2 (linux) inputs are currently disabled regardless of the state of the switch in the gui prefs pane. The temporary solution is to set the number of inputs to the desired number in the audio-settings.toml file in the .sonic-pi/config folder. Change the line # num_inputs = 16
to num_inputs = 2
in the Sound Card Options section. (I am using 2, but can be more up to 16 if you need them). There is also a problem in that this file may not be present if you are not building from source. You can copy if from the app/config/user-examples folder in the source tree if it is missing. It is currently missing in the Raspberry Pi binary deb. The file is not needed unless you want to make a change like the one detailed above. Work is underway to solve both these problems.
thanks for posting this on Debian 11 was getting for Sonic Pi 4.3.0
ERROR SuperCollider:in_1 not a valid port ERROR SuperCollider:in_2 not a valid port
editing the ~/.sonic-pi/config/audio-settings.tom file eliminated this also was helpful to set the SuperCollider to 2 outputs rather than 16