Hi again...
Well, you all read the latest CVS corrects my slow mouse input woes (bravo!). Now perhaps some kind soul could elucidate the method of specifying correct audio device numbers at startup. The current OS X info in the online manual (sec. 3.4) is somewhat outdated. Btw, I'd be happy to contribute documentation to help ease other novice OSX users getting started (once I'm rolling).
I can only make noise with built-in audio!
pd -listdev produces the following... start ->
Number of devices = 4 ---------------------------------------------- #1 Name = Built-in audio controller Max Inputs = 2, Max Outputs = 0 Sample Rates = 44100.00, Native Sample Formats = paFloat32, ---------------------------------------------- #2 DefaultInput Name = Emagic EMI 2|6 Max Inputs = 2, Max Outputs = 0 Sample Rates = 44100.00, 48000.00, 96000.00, Native Sample Formats = paFloat32, ---------------------------------------------- #3 Name = Built-in audio controller Max Inputs = 0, Max Outputs = 2 Sample Rates = 44100.00, Native Sample Formats = paFloat32, ---------------------------------------------- #4 DefaultOutput Name = Emagic EMI 2|6 Max Inputs = 0, Max Outputs = 2 Sample Rates = 44100.00, 48000.00, 96000.00, Native Sample Formats = paFloat32, ---------------------------------------------- [MIDISportLike] count of items in device list is 1 [MIDISportLike] considering service whose index is 0 [MIDISportLike] considering service whose index is 1 [MIDISportLike] considering service whose index is 2 [MIDISportLike] considering service whose index is 3 [MIDISportLike] InterfaceStarter::Notify [MIDISportLike] count of items in device list is 1 [MIDISportLike] a MIDI device under consideration has offline 1 [MIDISportLike] a MIDI device under consideration has product ID 4098 [MIDISportLike] the MIDI device under consideration matched the product ID for which we were searching [MIDISportLike] we found a MIDI device in the configuration, so we will simply use it [MIDISportLike] searching for dead sport pair with index 1 [MIDISportLike] found no extant suitable pair and creating one 1 [MIDISportLike] searching for dead sport pair with index 0 [MIDISportLike] found no extant suitable pair and creating one 0 [MIDISportLike] considering service whose index is 4 0: CoreMIDI, Port B (input) 1: CoreMIDI, Port B (input) 2: CoreMIDI, Port B (output) 3: CoreMIDI, Port B (output) could not open midi output device number 1: Invalid device ID. using default input device number: 1 using default output device number: 3 nchan 2, flags 3, bufs 8, framesperbuf 256 PortAudio: input and output must use same CoreAudio device! Error number -9997 occured opening portaudio stream Error message: Invalid device ID. Bus error
<- end
While pd -audioindev 2 -audiooutdev 4 produces... start ->
[MIDISportLike] count of items in device list is 1 [MIDISportLike] considering service whose index is 0 [MIDISportLike] considering service whose index is 1 [MIDISportLike] considering service whose index is 2 [MIDISportLike] considering service whose index is 3 [MIDISportLike] InterfaceStarter::Notify [MIDISportLike] count of items in device list is 1 [MIDISportLike] a MIDI device under consideration has offline 1 [MIDISportLike] a MIDI device under consideration has product ID 4098 [MIDISportLike] the MIDI device under consideration matched the product ID for which we were searching [MIDISportLike] we found a MIDI device in the configuration, so we will simply use it [MIDISportLike] searching for dead sport pair with index 1 [MIDISportLike] found no extant suitable pair and creating one 1 [MIDISportLike] searching for dead sport pair with index 0 [MIDISportLike] found no extant suitable pair and creating one 0 [MIDISportLike] considering service whose index is 4 could not open midi output device number 1: Invalid device ID. nchan 2, flags 3, bufs 8, framesperbuf 256 PortAudio: input and output must use same CoreAudio device! Error number -9997 occured opening portaudio stream Error message: Invalid device ID. Bus error
<- end
And no sound from my Emagic emi 2|6 audio interface (which works well with all other apps).
Any thoughts?
thanks,
===== -r-
__________________________________________________ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2
I believe Ryan Gallagher said this around Tue, 12 Nov 2002:
And no sound from my Emagic emi 2|6 audio interface (which works well with all other apps).
Any thoughts?
Can you get it working in just half-duplex? (like 'pd -audiooutdev 4')
It looks like it *might* be the long-standing portaudio mac_core failure to handle full-duplex across USB interfaces that present themselves to coreaudio as multiple devices. However, relatively recently Phil Burk made some progress in improving this shortcoming:
http://techweb.rfa.org/pipermail/portaudio/2002-October/001268.html
Although I've been watching this issue, I don't have any external devices to test on. (But I'm in the market--I was considering the Edirol UA-5, but the reviews here lately have put me off that.) You might like to try experimenting with a current CVS snapshot and 0.36-test5. I'm looking at it now, too.
http://www.portaudio.com/archives/pa_snapshot_v18.tar.gz
adam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Adam Lindsay +44(0)1524 594 537 atl@comp.lancs.ac.uk http://www.comp.lancs.ac.uk/computing/users/atl/ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
I believe Adam Lindsay said this around Tue, 12 Nov 2002:
You might like to try experimenting with a current CVS snapshot and 0.36-test5. I'm looking at it now, too.
Okay, I gave a look. I grabbed the above tarball and took the file portaudio/pa_mac_core/pa_mac_core.c (dated 2002/10/18), and put it in the place of the existing pa_mac_core.c in pd-0.36-test5. I added the following to LDFLAGS in the main makefile: -framework AudioUnit -framework AudioToolbox (I'm they're needed to support PAv18-patch's new "sample rate conversion, mono-to-stereo conversion, and buffer size adaptation" functionality.)
I deleted the existing pa_mac_core.o, and did a new make. It built, and it runs on my machine. It might work for you *if* the emi2|6 is falling prey to the portaudio non-functionality I described.
Was it Pat Pagano who was also asking about getting full-duplex working? This could be it...
Here's something: the new version of pa_mac_core loses the very nice latency measurement (like "PortAudio on OS X - Latency = 2048 frames, 46 msec"). Simply copy-pasting the bit of code (from line 990 in the old pa_mac_core to line 1318 in the new) didn't give an accurate measurement. So the new code ain't perfect, but it's hopefully a general improvement.
-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Adam Lindsay +44(0)1524 594 537 atl@comp.lancs.ac.uk http://www.comp.lancs.ac.uk/computing/users/atl/ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Hey,
Thanks for the encouragement but I'm in over my head really. I keep getting all these effing errors then the the build fails. Any help? Here they are... grr...
(btw, I'll post the content of math.h after these errors)
thanks a ton...
In file included from /usr/include/math.h:24, from g_text.c:15: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0 In file included from /usr/include/math.h:24, from g_array.c:10: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0 In file included from /usr/include/math.h:24, from g_all_guis.c:17: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0 In file included from /usr/include/math.h:24, from g_bang.c:17: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0 In file included from /usr/include/math.h:24, from g_hdial.c:17: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0 In file included from /usr/include/math.h:24, from g_hslider.c:17: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0 In file included from /usr/include/math.h:24, from g_mycanvas.c:17: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0 In file included from /usr/include/math.h:24, from g_numbox.c:15: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0 In file included from /usr/include/math.h:24, from g_toggle.c:17: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0 In file included from /usr/include/math.h:24, from g_vdial.c:15: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0 In file included from /usr/include/math.h:24, from g_vslider.c:17: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0 In file included from /usr/include/math.h:24, from g_vumeter.c:17: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0 In file included from /usr/include/math.h:24, from d_ctl.c:10: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0 In file included from /usr/include/math.h:24, from d_osc.c:9: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0 In file included from /usr/include/math.h:24, from d_filter.c:9: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0 In file included from /usr/include/math.h:24, from d_math.c:10: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0 In file included from /usr/include/math.h:24, from x_arithmetic.c:10: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0 In file included from /usr/include/math.h:24, from x_misc.c:8: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0 In file included from /usr/include/math.h:24, from x_acoustics.c:9: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0 In file included from /usr/include/math.h:24, from ../portaudio/pablio/pablio_pd.h:47, from s_portaudio.c:19: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0 make: *** [depend] Error 1
Here's what's in math.h ->
/* * Copyright (c) 2002 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * The contents of this file constitute Original Code as defined in and * are subject to the Apple Public Source License Version 1.1 (the * "License"). You may not use this file except in compliance with the * License. Please obtain a copy of the License at * http://www.apple.com/publicsource and read it before using this file. * * This Original Code and all software distributed under the License are * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the * License for the specific language governing rights and limitations * under the License. * * @APPLE_LICENSE_HEADER_END@ */
#if defined (__ppc__) #include "architecture/ppc/math.h" #elif defined (__i386__) #include "architecture/i386/math.h" #else #error Unknown architecture #endif
===== -r-
__________________________________________________ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2
Hey,
Thanks for the encouragement but I'm in over my head really. I keep getting all these effing errors then the the build fails. Any help? Here they are... grr...
(btw, I'll post the content of math.h after these errors)
thanks a ton...
In file included from /usr/include/math.h:24, from g_text.c:15: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0
yeh, this is an old problem that should be fixed in new versions of pd source...well, old as in, "since 10.2"...basically, m_pd.h used to define "cabs", cuz it didn't show up until 10.2+...so, are you compiling with the latest 0.36test? If so, are you sure you're using the m_pd.h from it? If so, then miller forgot to take out the cabs define in 0.36 tests...
in any event, you can just search m_pd.h and remove the "cabs" stuff...
l8r, jamie
I am about to embark on learning c++ with the intention of porting some or all (or one) of the FFTease objects can you all afford me any advice?
Pat Pagano, Director South East Just Intonation Society http://www.screwmusicforever.com/SHREESWIFT/ http://www.digitalworlds.ufl.edu ----- Original Message ----- From: tigital tigital@mac.com To: Ryan Gallagher ryanpg@yahoo.com Cc: pd-dev@iem.kug.ac.at Sent: Tuesday, November 12, 2002 9:25 PM Subject: Re: [PD-dev] The ins and outs of ins and outs...
Hey,
Thanks for the encouragement but I'm in over my head really. I keep getting all these effing errors then the the build fails. Any help? Here they are... grr...
(btw, I'll post the content of math.h after these errors)
thanks a ton...
In file included from /usr/include/math.h:24, from g_text.c:15: /usr/include/architecture/ppc/math.h:440:33: macro "cabs" passed 1 arguments, but takes just 0
yeh, this is an old problem that should be fixed in new versions of pd source...well, old as in, "since 10.2"...basically, m_pd.h used to define "cabs", cuz it didn't show up until 10.2+...so, are you compiling with the latest 0.36test? If so, are you sure you're using the m_pd.h from it? If so, then miller forgot to take out the cabs define in 0.36 tests...
in any event, you can just search m_pd.h and remove the "cabs" stuff...
l8r, jamie
PD-dev mailing list PD-dev@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev
the full source for these objects was released in july last year and is found at http://mamalala.de/files/FFTease/ it has already been ported to jmax.. so it shouldn't be 2hard from there... ./dmotd
At 12:38 PM 13/11/2002, shreeswifty wrote:
I am about to embark on learning c++ with the intention of porting some or all (or one) of the FFTease objects can you all afford me any advice?
Pat Pagano, Director South East Just Intonation Society http://www.screwmusicforever.com/SHREESWIFT/ http://www.digitalworlds.ufl.edu
i just don't know where to begin i guess i know i would like ether and shapee for sure but right off the bat it wants <fts/fts.h> is there proper documentation for me to go by? or a model i can follow?
Pat Pagano, Director South East Just Intonation Society http://www.screwmusicforever.com/SHREESWIFT/ http://www.digitalworlds.ufl.edu ----- Original Message ----- From: dmotd dmotd@subdimension.com To: shreeswifty ppagano@bellsouth.net; pd-dev@iem.kug.ac.at Sent: Wednesday, November 13, 2002 1:09 AM Subject: Re: [PD-dev] FFTEASE
the full source for these objects was released in july last year and is found at http://mamalala.de/files/FFTease/ it has already been ported to jmax.. so it shouldn't be 2hard from
there...
./dmotd
At 12:38 PM 13/11/2002, shreeswifty wrote:
I am about to embark on learning c++ with the intention of porting some
or
all (or one) of the FFTease objects can you all afford me any advice?
Pat Pagano, Director South East Just Intonation Society http://www.screwmusicforever.com/SHREESWIFT/ http://www.digitalworlds.ufl.edu
PD-dev mailing list PD-dev@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev
Ok,
Using the latest Tcl/Tk AND latest Pd cvs AND commenting out all reference to 'cabs' in m_pd.h AND copying pa_mac_core.c from the latest portaudio AND adding -framework AudioUnit -framework AudioToolbox to the LDFLAGS section of the makefile, compiling AND chown root pd then chmod 4755 pd AND launching with -rt...
I seem to have achieved a decent result! Doesn't use all 6 outputs of the emi 2|6 (won't even show it as a device if setup in CoreAudio as 2 ins 6 outs) but seems to be running full-duplex.
The latest CVS right off sourceforge with no hacks except '-rt -noadc -audiooutdev 4' flags, produces nearly equivalent performance half-duplex.
When using the mouse to sweep the pitch of a single osc~ as a test, the newer portaudio seems to smooth out the audio glitches a bit, less "jumpy" or "arpeggiated" soundng than using standard portaudio BUT there are still periodic jumps in data input (kinda like stalls) where the sweep isn't smooth but things have become usable for me in the period of one day!
Thanks a ton everyone, hope this helps others, ryan
p.s. - now I'm on to getting midi working... D'oh! ;-)
===== -r-
__________________________________________________ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2
Wow, that will help me!
(I'm hoping to find time dayaftertomorrow to go through this myself...) Miller
On Tue, Nov 12, 2002 at 07:35:42PM -0800, Ryan Gallagher wrote:
Ok,
Using the latest Tcl/Tk AND latest Pd cvs AND commenting out all reference to 'cabs' in m_pd.h AND copying pa_mac_core.c from the latest portaudio AND adding -framework AudioUnit -framework AudioToolbox to the LDFLAGS section of the makefile, compiling AND chown root pd then chmod 4755 pd AND launching with -rt...
I seem to have achieved a decent result! Doesn't use all 6 outputs of the emi 2|6 (won't even show it as a device if setup in CoreAudio as 2 ins 6 outs) but seems to be running full-duplex.
The latest CVS right off sourceforge with no hacks except '-rt -noadc -audiooutdev 4' flags, produces nearly equivalent performance half-duplex.
When using the mouse to sweep the pitch of a single osc~ as a test, the newer portaudio seems to smooth out the audio glitches a bit, less "jumpy" or "arpeggiated" soundng than using standard portaudio BUT there are still periodic jumps in data input (kinda like stalls) where the sweep isn't smooth but things have become usable for me in the period of one day!
Thanks a ton everyone, hope this helps others, ryan
p.s. - now I'm on to getting midi working... D'oh! ;-)
===== -r-
Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2
PD-dev mailing list PD-dev@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev
please post the results when you get 2|6 working i have one as well i thought Phil was going to fix the duplex problem with his iMic?
Pat Pagano, Director South East Just Intonation Society http://www.screwmusicforever.com/SHREESWIFT/ http://www.digitalworlds.ufl.edu ----- Original Message ----- From: Miller Puckette mpuckett@man104-1.ucsd.edu To: Ryan Gallagher ryanpg@yahoo.com Cc: tigital tigital@mac.com; pd-dev@iem.kug.ac.at Sent: Tuesday, November 12, 2002 10:46 PM Subject: Re: [PD-dev] OS X: The ins and outs of ins and outs, mousey mouse control and
Wow, that will help me!
(I'm hoping to find time dayaftertomorrow to go through this myself...) Miller
On Tue, Nov 12, 2002 at 07:35:42PM -0800, Ryan Gallagher wrote:
Ok,
Using the latest Tcl/Tk AND latest Pd cvs AND commenting out all reference to 'cabs' in m_pd.h AND copying pa_mac_core.c from the latest portaudio AND adding -framework AudioUnit -framework AudioToolbox to the LDFLAGS section of the makefile, compiling AND chown root pd then chmod 4755 pd AND launching with -rt...
I seem to have achieved a decent result! Doesn't use all 6 outputs of the emi 2|6 (won't even show it as a device if setup in CoreAudio as 2 ins 6 outs) but seems to be running full-duplex.
The latest CVS right off sourceforge with no hacks except '-rt -noadc -audiooutdev 4' flags, produces nearly equivalent performance half-duplex.
When using the mouse to sweep the pitch of a single osc~ as a test, the newer portaudio seems to smooth out the audio glitches a bit, less "jumpy" or "arpeggiated" soundng than using standard portaudio BUT there are still periodic jumps in data input (kinda like stalls) where the sweep isn't smooth but things have become usable for me in the period of one day!
Thanks a ton everyone, hope this helps others, ryan
p.s. - now I'm on to getting midi working... D'oh! ;-)
===== -r-
Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2
PD-dev mailing list PD-dev@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev
PD-dev mailing list PD-dev@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev