iirc, you should use the same user to start jackd and Pd. so if you run Pd as user "chi", than you should also run jackd as user "chi". the same if you use root (which i don't recommend; you should rather fix your /etc/security/limits.conf to be able to run realtime processes as member of the audio-group).
Thanks..
I've resolved the problem of "user" adding (as root) those rows in /etc/security/limits.conf:
@audio - rtprio 80 @audio - memlock 288000 #288000 because my RAM is 576 MB @audio - nice -10
and I set user in "audio" member group. _______________________ In JACK setup I set: realtime, priority 80 midi driver: seq _______________________ So now I can open qjackctl and start JACK correctly (play), but give me this error:
cannot use real-time scheduling (FIFO at priority 90) [for thread -1238557840, from thread -1238557840] (1: Operation not permitted)
Now I open pd, and in "media" I select: JACK, and ALSA-MIDI.
Then I open JACK connections: I see 2 windows: AUDIO and MIDI. Here, in both windows, I connect pd with my SB LIVE! sound card. ____________________________________________ Now, running some patch in pd, happen this:
1)in a audio patch (for example a simple oscillator with a slide..) *I can listen sound correctly* (even if with a fastidious background noise) and I can change frequency well with the slide.
2)in a midi patch (a patch certainly correct, tested in o.s. Windows..!) *I can't listen anything*. I see numbers change, but *no sound*.
PD give me this error:
audio I/O error history: seconds ago error type 1.39 A/D/A sync 3.25 A/D/A sync 3.28 A/D/A sync 3.37 A/D/A sync 3.38 A/D/A sync (..etc..etc..similarly)
Thank you in advance, cb
Carica e scarica in un clic. Fino a 25 GB su SkyDrive http://www.windowslive.it/skyDrive.aspx
chi ball wrote:
Then I open JACK connections: I see 2 windows: AUDIO and MIDI. Here, in both windows, I connect pd with my SB LIVE! sound card.
good.
1)in a audio patch (for example a simple oscillator with a slide..) *I can listen sound correctly* (even if with a fastidious background noise) and I can change frequency well with the slide.
good (whatever the source of your background noise is; probably there is some hardware mixer that connects an open input to the output)
2)in a midi patch (a patch certainly correct, tested in o.s. Windows..!) *I can't listen anything*. I see numbers change, but *no sound*.
well. you have connected the MIDI-out of Pd to the MIDI-sink of your soundcard. i would expect that this means that you are sending the MIDI data to the "MIDI-out" jack on your soundcard. if you have connected a synth to the MIDI-out of your soundcard, than you should hear something. i don't know whether your soundcard has a built-in synth, but if so, you probably have to load a soundfont or similar first (if it work on linux at all; i have no experience withsuch things).
if you have neither external synth nor built-into-your-soundcard synth, you can as well run a software synth, e.g. timidity.
fgmadr IOhannes
Hi Chi
Am 26.11.09 01:49 schrieb "chi ball" unter c_cb@hotmail.it:
iirc, you should use the same user to start jackd and Pd. so if you run Pd as user "chi", than you should also run jackd as user "chi". the same if you use root (which i don't recommend; you should rather fix your /etc/security/limits.conf to be able to run realtime processes as member of the audio-group).
Thanks..
I've resolved the problem of "user" adding (as root) those rows in /etc/security/limits.conf:
@audio - rtprio 80 @audio - memlock 288000 #288000 because my RAM is 576 MB @audio - nice -10
and I set user in "audio" member group.
You need to make sure, that your user is a member of the group 'audio'. If not already done, please do:
sudo adduser <username> audio
whereas <username> should be replaced by your user name. To make sure, that jackd knows about the new permissions, log out and back in again. Check, if you're really now a member of the audio group by doing:
group
in a terminal. 'audio' should be listed in the output.
After having made sure, that you belog to the audio group and after the changes you made to /etc/security/limits.conf you definitely should be able to run jack with realtime privileges.
In JACK setup I set: realtime, priority 80 midi driver: seq _______________________ So now I can open qjackctl and start JACK correctly (play), but give me this error:
cannot use real-time scheduling (FIFO at priority 90) [for thread -1238557840, from thread -1238557840] (1: Operation not permitted)
Is jackd really running? Doesn't it say something like: 'killall jackd' and 'Could not connect to JACK Server as client'? However, if everything from above went well, you shouldn't see this message anymore, when starting jackd.
Now I open pd, and in "media" I select: JACK, and ALSA-MIDI.
Then I open JACK connections: I see 2 windows: AUDIO and MIDI. Here, in both windows, I connect pd with my SB LIVE! sound card. ____________________________________________ Now, running some patch in pd, happen this:
1)in a audio patch (for example a simple oscillator with a slide..) *I can listen sound correctly* (even if with a fastidious background noise) and I can change frequency well with the slide.
From the audio I/O errors you mention below, i can tell you that you're
still running pd with alsa, but not with jackd. After having made sure, that your jackd is running correctly, try this in a terminal:
pd -rt -jack -channels 2
Usually, you don't need even to manually connect pd to the soundcard in the connection window of qjackctl, but the connection should happen automatically.
2)in a midi patch (a patch certainly correct, tested in o.s. Windows..!) *I can't listen anything*. I see numbers change, but *no sound*.
Ok, i think, i kind of understand now, what you mean. If you send in windows MIDI to your SB Live, it'll produce GeneralMidi synthesizer sounds. I don't know how this works in details, i guess in some cases it is simply a software synthesizer in the driver. Probably some soundcards have this capability built into the hardware. The fact, that you don't hear anything in linux, when sending MIDI from pd, doesn't mean, that your Pd MIDI doesn't work, it simply means, that you're lacking a similar setup with some kind of synth. There are a lot of synths available also in linux, you might find one, that suits your needs. You would then need to connect Pd to 'yourSynth' in the connection window in the MIDI tab.
BTW: i found this page quite a helpful resource for setting up an audio system with linux:
https://help.ubuntu.com/community/UbuntuStudioPreparation
roman
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
Date: Thu, 26 Nov 2009 09:57:48 +0100 Subject: Re: [PD] problem with MIDI (linux) From: reduzierer@yahoo.de To: c_cb@hotmail.it; zmoelnig@iem.at CC: pd-list@iem.at
Hi Chi
Am 26.11.09 01:49 schrieb "chi ball" unter c_cb@hotmail.it:
Now, running some patch in pd, happen this:
1)in a audio patch (for example a simple oscillator with a slide..) *I can listen sound correctly* (even if with a fastidious background noise) and I can change frequency well with the slide.
From the audio I/O errors you mention below, i can tell you that you're still running pd with alsa, but not with jackd. After having made sure, that your jackd is running correctly, try this in a terminal:
pd -rt -jack -channels 2
With this jack run correctly! ..sound is clean, without noise. Thank you! :)
Usually, you don't need even to manually connect pd to the soundcard in the connection window of qjackctl, but the connection should happen automatically.
When I run pd, in "media" I see: "jack" and "default midi" already setted. I change only "default midi" in "alsa midi".
Then I open "qjackctl" panel, and I found 3 windows:
-in the second window (midi) I don't set anything. -in the thrd window ("Alsa") I found already all connected.
2)in a midi patch (a patch certainly correct, tested in o.s. Windows..!) *I can't listen anything*. I see numbers change, but *no sound*.
Ok, i think, i kind of understand now, what you mean. If you send in windows MIDI to your SB Live, it'll produce GeneralMidi synthesizer sounds. I don't know how this works in details, i guess in some cases it is simply a software synthesizer in the driver. Probably some soundcards have this capability built into the hardware. The fact, that you don't hear anything in linux, when sending MIDI from pd, doesn't mean, that your Pd MIDI doesn't work, it simply means, that you're lacking a similar setup with some kind of synth. There are a lot of synths available also in linux, you might find one, that suits your needs. You would then need to connect Pd to 'yourSynth' in the connection window in the MIDI tab.
Now I listen also MIDI notes, and this is due to a connection between "puredata" and "timididy" in "Alsa" window of qjackctl.
But I have a little *problem*:
-if in the same patch I change [metro 200] in [metro 10] the midi notes output goes in crash, is'n possible play midi notes speadily (instead in Windows this is possible).
Any suggestion for this problem? Thanks, c
P.S.: my o.s. is Mandriva 2010.0
:)
Messenger su ogni PC, prova la Web Bar! http://www.messenger.it/