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
MIDI and recording
In Linux the JACK 'system' inputs and outputs are limited to what you physically have on your soundcard, but inputs and outputs of the software that connects to JACK are controlled by said software.
In the preferences in PD you can specify how many input and output channels you want PD to use.These channels will show up in the JACK patchbay under 'puredata'.
The DAW that I use is Ardour, and when you add tracks in the program, those channels show up in the JACK patchbay. Each track will get an input and an output that can be connected to the input or output of another program. In this case you want your outputs from puredata to connect to the inputs of the individual tracks in Ardour.
If you don't see the inputs and outputs from puredata or your DAW in the JACK patchbay then:
- your software is not connecting to JACK...it's probably connecting directly to ALSA
or - you are starting the software before you start JACK, in which the software isn't getting registered with JACK, and JACK can't manage the connections.
I'll make some screenshots for you if that will help
Load meter rises when dsp turned off
Has anyone experienced the CPU load going up gradually in a patch when the dsp is switched off? When my dsp is on, the load metre is around 29-40 percent. When I turn it off, it falls to 4 percent then starts climbing gradually in steps until it can go well into the 370 percent zone, and then crash (that's only if I turn my back for ten minutes). The gradual climb goes up say 3 percent then down 2 percent, and then up 3 again and so on, rather than just a constant climb. I thought it might be some kind of feedback I have in the patch, but can't understand why this wouldn't occur when the dsp is on.
Export patch as rtas?
@Maelstorm said:
If you're on OSX, jack can be used as an insert plug-in so you can avoid the separate tracks, but you still get the latency.
which you can, depending on your host, eliminate by setting the track delay for the track with the plugin. So if the buffer is 512 sample/11.82 ms then set the delay to that and it should be spot on.
I've had the whole Jack graph latency explained to me numerous times by Stephane Letz and it still doesn't go in.....Heres what he told me...
> > Its the Pd > JAck > Ableton latency. (Ableton has otoh 3 different
> > ways of manually setting latency compensation - I'm just not very
> > clear on where to start with regards to input from JAck)
> >>>>
>
> This is NO latency introduced in a Pd > JAck > Ableton kind of
> chain; the JACK server activate each client in turn (that is Pd *then*
> Ableton in this case) in the *same* given audio cycle.
>
> Remember : the JACK server is able to "sort" (in some way) the graph
> of all connected clients to activate each client audio callback at the
> right place during the audio cycle. For example:
>
> 1) in a sequential kind of graph like IN ==> A ==> B ==> C ==> OUT,
> JACK server will activate A (which would typically consume new audio
> buffers available in machine audio IN drivers) then activate B (which
> would typically consume "output" just produced by A) , then activate
> C , then produce the machine OUT audio buffers.
>
> 2) in a graph will parallel sub-graph like : IN ==> A ==> B ==> C
> ==> OUT and IN ==> D ==> B ==> C ==> OUT (that is both A and D are
> connected to input and send to, then JACK server is able to
> activate A and D at the same time (since the both only depends of IN)
> and a multi-core machine will typically run A and D at the same time
> on 2 different cores. Then when A *and* D are finished, B can be
> activated... and so on.
>
> The input/output latency of a usual CoreAudio application running
> is: driver input latency + driver input latency offset + 2
> application buffer-size + driver output latency + driver output
> latency offset.
>
this next part is the important bit i think...
> For a graph of JACK clients: driver input latency + driver input
> latency offset + 2 JACK Server buffer-size + ( one extra buffer-
> size ) + driver output latency + driver output latency offset.
>
> (Note : there is an additional one extra buffer-size latency on OSX,
> since the JACK server is running in the so called "asynchronous" mode
> [there is also a "synchronous" mode without this one extra buffer-size
> available, but it is less reliable on OSX and we choose to use the
> "asynchronous" mode by default.])
>
> Stephane
>
Bonked beat slicer
ok, decided to upload the newest version chop_suey 3.2. this is probably the most "polished" version. changes since version 2:
-
enhanced slice detection, more cpu wise and with automatic analysis settings when loading a new loop.
-
markers can now be edited via sliders: visual delete, move and insert sliders.
-
shortcuts: playback single slices through shifting through the loop with "shift + arrow keys". delete selceted marker with "shift + d", insert marker at insert position with "shift + i", play selected slice with "shift + p"
-
dump slices as wav files: with the "dump" button you can save all slices as single wav files to disk (only the pure slices, changes in the sequencer or any other settings will not affect the files)
-
smooth slices / amp envelope: set attack and decay up to 50 % of the slice length.
please leave a comment if you have any suggestions.
have fun!
How do you guys use PD with other audio programs?
didnt know jack also worked for windows xp?
EDIT:just downloaded jack from the website,but i get all kinds of errors when i try to unzip?
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot open Versions\Current\Headers (jack-1.9.2\bin\osx_32bits\Jackmp.framework\Headers --> Versions\Current\Headers)
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Symbolic link points to missing file
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot open Versions\Current\Jackmp (jack-1.9.2\bin\osx_32bits\Jackmp.framework\Jackmp --> Versions\Current\Jackmp)
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Symbolic link points to missing file
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot open Versions\Current\Resources (jack-1.9.2\bin\osx_32bits\Jackmp.framework\Resources --> Versions\Current\Resources)
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Symbolic link points to missing file
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot create ersions\Current\Headers
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot create Versions\Current\Jackservermp
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot create Versions\Current\Resources
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot open jack-1.9.2\bin\osx_32bits\Jackservermp.framework\Resources (A --> jack-1.9.2\bin\osx_32bits\Jackservermp.framework\Resources)
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Symbolic link points to missing file
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot create Versions\Current\Panda
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot create Versions\Current\Resources
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot open jack-1.9.2\bin\osx_32bits\Panda.framework\Resources (A --> jack-1.9.2\bin\osx_32bits\Panda.framework\Resources)
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Symbolic link points to missing file
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot create Versions\Current\Headers
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot create Versions\Current\Jackmp
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot create Versions\Current\Resources
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot open jack-1.9.2\bin\osx_64bits\Jackmp.framework\Resources (A --> jack-1.9.2\bin\osx_64bits\Jackmp.framework\Resources)
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Symbolic link points to missing file
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot create Versions\Current\Headers
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot create Versions\Current\Jackservermp
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot create Versions\Current\Resources
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot open jack-1.9.2\bin\osx_64bits\Jackservermp.framework\Resources (A --> jack-1.9.2\bin\osx_64bits\Jackservermp.framework\Resources)
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Symbolic link points to missing file
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot create Versions\Current\Panda
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot create Versions\Current\Resources
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot open jack-1.9.2\bin\osx_64bits\Panda.framework\Resources (A --> jack-1.9.2\bin\osx_64bits\Panda.framework\Resources)
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Symbolic link points to missing file
! C:\Documents and Settings\administartor\Desktop\jack audio\jack-1.9.2.tgz: Cannot create
Random beat slicer
This is a beat slicer that slices a sample into 2, 4, 8 or 16 slices and then mixes the slices randomly. The number of slices can be changed during playback, the change won't take place until the next slice, so it is possible to start with an unsliced loop, slice it in half... then in 4ths etc.
There is also a 'random' option that randomly plays slices of 1/2 1/4 1/8 or 1/16 length.
tell me what you think!
Ubuntu Studio 9.04 and pd-extended
Yeah but OSS doesn't work either. Will mess around with both ALSA and OSS settings within pd a little more, but seems like my only option is jack even if it keeps crackling.
I wouldn't know about mac, but so far Linux has been the best option for me. Earlier I didn't have to do anything and everything worked automatically (Ubuntu Studio 7.10 for around a year and a half maybe), but as soon as I updated I've been having problems I don't seem to be able to solve.
EDIT: Ok my bad, I had jack running while I tried to use OSS, OSS works fine. But I would prefer some day (when I get better at pd) using it connected to other programs (Renoise), and when I try to use jack the terminal says: "cannot lock down memory for RT thread (Cannot allocate memory)" and jack gets dozens of xruns in seconds, so it crackles the whole time. The same thing with ALSA.
I tried to use OSS with jack but that didn't work at all, my mouse started lagging and the jack messages window was filled with "delay of 2656.000 usecs exceeds estimated spare time of 2621.000; restart ..."
How to run pd w/o gui?
I use:
pd -jack -alsamidi -nogui -open /some/file
but I still cannot see puredata in Jack Control 'Connections' window.
Same problem here. I use
pd -jack /some/file.pd but pd won't show up in the Jack Control Connections window. When I change to ALSA manually after pd launched I get an error (obviously) since Jack already uses the alsa output. After changing back to Jack in pd it suddenly works.
Another question: how can I set "audio ON" straight from the command line?
Pd output to another audio software
under preferences:
input device1: jack, channel 2
output device1: same as input.
compute audio is checked on
under the media menu:->port audio:
input device 1 : jack router 2 channels
output device 1: jack server 2 channels
under the media menu->jack
input device1: jack, channel 2
output device1: same as input. channel 2
the machine i'm using is a g5 xserve machine with a virtual output, located in a rack far away from me, behind the locked doors of an IT dept that has granted me remote desktop access. Though while it was at my place it was connected to an USB audio interface it had sound output when doing the audio/ MIDI tests or just patching an oscillator.
I'm not doing realtime audio output but recording to an mp3. my mp3 contains sounds generated from oscillators and samples, but none from the MIDI instrument i am triggering inside pd and played through simple synth.
Curiously jack display in its routing window both pd and simple synth, but also another instance of pd, named: pure_data_0, though i don't have two instances of pd running simultaneously.
I emailed jackosx and stephane letz replied back saying:
"Last time i checked the way PureData access jack, it was just broken! I mean the PD jack
code (implemented in a s_audio_jackd.c) has several problems, one of which is *never*
correctly closing the jack client. This could explain the fact you see several instances
of jack client.
I suggest to send a mail to PD developer and signaling the problem."
his comments makes me think the same problem cold be encountered using soundflower. so before i go down that patch, i'd rather finish thoroughly troubleshooting this combo, with the help of other users...
jean