-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to connect to a jack input port automatically (from dacBy)? #61
Comments
For me it produces the same result. This doc says that we can control jack connection with output flag like this But for me it segfaults either :( So I think as a workaraound we can do it like this. we can define something like this: run :: RenderCsd a => a -> IO ()
run expr = do
dacBy jackOptions expr
system "jack_connect ports"
system "jack_connect ports"
where
jackOptions = setRates 44100 128 <> setJack "ce" <> setDacBy "nil" and then use it in our examples instead of dac. Or we can redefine it as dac. This way you don't need to connect manually. We can do it with Haskell :) |
It's sad that csound primitive is not working. |
Also regarding jacko segfault. Doc for JackoAudioOutConnect says
Probably csound has to be built is special way to activate this plugin. |
Hi Anton, thanks for looking into this. I will investigate further, but probably not this week (too busy). Perhaps my students find a way ... |
looks related: csound/csound#1380 |
I've added function setJackConnect . It should do the job.
To use update to new version of CE |
it just invokes jack_connect on the list of posrts. Also thing I've noticed. Jack connection with working instance can cause unpleasant pops and cracks. dacBy (setJackConnect conns) $ at (delaySig 0.25) $ fromMono $ osc 110 |
Thanks! For documentation, here is the complete command that works for me:
Note the extra single-quotes, I needed this because of the spaces in the port name. It's still showing a lot of trace/log messages from jack, though (#60) |
<> setDacBy "nil" This line prohibits to auto-connect to default jack-ports. You don need to do it. If you use |
another work-around: make a persistent connection from This is not fully reliable - it sometimes happens that a csound process lives on in the background. Then the next instance will have port names starting |
When I use
dacBy (setJack "ce" <> ...)
, portsce:output1/2
are created, and connect tosystem:playback_1/2
. That's fine, I hear the sound.But for (remote) teaching, I need connections to another port as well (
PulseAudio JACK Source:front-left/right
) because that's being used by the video conference software (BBB, running in the browser, using WebRTC).I can manually make that connection in
qjackctl
but that's inconvenient (have to do it each time I evaluate an expression fromghci
).I thought that something like this would help
but I am getting
The text was updated successfully, but these errors were encountered: