Hi,
I am trying to route audio through pd using Jack on my Mac OSX (Snow Leopard). I start JackPilot, and then I start pd-extended from command line with the flags -jack and -channels 16. Then I open up the patch and then I open up Spotify and iTunes. The patch is supposed to switch between Spotify and iTunes play back depending on which input adc~ I choose and accordingly give me control over the output levels using the sliders in the patch (the patch is a virtual mixer). I have a few questions:
channels have to go in and out of Jack itself? 2. Do the number of input and output channels have to be the same (8 and 8 in this case) or can they be different? When I tried starting pd with 18 channels and then assigned 16 to Jack incoming and 2 to built-in output for outgoing, terminal threw an error saying 'invalid number of channels' 3. I want to have 8 channels from one adc~ and another 8 from the other. This means all 16 channels are meant for input. How then do I route output from pd to the speakers? 4. If I am only inputting 16 channels through Jack can I use the dac~ object to output sound from pd to the speakers?
I am quite confused here being a novice in pd and need to get some results very very quickly. I have used this patch before to route sound and it worked fine. I don't know why it's not doing that before. I enable audio in the Media window and selected jack instead of portaudio, still no sound or terminal errors :'( .
Any help would be awesome!
Thanks, Rishabh
On Thu, Apr 19, 2012 at 9:49 AM, Rishabh Natarajan < rishabh.natarajan@gmail.com> wrote:
- When starting pd with jack and 16 channels, does this mean that all 16
channels have to go in and out of Jack itself?
no.
- Do the number of input and output channels have to be the same (8 and 8
in this case) or can they be different?
they can be different.
When I tried starting pd with 18 channels and then assigned 16 to Jack incoming and 2 to built-in output for outgoing, terminal threw an error saying 'invalid number of channels'
I am not sure on this one but I think that if Pd does not find as many physical (or jack) inputs or outputs it will warn you. When you do provide enough IO you can reconfigure Pd for the new values and it should work (if you cross your fingers).
This means all 16 channels are meant for input. How then do I route output from pd to the speakers?
you specify -audioindev 1,2 for example. You can specify -audiooutdev in the same way and then you create the appropriate [dac~] objects. BTW, I believe you can create aggregate devices on Mac (somewhere in the sound preferences, I believe JackPilot manuals mentions that) to combine different audio inputs and outputs. I vaguely recall doing something like this in the past. Then you tell jack to use your aggregate, this may simplify your setup routine...
- If I am only inputting 16 channels through Jack can I use the dac~
object to output sound from pd to the speakers?
if you run jack (and pd with -jack) then your [dac~] objects can be connected to jack's outputs, i.e. Pd's inputs and outputs will appear in JackPilot and you can route them any way you want to your system provided I/O. Assuming that JackPilot uses the actual physical I/O, you should be able to output sound from Pd to the speakers.
HTH,
./MiS
Thanks for writing to me Michal.
I guess after doing some experimentation with Jack and pd I seemed to have arrived at some of the conclusions you've mentioned here :)
I will keep working on it.
Regards, Rishabh
On Fri, Apr 20, 2012 at 7:16 PM, Michal Seta mis@artengine.ca wrote:
On Thu, Apr 19, 2012 at 9:49 AM, Rishabh Natarajan < rishabh.natarajan@gmail.com> wrote:
- When starting pd with jack and 16 channels, does this mean that all 16
channels have to go in and out of Jack itself?
no.
- Do the number of input and output channels have to be the same (8 and
8 in this case) or can they be different?
they can be different.
When I tried starting pd with 18 channels and then assigned 16 to Jack incoming and 2 to built-in output for outgoing, terminal threw an error saying 'invalid number of channels'
I am not sure on this one but I think that if Pd does not find as many physical (or jack) inputs or outputs it will warn you. When you do provide enough IO you can reconfigure Pd for the new values and it should work (if you cross your fingers).
- I want to have 8 channels from one adc~ and another 8 from the other.
This means all 16 channels are meant for input. How then do I route output from pd to the speakers?
you specify -audioindev 1,2 for example. You can specify -audiooutdev in the same way and then you create the appropriate [dac~] objects. BTW, I believe you can create aggregate devices on Mac (somewhere in the sound preferences, I believe JackPilot manuals mentions that) to combine different audio inputs and outputs. I vaguely recall doing something like this in the past. Then you tell jack to use your aggregate, this may simplify your setup routine...
- If I am only inputting 16 channels through Jack can I use the dac~
object to output sound from pd to the speakers?
if you run jack (and pd with -jack) then your [dac~] objects can be connected to jack's outputs, i.e. Pd's inputs and outputs will appear in JackPilot and you can route them any way you want to your system provided I/O. Assuming that JackPilot uses the actual physical I/O, you should be able to output sound from Pd to the speakers.
HTH,
./MiS
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2012-04-21 01:16, Michal Seta wrote:
When I tried starting pd with 18 channels and then assigned 16 to Jack incoming and 2 to built-in output for outgoing, terminal threw an error saying 'invalid number of channels'
I am not sure on this one but I think that if Pd does not find as many physical (or jack) inputs or outputs it will warn you. When you do provide enough IO you can reconfigure Pd for the new values and it should work (if you cross your fingers).
you don't do it like this. when using jack, you should only be using jack (while Pd can use "multiple devices", this is really means "mutliple devices on _one_ audio backend, not multiple backends simultaneously; jack is one backend; portaudio another backend; furthermore, i don't think multiple outputs work on anything but linux/alsa)
having said all that, i don't really understand your question. use jack as Pd's sole audio interface, and then use jack-pilot or qJackCtrl to route 2 outputs of Pd to your soundcard and the others to wherever. there is no need to complicate things by doing the routing in jack, Pd, audioox and whatnot, when jack can handle everything just fine.
3. I want to have 8 channels from one adc~ and another 8 from the other. This means all 16 channels are meant for input. How then do I route output from pd to the speakers?
what's the audio output of Pd todo with the audio input of Pd?
it would be good if you could sketch what you really want to do, rather than how to attempt to solve it.
afaics it is something like:
(another 8 channels) go into Pd, let Pd do some processing on that and send the output of Pd to the stereo output of your computer. SO
signals from iTunes using [adc~ 1 2 3 4 5 6 7 8] and the signals from iSpit using [adc~ 9 10 11 12 13 14 15 16]
mghadrt IOhannes