Many thanks sludgefree. Managed to get servers running on the 4 cores of the Pi3. I've pasted my method for this at the end of this message. The only problems is that I don't know how to access the servers once they're all created. For example, the following command in a terminal shows that the 4 servers are running (and I've tested them with taskset and they are associated with each of the 4 cores on the Pi3): pi@raspberrypi:~/scripts $ ps -ef | grep scsynth The first Server was created with NetAddr("127.0.0.1", 57200) - see below Running sclang again, I thought then that I might be able to
create an instance of the server with the following: n = NetAddr("127.0.0.1", 57200); This however results in the following: s1 : setting clientID to 0. It also kills off Server 1 running on core 1. Any suggestions please on what I can do to access the servers created on cores 1-4? I'll paste below the technique I used to create the 4 servers. All the best, Iain
Created 4 .scd files. Contents of launchserver1.scd: n = NetAddr("127.0.0.1", 57200); Contents of launchserver2.scd: n = NetAddr("127.0.0.1", 57201); Contents of launchserver3.scd: n = NetAddr("127.0.0.1", 57202); Contents of launchserver4.scd: n = NetAddr("127.0.0.1", 57203); Then to launch everything, a bash script with the following: #!/bin/bash killall -9 sclang scsynth /usr/bin/taskset -c 0 sclang /home/pi/scripts/launchserver1.scd /usr/bin/taskset -c 1 sclang /home/pi/scripts/launchserver2.scd /usr/bin/taskset -c 2 sclang /home/pi/scripts/launchserver3.scd /usr/bin/taskset -c 3 sclang /home/pi/scripts/launchserver4.scd exit 0 Em 11/01/2018 17:42,
sludgefree@xxxxxxxxx escreveu:
-- _________ Iain Mott http://escuta.org |