Skip to content

Commit

Permalink
Update scsynthexternal.rb
Browse files Browse the repository at this point in the history
remove block size change due to raspberry_pi_1 (no longer possible)
Add pulseAudio input hooks to SuperCollider.
#added reminder boot_server_linux needs further work
  • Loading branch information
rbnpi authored Jan 30, 2021
1 parent cef69f2 commit e9a8dae
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/server/ruby/lib/sonicpi/scsynthexternal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def boot_server_raspberry_pi
puts "Jackd already running. Not starting another server..."
end

block_size = raspberry_pi_1? ? 512 : 128
block_size = 128

local_scsynth_opts = {
"-c" => "128",
Expand All @@ -429,17 +429,19 @@ def boot_server_raspberry_pi

boot_and_wait(scsynth_path, scsynth_opts)

`jack_connect SuperCollider:in_1 system_capture_1`
`jack_connect SuperCollider:in_2 system_capture_2`
`pactl load-module module-jack-source connect=0 client_name=JACK_to_PulseAudio`
`pactl load-module module-loopback source=jack_in`
`pactl load-module module-jack-sink channels=2 connect=0 client_name=PulseAudio_to_JACK`
`jack_connect PulseAudio_to_JACK:front-left SuperCollider:in_1`
`jack_connect PulseAudio_to_JACK:front-right SuperCollider:in_2`
`jack_connect SuperCollider:out_1 JACK_to_PulseAudio:front-left`
`jack_connect SuperCollider:out_2 JACK_to_PulseAudio:front-right`

sleep 3
end

def boot_server_linux
#to do -- needs further work
log_boot_msg
puts "Booting on Linux"
#Start Jack if not already running
Expand Down

0 comments on commit e9a8dae

Please sign in to comment.