Hi all,
I was trying last night to start pd from command line with the appropriate sound card selected. I tried pd -alsa -alsadev hw:1,0 and also replacing the space between the soundcard and the -alsadev with a = and :. On every case pd did not recognize the commands. I also tried pd -listdev - this caused some sort of seg fault. I was trying this on the version of puredata which comes preinstalled with pure dyne. The name of the card which appears on the alsa drop down list within pd is Layla24(hardware) and Layla24(plugin).
therefore I tried this pd -alsa -alsadev Layla24(hardware) pd -alsa -audioindev Layla24(hardware)
again tried both cases with = and : in the space. both failed with an error; something to do with a bad file descriptor? Any suggestions anyone, I can try to trap the seg fault later on with the pd -listdev. As getting this to work would surely throw some light on the situation.
Last questions ,I think this might be a long shot but is there a way to interface via command line with Jackd to connect midi inputs and outputs. I could not explicitly see anything in the docs. I was hoping to connect pd midi i/o to my layla midi i/o without having to do it by hand through qjackctrl.
regards, Conor
Hallo, forwinder hat gesagt: // forwinder wrote:
I was trying last night to start pd from command line with the appropriate sound card selected. I tried pd -alsa -alsadev hw:1,0 and also replacing the space between the soundcard and the -alsadev with a = and :. On every case pd did not recognize the commands.
Recently I struggled with the same thing until I discovered the logic behind the ALSA device numbering. The option to use to select an ALSA soundcard actually is "-alsa -audiodev NUMBER". (I'm not sure if "-alsaadd" does anything at all.)
Now how to find NUMBER? Two rules:
a) it starts counting at 1, not at 0. b) Every physical soundcard found will result in two "-audiodev" numbers for ALSA: one hw-device and one plughw-device.
This is probably best explained with an example:
Assume you have two soundcards, e.g.
$ cat /proc/asound/cards 0 [M2496 ]: ICE1712 - M Audio Audiophile 24/96 M Audio Audiophile 24/96 at 0xf500, irq 11 1 [Audio ]: USB-Audio - USB Audio USB Audio at usb-0000:00:10.4-1.4, full speed
Then "-alsa -audiodev 1" will open hw:0, "-alsa -audiodev 2" will open plughw:0, "-alsa -audiodev 3" will open hw:1 and "-alsa -audiodev 1" will open plughw:1
Frank Barknecht _ ______footils.org_ __goto10.org__
Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote:
Then "-alsa -audiodev 1" will open hw:0, "-alsa -audiodev 2" will open plughw:0, "-alsa -audiodev 3" will open hw:1 and "-alsa -audiodev 1" will open plughw:1
The last one should of course read: "-alsa -audiodev 4" will open plughw:1
Frank Barknecht _ ______footils.org_ __goto10.org__