On Wed, 2012-07-04 at 08:20 +0200, Stefan Thomas wrote:
> Dear Iain,
> I did as You suggested, the problem remains the same.
> One problem might be:
> When I reinstall PD some of the other PD-related packages will be
> reinstalled to.
> But I've read in the meantime, that my problem could be a bug, related
> to my version of PD.
> It seems to be the same problem like the one, I have read on this
> site:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=645041
> 

Yep. It seems to be a bug with that release. 

I've added an example as an attachment. Should be enough to check if
everything works.

Alsa works for me, but it doesn't work well at lower latencies. Jack is
preferred for that. 
Only, to get lower latencies with jack, you'll need to install
linux-lowlatency (low latency capable linux kernel) and set up realtime
privilege (all this is done if you installed Ubuntu Studio).

To set up realtime privilege, you'll need to do a few things.

First, install linux-lowlatency: sudo apt-get install linux-lowlatency

Second, you need to answer yes when asked about this when installing
jack. If unsure, see that the file /etc/security/limits.d/audio.conf is
not named /etc/security/limits.d/audio.conf.disabled. To rename it, do
this in a terminal:
sudo mv /etc/security/limits.d/audio.conf.disabled
/etc/security/limits.d/audio.conf
Inside that file, you need to have these two lines uncommented (they
should be by default):

@audio   -  rtprio     95
@audio   -  memlock    unlimited

If the file doesn't exist, just create it: sudo nano
/etc/security/limits.d/audio.conf
..and add the two lines above.

The third thing to do is to add yourself to audio group: sudo usermod -a
-G audio $USER

Then, reboot.

Latency is adjusted separately for both jack and pd. I believe jack
handles audio latency when used with pd, while pd handles its' internal
data latency.
Good latency for me is 64 frames/period in qjackctl settings, and around
5-10 ms in pd jack settings.


|----------------
  [email protected]
     ---------------------|
#N canvas 580 461 726 423 10;
#X obj 317 316 dac~;
#X obj 326 70 osc~ 440;
#X obj 326 101 *~ 0.5;
#X obj 327 221 *~;
#X msg 374 184 \$1 20;
#X obj 437 155 tgl 15 0 empty empty toggle_audio_out 17 7 0 10 -262144
-1 -1 0 1;
#X obj 374 206 line~;
#X obj 134 135 env~ 8192;
#X floatatom 134 172 5 0 0 0 signal - -;
#X text 350 319 this is the puredata output;
#X text 383 71 simple sinus in 440 Hz;
#X text 36 194 will show activity \, when you turn on dsp;
#X msg 80 55 \; pd dsp 1;
#X msg 141 55 \; pd dsp 0;
#X text 84 36 toggle dsp;
#X obj 246 273 env~ 8192;
#X floatatom 246 310 5 0 0 0 signal_out - -;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 2 0 7 0;
#X connect 3 0 0 0;
#X connect 3 0 0 1;
#X connect 3 0 15 0;
#X connect 4 0 6 0;
#X connect 5 0 4 0;
#X connect 6 0 3 1;
#X connect 7 0 8 0;
#X connect 15 0 16 0;
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to