Re: [Pythonmac-SIG] Support for live audio I/O via Python on Mac?

2006-10-13 Thread kevin parks
I use RTCmix to do real time audio on a Mac w/ Python

http://rtcmix.org/

>
> Subject:
> Re: [Pythonmac-SIG] Support for live audio I/O via Python on Mac?
> From:
> "Bob Ippolito" <[EMAIL PROTECTED]>
> Date:
> Thu, 12 Oct 2006 20:04:25 -0700
> To:
> "Jeff Rodman" <[EMAIL PROTECTED]>
>
> To:
> "Jeff Rodman" <[EMAIL PROTECTED]>
> CC:
> pythonmac-sig@python.org
>
>
> On 10/12/06, Jeff Rodman <[EMAIL PROTECTED]> wrote:
>>   is there a simple, current Python module for controlling the audio
>> in/out devices on Mac OSX (Python 2.5, OSX 10.4.8, PowerMac at the
>> moment but Intel is possible), preferably in/out simultaneously?
>> I've visited the main sites and lists, I think, but not found a basic
>> answer.  "audioop" in the Standard Library manipulates files but does
>> not play/record, "ossaudiodev" does not seem to be included in the
>> actual Python install although documented in the Standard Library
>> manual, and I can't find a mac-targeted form of the "OSS" module over
>> at 4Front.  Just want to play and record short files, (I'll take any
>> format, .raw data or wav is fine) in real time for a acoustic
>> application.
>>
>> I'm sure there's a straightforward answer, I'm just missing it.
>> Thanks for any help!
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Building plugins with py2app

2006-10-13 Thread Dethe Elza
On 12-Oct-06, at 10:44 PM, Ronald Oussoren wrote:

> Reverting to an older version should work as well, with the caveat  
> that the latest pre-setuptools version of py2app has some problems  
> w.r.t. universal binaries (which is why Bob switched to the current  
> version).

OK, well I need universal binaries, so I'll try to move forward  
rather than backward.

> I'm going to do a fresh install of Python, PyObjC and py2app to see  
> if that helps to find the problem, but don't have time to do so today.

I appreciate the time you've put into this.

> One thing that you could try:  insert 'import sys; print sys.path'  
> at the top of __boot__.py (in the Resources directory of the saver)  
> to see the value of sys.path. That value seems to be wrong.

This is a very good clue.  Here is the sys.path from a working  
application built with the same version(s) of all the tools:

'/Users/delza/sampleapp/dist/sample.app/Contents/Resources', '/Users/ 
delza/sampleapp/dist/sample.app/Contents/Resources', '/Users/delza/ 
sampleapp/dist/sample.app/Contents/Resources/lib/python24.zip', '/ 
Users/delza/sampleapp/dist/sample.app/Contents/Resources/lib/ 
python2.4', '/Users/delza/sampleapp/dist/sample.app/Contents/ 
Resources/lib/python2.4/plat-darwin', '/Users/delza/sampleapp/dist/ 
sample.app/Contents/Resources/lib/python2.4/plat-mac', '/Users/delza/ 
sampleapp/dist/sample.app/Contents/Resources/lib/python2.4/plat-mac/ 
lib-scriptpackages', '/Users/delza/sampleapp/dist/sample.app/Contents/ 
Resources/lib/python2.4/lib-tk', '/Users/delza/sampleapp/dist/ 
sample.app/Contents/Resources/lib/python2.4/lib-dynload', '/Users/ 
delza/sampleapp/dist/sample.app/Contents/Resources/lib/python2.4/site- 
packages.zip'

And here is the sys.path from a plugin:

'/Users/delza/Library/Screen Savers/PastelsView.saver/Contents/ 
Resources', '/Users/delza/Library/Screen Savers/PastelsView.saver/ 
Contents/Resources', '/Users/delza/Library/Screen Savers/ 
PastelsView.saver/Contents/Frameworks/Python.framework/Versions/2.4/ 
lib/python24.zip', '/Users/delza/Library/Screen Savers/ 
PastelsView.saver/Contents/Frameworks/Python.framework/Versions/2.4/ 
lib/python2.4/', '/Users/delza/Library/Screen Savers/ 
PastelsView.saver/Contents/Frameworks/Python.framework/Versions/2.4/ 
lib/python2.4/plat-darwin', '/Users/delza/Library/Screen Savers/ 
PastelsView.saver/Contents/Frameworks/Python.framework/Versions/2.4/ 
lib/python2.4/plat-mac', '/Users/delza/Library/Screen Savers/ 
PastelsView.saver/Contents/Frameworks/Python.framework/Versions/2.4/ 
lib/python2.4/plat-mac/lib-scriptpackages', '/Users/delza/Library/ 
Screen Savers/PastelsView.saver/Contents/Frameworks/Python.framework/ 
Versions/2.4/lib/python2.4/lib-tk', '/Users/delza/Library/Screen  
Savers/PastelsView.saver/Contents/Frameworks/Python.framework/ 
Versions/2.4/lib/python2.4/lib-dynload'

Since the ../Contents/Frameworks/Python.framework/Versions/2.4/  
directory does not contain a lib directory, these paths are broken.   
I'm trying to track down where they are set, which appears to be in  
the bootstrap Objective-C code for setting the RESOURCEPATH  
environment variable.  Does that sound reasonable?

--Dethe


"We have now become a people who believe that wishing for things  
makes them happen. Unfortunately, the world just doesn't work that  
way. The truth is that no combination of alternative fuels or so- 
called renewables will allow us to run the U.S.A. -- or even a  
substantial fraction of it -- the way that we're running it now." -- 
James Howard Kunstler


___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig