PD-Jack synchronization
@ALON said:
After searching for a while I found a very interesting PD object:
jack_transport~
(The code is available at http://artdent.homelinux.net/svn/jack_transport~/ )
it's very useful for my application. It can have in PD information about the jack transport like:
BPM
Ticks
beat
measureI use the command line application jack_transport as master control to set the BPM and other tempo settings for the jack transport.
Then i can finally synchronize PD and Hydrogen.
Today this link: http://artdent.homelinux.net/svn/jack_transport~/ is dead. Where I can found jack_transport~ in another place? Thanks.
PD under jack OSX
i'm having trouble running PD under jack on OSX.
the patch i'm working with is very cpu intensive, but i optimized it as far as possible. when i run it with portaudio now, things are fine. i have to use high delay times of about 90ms to have things running smooth, but that's fine for me because it's more like soundscapeish stuff that don't need fast control response.
but when i use jack to route the outputs into ardour i get the typical audio cut-outs from too low latency (at 2048 buffersize maximum), and there seems to be no way to increase latency to the point where things work out under jack. at the same time though, cpu goes significantly down with jack, but still i get the clicks. very strange.
i've been told that the maximum latency is hardwired by the audio interface, but why can i increase the delay under portaudio to whatever amount i wish to have things working, but not under jack?
i hear that jack is supposed to be a "low latency audio driver" but for some reason it ruins the performance of my patch.
is there an alternative way to route 8 to 10 channels of audio into ardour?
thanks for any advice!
PD cuts off other sound on the computer
I did.
For command jackd I get this terminal output:
matjaz@matjaz-NV59C:~$ jackd
jackdmp 1.9.6
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2010 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
Cannot create thread 1 Operation not permitted
Cannot create thread 1 Operation not permitted
usage: jackdmp [ --no-realtime OR -r ]
[ --realtime OR -R [ --realtime-priority OR -P priority ] ]
(the two previous arguments are mutually exclusive. The default is --realtime)
[ --name OR -n server-name ]
[ --timeout OR -t client-timeout-in-msecs ]
[ --loopback OR -L loopback-port-number ]
[ --port-max OR -p maximum-number-of-ports]
[ --midi OR -X midi-driver ]
[ --verbose OR -v ]
[ --clocksource OR -c [ c(ycle) | h(pet) | s(ystem) ]
[ --replace-registry ]
[ --silent OR -s ]
[ --sync OR -S ]
[ --temporary OR -T ]
[ --version OR -V ]
-d backend [ ... backend args ... ]
Available backends may include: alsa, dummy, freebob, firewire or net
jackdmp -d backend --help
to display options for each backend
and for qjackctl:
The same control GUI opened where I clicked start.
15:38:11.262 Patchbay deactivated.
15:38:11.263 Statistics reset.
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
15:38:11.286 ALSA connection graph change.
15:38:11.482 ALSA connection change.
15:38:19.241 Startup script...
15:38:19.242 artsshell -q terminate
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
sh: artsshell: not found
15:38:19.646 Startup script terminated with exit status=32512.
15:38:19.646 JACK is starting...
15:38:19.646 /usr/bin/jackd -dalsa -d/dev/dsp -r44100 -p256 -n2 -Xseq
15:38:19.649 JACK was started with PID=2544.
Cannot create thread 1 Operation not permitted
Cannot create thread 1 Operation not permitted
jackdmp 1.9.6
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2010 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 10
Cannot lock down memory area (Cannot allocate memory)
ALSA lib control.c:882:(snd_ctl_open_noupdate) Invalid CTL /dev/dsp
control open "/dev/dsp" (No such file or directory)
ALSA lib control.c:882:(snd_ctl_open_noupdate) Invalid CTL /dev/dsp
control open "/dev/dsp" (No such file or directory)
audio_reservation_init
Acquire audio card Audio-1
creating alsa driver ... /dev/dsp|/dev/dsp|256|2|44100|0|0|nomon|swmeter|-|32bit
ALSA lib control.c:882:(snd_ctl_open_noupdate) Invalid CTL /dev/dsp
control open "/dev/dsp" (No such file or directory)
Cannot initialize driver
JackServer::Open() failed with -1
Failed to start server
15:38:19.743 JACK was stopped with exit status=255.
15:38:19.745 Post-shutdown script...
15:38:19.746 killall jackd
jackd: no process found
15:38:20.153 Post-shutdown script terminated with exit status=256.
15:38:21.703 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
15:38:31.152 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
15:38:42.143 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
15:39:02.300 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
I'm lost.
PD cuts off other sound on the computer
Thanks!
There seems to be similar thread going on with sonsofsol.
i installed jackd, when typing this command:
pacmd load-module module-jack-source channels=2; pacmd load-module module-jack-sink channels=2;
i get the following error
Welcome to PulseAudio! Use "help" for usage information.
>>> Module load failed.
>>> Welcome to PulseAudio! Use "help" for usage information.
>>> Module load failed.
when trying to connect pd with jack i get
error: JACK: unable to connect to JACK server
JACK: jack returned status 17
How to fix this?
Also in PD, when I choose ALSA midi, not Jack, then PD appears in Jack control.
Does this mean alsa-midi is the way to connect Pd to Jack? Not by choosing "Jack" in "media"?
M
Pd disables media players on ubuntu 10.10
thanx for your help guys.
i installed jackd, when typing this command:
pacmd load-module module-jack-source channels=2; pacmd load-module module-jack-sink channels=2;
i get the following error
Welcome to PulseAudio! Use "help" for usage information.
>>> Module load failed.
>>> Welcome to PulseAudio! Use "help" for usage information.
>>> Module load failed.
when trying to connect pd with jack i get
error: JACK: unable to connect to JACK server
JACK: jack returned status 17
anybody know how to fix this?
Pd disables media players on ubuntu 10.10
thanx guys, but it didnt wot for me...
i commented out al lines in /etc/init.d/pulseaudio.sh and restarted, but when i launch pd
music stops and when i try to select jack
i get
error: JACK: unable to connect to JACK server
JACK: jack returned status 17
pulsaudio is still visible in processes
any clue?
the radio sucks so much...
Using Jack with pd
Windows 7, pd extended, Live 8
I know there have been other posts on this, but I could not find a solution anywhere...
I am trying to use Jack to route multiple outputs (8) from pd to Ableton Live. I believe I have Jack installed correctly, and can route audio in both directions between Ableton and my external sound card via Jack "cables."
I am unable to get pd to show up in the Jack patch panel. I have chosen "ASIO (via portaudio)" from the pd media menu, then selected "(1)JackRouter" as my output device in audio settings, turned audio on, etc. but still pd does not show up in Jack.
I am hopeful someone can provide clear instructions for using Jack with pd on Windows.
Thank you!
MIDI latency in PD
Hi to all, this is my first post in this forum.
I'm trying to use PD's patches inside my setup, and now I'm struggling with the MIDI latency that PD creates.
First of all, I'm a drummer and I use a drumpad(DrumKat) to trigger samples on my laptop, so for me the latency is a 1st class problem.
I have two setups: one with Ubuntu 10.04(Kernel 2.6.33-29-realtime) + jack, and the other with OSX leopard + jackosx. The first one is the more tested.
I want to know the latency that PD creates between notein-noteout process.
To do this, I simply connected my drumpad to PD's midiin, PD's midiout to PD's midiin, and opened my patch(attached to this post).
If the patch is right, there is a link between jack's latency and PD's MIDI latency.
If I set jack's framebuffer to 256, I have 11.6 msec of audio latency and 5.8 ms of PD's MIDI latency.
If I set jack's framebuffer to 128, I have 5.8 msec of audio latency and 2.9 ms of PD's MIDI latency.
Is this correct? Is there a way to reduce MIDI latency without changing the audio latency of jack?
Thank you and sorry for my english.
Nicola
Pd-extended - ubuntu 10.04
Still not working. I tried both "pd -rt -jack" and "pd -jack" with the same result. Choosing "jack" from Media no longer presents the "audio stuck" message, but turning on "compute audio" results in silence. If I have the qjackctl connections window open, I do not see pd as a jack client (whereas, when I boot the supercollider server, it appears immediately as a client).
Obviously no sound from jack if there's no client and no connection! So, how do I get pd to hook into a jack server?
James
Building a modular synth
I'm not sure I entirely understand your first question. Why exactly would plugin support help your modular design in Pd?
As for routing audio, I use jackOSX with Pd all the time. Here's how it works for me:
- Open JackPilot.
- In the preferences, set your buffer size and such to your liking. The virtual ins and outs are important. These are the number of connections that will be allocated to each app.
- Start the server.
- Open Pd and, under the media menu, select jack mode. This will open the audio setting dialog with jack set as the input and output device. Adjust the channels to whatever you need.
- Open whatever other app you're using and set the input and output devices to jack server or whatever it says.
- Now, go back to JackPilot and click the Routing button. In the send ports (which are your apps' outputs) unfold Pd's and select and output. Under receive ports, unfold the other app and double click the input you want to connect to. Or vice versa if you're feeding into Pd. Also, make sure that you're routing the app with the mixed signal (probably the DAW, if you're using that) to the sound card's inputs. This is always labeled "system."
Yes, there will always be latency, but on OSX it seems to be minimized with jack. Even if you're using Pd on its own, you can get lower latency if you route through jack and then into the sound card. You will get added latency every time you go in and out, so try to minimize that. And multiple cores won't make a difference if you're only using Pd, as it will only run on a single core. If you're using other apps, then it might help as they may run on a different core than Pd.
As for the standardization, I know there are some who would like to see everything scaled in a 0-1 range. But I don't think it's that big of a deal in Pd when it comes to sharing patches, as Pd gives you what you need to convert ranges if you need to. I would just go with what works best for your particular needs. Sometimes standards set by others can get in the way.
If you haven't yet, check out hardoff's DIY2 library. It might give you some ideas.
http://puredata.hurleur.com/sujet-1982-diy2-effects-sample-players-synths-sound-synthesis
Hope that answers some of your questions.