Alex, I went back and re-read the entire thread. It explained it all. I have followed your instructions except the last items.
I opened terminal and tried to "cd" over to the new "/pd/usr/" directory. I receive the response: No such file or directory. Did you mean pd/src/? There is a "configure" in there. I assumed that you meant pd/src/ so, I ran the ./configure and make from pd/src/.
I still must supply command line flags to get it to work with my Fastlane 2X2 (USB MIDI).
So, I typed the following at the command line: % ./pd -midiindev 0,1 -midioutdev 2,3 using default input device number: 0 using default output device number: 2 nchan 2, flags 3, bufs 8, framesperbuf 256 PortAudio on OS X - Latency = 2048 frames, 46 msec
I can now send and receive MIDI from either port of my Fastlane. MIDI
channels 1-16 come from portA and MIDI channels 17-33 come from portB.
Just like it should.
On the audio front. If I use the Built-in Audio controller, everything is fine. If, however, I try to use my Mbox things do not go well. It appears to only have 1 in and 1 out
./pd -listdev Number of devices = 4 ---------------------------------------------- #1 DefaultInput Name = Built-in audio controller Max Inputs = 2, Max Outputs = 0 Sample Rates = 44100.00, Native Sample Formats = paFloat32, ---------------------------------------------- #2 Name = Digidesign HW ( MBox ) Max Inputs = 1, Max Outputs = 0 Sample Rates = 44100.00, 48000.00, Native Sample Formats = paFloat32, ---------------------------------------------- #3 DefaultOutput Name = Built-in audio controller Max Inputs = 0, Max Outputs = 2 Sample Rates = 44100.00, Native Sample Formats = paFloat32, ---------------------------------------------- #4 Name = Digidesign HW ( MBox ) Max Inputs = 0, Max Outputs = 1 Sample Rates = 44100.00, 48000.00, Native Sample Formats = paFloat32,
When I try to tell pd that it has 2 channels, like this: % ./pd -inchannels 2 -outchannels 2 -audioindev 2 -audiooutdev 4 -nomidi nchan 2, flags 3, bufs 8, framesperbuf 256 PortAudio on OS X - Latency = 2048 frames, 46 msec Error number -9999 occured opening portaudio stream Error message: Invalid number of channels.
I am unsure of the meaning of the error message Error number -9999
If I lie to pd and tell it that the Mbox has only one channel: % ./pd -inchannels 1 -outchannels 1 -audioindev 2 -audiooutdev 4 -nomidi nchan 1, flags 3, bufs 8, framesperbuf 256 PortAudio on OS X - Latency = 2048 frames, 46 msec
I can send and receive audio on one channel in and out. I wonder if this is a problem with the Mbox's coreaudio driver.
Thanks again Alex, I really appreciate your helping me with this. Mitch
On Monday, April 21, 2003, at 04:43 PM, Alex wrote:
Hi,
If you take that thread from the top everything has been explained. Here again, the installer from adam is good but a newly updated version of portaudio has been released that solves problems similar to yours. So you need to re-compile pd, for that get an 'extended2' tree of pd, there: http://prdownloads.sourceforge.net/pure-data/pd-0.36-extended2.tar.gz -replace your old pd directory with that new one (it is recommended to put pd directory under /usr/local/) -then donwload the source of the latest release of portaudio, there: http://www.portaudio.com/archives/pa_snapshot_v19.tar.gz -inside the portaudio directory(the one you have downloaded), there is a 'pa_mac_core' directory and inside there is the file 'pa_mac_core.c'. Replace that file inside the portaudio directory of pd and only that file. -then you need to create yourself two directory inside pd directory 'bin' and 'obj'. -finally go to your console cd under /pd/usr/ and do ./configure and make.
let me know. Alex
On Monday, April 21, 2003, at 08:58 pm, Mitchell Turner wrote:
Alex, I have not re-complied any part of PD. I got the Adam Lindsay distribution. So what ever it has, I have. Where can I get portaudio and how do I re-compile pd with it? I do not think that I have any of the source code for PD. I am keeping all of my pd stuff in: ~/pd I do have some source files in: ~/pd/portaudio I'd be interested to know what needs re-compiling and where to get it. Thanks, Mitch
On Monday, April 21, 2003, at 03:29 PM, Alex wrote:
Hi Mitch,
This is exactely the same symptom I had with the Hammerfall and some other people with some other sound card. That has been solved with the new version of portaudio, are you sure you have recompilled pd with it ?
Alex On Monday, April 21, 2003, at 06:00 pm, Mitchell Turner wrote:
Which seems to indicate that the Mbox has 1 in and 1 out (at least that is how I read it). I may be interpreting the returned data incorrectly, however. Mitch
Mitchell Turner, Ph.D. Assistant Professor of Music LaGrange College 601 Broad Street LaGrange, GA 30240 USA
Office: 706-880-8015 FAX: 706-880-8028 mturner@lagrange.edu
I opened terminal and tried to "cd" over to the new "/pd/usr/" directory. I receive the response: No such file or directory. Did you mean pd/src/?
Hi Mitch,
Yes sorry, this is my mistake. I meant pd/src. For the audio problem: I have done what I described for my sound card because I had similar problems to yours. I did so with the latest version of portaudio(a week ago), so when I gave you the link I went directly to the portaudio download page and took the latest release. Now, according to guenter geiger, the V19(newly released) has different Api from V18, so it might be possible that I used the v18. I am not home until 7pm GTM and won' t be able to check that out before tonight, but to be sure I will send you my pa_mac_core file and you will recompile with it.
If that still does not work, it might be a problem with the Audiocore of your driver. Does it appear correctly in you Audio/Midi OSX application ? Do you use the card with some other third party softwares, does it work with them ?
I will send you the file this evening. Alex
Alex said this at Tue, 22 Apr 2003 16:00:56 +0100:
Now, according to guenter geiger, the V19(newly released) has different Api from V18, so it might be possible that I used the v18.
I'm almost entirely certain you used the v18 snapshot. Good catch by Günter. http://www.portaudio.com/archives/pa_snapshot_v18.tar.gz
adam
Alex, Thanks, I look forward to the file. Will I need to re-compile Pd with this new file or re-compile the pa_mac_core file?
I went to my Audio/MIDI setup application and Mbox shows up there as a 1-channel device? I am able to use it as a stereo I/O using Max/MSP 4.2 and PeakLE 3.2 , though it is very unstable. Am using the version 1.1 coreaudio driver from digidesign. Mitch
On Tuesday, April 22, 2003, at 11:00 AM, Alex wrote:
I opened terminal and tried to "cd" over to the new "/pd/usr/" directory. I receive the response: No such file or directory. Did you mean pd/src/?
Hi Mitch,
Yes sorry, this is my mistake. I meant pd/src. For the audio problem: I have done what I described for my sound card because I had similar problems to yours. I did so with the latest version of portaudio(a week ago), so when I gave you the link I went directly to the portaudio download page and took the latest release. Now, according to guenter geiger, the V19(newly released) has different Api from V18, so it might be possible that I used the v18. I am not home until 7pm GTM and won' t be able to check that out before tonight, but to be sure I will send you my pa_mac_core file and you will recompile with it.
If that still does not work, it might be a problem with the Audiocore of your driver. Does it appear correctly in you Audio/Midi OSX application ? Do you use the card with some other third party softwares, does it work with them ?
I will send you the file this evening. Alex
Hi Mitch,
Adam and Guenter were right I used V18 of PA. Sorry about that, I did not pay attention when directing you. I send you the file separately anyway because it might be another problem if you tell that your device shows up as a 1-channel card within your Audio/Midi OSX application.
Alex
On Tuesday, April 22, 2003, at 05:58 pm, Mitchell Turner wrote:
Alex, Thanks, I look forward to the file. Will I need to re-compile Pd with this new file or re-compile the pa_mac_core file?
I went to my Audio/MIDI setup application and Mbox shows up there as a 1-channel device? I am able to use it as a stereo I/O using Max/MSP 4.2 and PeakLE 3.2 , though it is very unstable. Am using the version 1.1 coreaudio driver from digidesign. Mitch