Re: [Cs-dev] Cabel-0.8 Mac OS X
| Date | 2006-02-03 21:49 |
| From | Victor Lazzarini |
| Subject | Re: [Cs-dev] Cabel-0.8 Mac OS X |
if you want to use csound in python, you don't need CsoundVST, but the python module (_csnd.so & csnd.py). From python, do 'import csnd' [In fact, it's possible to build CsoundVST, but it will not run.] I had the impression you had been able to run Cabel on OSX, didn't you say so when it was released? Victor > > It runs but the modules don't show up - it is > instanstiating Csound however CsoundVST did not build as > a dylib it did output the .py script and the source code > itself compiled without error. It was only in the > linking of CsoundVST that things got hairy. > > In other words Cabel runs but I don't see the modules - > just the familiar background from Windows and Linux in > Mac's wxPython. The messages window in Cabel outputs > this when creating a new module: > > Traceback (most recent call last): > File > "/Users/daveakbari/Desktop/cabel-0.8/view/controller.py", > line 474, in onModulesMenu > module = self._model.addXmlModule(moduleName) > File > "/Users/daveakbari/Desktop/cabel-0.8/model/workspace.py", > line 142, in addXmlModule > self.addModule(module) > File > "/Users/daveakbari/Desktop/cabel-0.8/model/workspace.py", > line 120, in addModule > self.notifyObservers(arg) > File > "/Users/daveakbari/Desktop/cabel-0.8/model/observer.py", > line 96, in notifyObservers > o.update(self, arg) > File > "/Users/daveakbari/Desktop/cabel-0.8/view/workspace.py", > line 261, in update > self.addModule(newModule, > self._controller._lastMousePt) > File > "/Users/daveakbari/Desktop/cabel-0.8/view/workspace.py", > line 322, in addModule > viewModule = Module(pt.x, pt.y, module, > self._controller) > File > "/Users/daveakbari/Desktop/cabel-0.8/view/module.py", line > 92, in __init__ > self.height = self._getHeight() > File > "/Users/daveakbari/Desktop/cabel-0.8/view/module.py", line > 388, in _getHeight > return (self.numInputs + 1) * self._plugDistance > File > "/Users/daveakbari/Desktop/cabel-0.8/view/module.py", line > 105, in _getPlugDistance > return self._getCharHeight() + float(4 * self.scale) > File > "/Users/daveakbari/Desktop/cabel-0.8/view/module.py", line > 146, in _getCharHeight > return float(dc.GetCharHeight() * self.scale) > File > "//Library/Frameworks/Python.framework/Versions/2.4/lib/py > thon2.4/site- packages/wx-2.6-mac-unicode/wx/_gdi.py", > line 3416, in GetCharHeight > return _gdi_.DC_GetCharHeight(*args, **kwargs) > wx._core.PyAssertionError: C++ assertion "wxAssertFailure" > failed in ../src/mac/carbon/dc.cpp(1640): Invalid DC > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep > through log files for problems? Stop! Download the new > AJAX search engine that makes searching your log files as > easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel? cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
| Date | 2006-02-03 22:05 |
| From | David Akbari |
| Subject | Re: [Cs-dev] Cabel-0.8 Mac OS X |
Yes. It is only with the newest 2.6.12 release of the wxPython module that things started getting funny. -David On Feb 3, 2006, at 4:49 PM, Victor Lazzarini wrote: > if you want to use csound in python, you > don't need CsoundVST, but the python module (_csnd.so & > csnd.py). From python, do 'import csnd' > > [In fact, it's possible to build CsoundVST, but it will not > run.] > > I had the impression you had been able to run Cabel > on OSX, didn't you say so when it was released? > > Victor > >> >> It runs but the modules don't show up - it is >> instanstiating Csound however CsoundVST did not build as >> a dylib it did output the .py script and the source code >> itself compiled without error. It was only in the >> linking of CsoundVST that things got hairy. >> >> In other words Cabel runs but I don't see the modules - >> just the familiar background from Windows and Linux in >> Mac's wxPython. The messages window in Cabel outputs >> this when creating a new module: >> >> Traceback (most recent call last): >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/controller.py", >> line 474, in onModulesMenu >> module = self._model.addXmlModule(moduleName) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/model/workspace.py", >> line 142, in addXmlModule >> self.addModule(module) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/model/workspace.py", >> line 120, in addModule >> self.notifyObservers(arg) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/model/observer.py", >> line 96, in notifyObservers >> o.update(self, arg) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/workspace.py", >> line 261, in update >> self.addModule(newModule, >> self._controller._lastMousePt) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/workspace.py", >> line 322, in addModule >> viewModule = Module(pt.x, pt.y, module, >> self._controller) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/module.py", line >> 92, in __init__ >> self.height = self._getHeight() >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/module.py", line >> 388, in _getHeight >> return (self.numInputs + 1) * self._plugDistance >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/module.py", line >> 105, in _getPlugDistance >> return self._getCharHeight() + float(4 * self.scale) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/module.py", line >> 146, in _getCharHeight >> return float(dc.GetCharHeight() * self.scale) >> File >> "//Library/Frameworks/Python.framework/Versions/2.4/lib/py >> thon2.4/site- packages/wx-2.6-mac-unicode/wx/_gdi.py", >> line 3416, in GetCharHeight >> return _gdi_.DC_GetCharHeight(*args, **kwargs) >> wx._core.PyAssertionError: C++ assertion "wxAssertFailure" >> failed in ../src/mac/carbon/dc.cpp(1640): Invalid DC >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. Do you grep >> through log files for problems? Stop! Download the new >> AJAX search engine that makes searching your log files as >> easy as surfing the web. DOWNLOAD SPLUNK! >> http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=103432&bid=230486&dat=121642 >> _______________________________________________ >> Csound-devel mailing list >> Csound-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/csound-devel > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
| Date | 2006-02-03 22:18 |
| From | David Akbari |
| Subject | Re: [Cs-dev] Cabel-0.8 Mac OS X |
More info: Previously I had executed Cabel via the X11 server and had used the wxPython module from Fink. This time it was different in that I installed a .pkg of the wxPython stuff and "MacPython" 2.4 - it now launches Cabel with the Aqua window server instead and seems to call Csound correctly but none of the modules show up. This is also with the Unicode wxPython - before I had used the ANSI one via Fink but I was under the impression that Unicode works better on Mac ? -David On Feb 3, 2006, at 4:49 PM, Victor Lazzarini wrote: > if you want to use csound in python, you > don't need CsoundVST, but the python module (_csnd.so & > csnd.py). From python, do 'import csnd' > > [In fact, it's possible to build CsoundVST, but it will not > run.] > > I had the impression you had been able to run Cabel > on OSX, didn't you say so when it was released? > > Victor > >> >> It runs but the modules don't show up - it is >> instanstiating Csound however CsoundVST did not build as >> a dylib it did output the .py script and the source code >> itself compiled without error. It was only in the >> linking of CsoundVST that things got hairy. >> >> In other words Cabel runs but I don't see the modules - >> just the familiar background from Windows and Linux in >> Mac's wxPython. The messages window in Cabel outputs >> this when creating a new module: >> >> Traceback (most recent call last): >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/controller.py", >> line 474, in onModulesMenu >> module = self._model.addXmlModule(moduleName) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/model/workspace.py", >> line 142, in addXmlModule >> self.addModule(module) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/model/workspace.py", >> line 120, in addModule >> self.notifyObservers(arg) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/model/observer.py", >> line 96, in notifyObservers >> o.update(self, arg) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/workspace.py", >> line 261, in update >> self.addModule(newModule, >> self._controller._lastMousePt) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/workspace.py", >> line 322, in addModule >> viewModule = Module(pt.x, pt.y, module, >> self._controller) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/module.py", line >> 92, in __init__ >> self.height = self._getHeight() >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/module.py", line >> 388, in _getHeight >> return (self.numInputs + 1) * self._plugDistance >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/module.py", line >> 105, in _getPlugDistance >> return self._getCharHeight() + float(4 * self.scale) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/module.py", line >> 146, in _getCharHeight >> return float(dc.GetCharHeight() * self.scale) >> File >> "//Library/Frameworks/Python.framework/Versions/2.4/lib/py >> thon2.4/site- packages/wx-2.6-mac-unicode/wx/_gdi.py", >> line 3416, in GetCharHeight >> return _gdi_.DC_GetCharHeight(*args, **kwargs) >> wx._core.PyAssertionError: C++ assertion "wxAssertFailure" >> failed in ../src/mac/carbon/dc.cpp(1640): Invalid DC >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. Do you grep >> through log files for problems? Stop! Download the new >> AJAX search engine that makes searching your log files as >> easy as surfing the web. DOWNLOAD SPLUNK! >> http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=103432&bid=230486&dat=121642 >> _______________________________________________ >> Csound-devel mailing list >> Csound-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/csound-devel > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
| Date | 2006-02-03 22:21 |
| From | David Akbari |
| Subject | Re: [Cs-dev] Cabel-0.8 Mac OS X |
Still more info: Also I forgot to mention that previously the command % xhost + was necessary in X11 to allow instantiation of Cabel otherwise it would complain about "Not being the main display" -David On Feb 3, 2006, at 4:49 PM, Victor Lazzarini wrote: > if you want to use csound in python, you > don't need CsoundVST, but the python module (_csnd.so & > csnd.py). From python, do 'import csnd' > > [In fact, it's possible to build CsoundVST, but it will not > run.] > > I had the impression you had been able to run Cabel > on OSX, didn't you say so when it was released? > > Victor > >> >> It runs but the modules don't show up - it is >> instanstiating Csound however CsoundVST did not build as >> a dylib it did output the .py script and the source code >> itself compiled without error. It was only in the >> linking of CsoundVST that things got hairy. >> >> In other words Cabel runs but I don't see the modules - >> just the familiar background from Windows and Linux in >> Mac's wxPython. The messages window in Cabel outputs >> this when creating a new module: >> >> Traceback (most recent call last): >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/controller.py", >> line 474, in onModulesMenu >> module = self._model.addXmlModule(moduleName) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/model/workspace.py", >> line 142, in addXmlModule >> self.addModule(module) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/model/workspace.py", >> line 120, in addModule >> self.notifyObservers(arg) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/model/observer.py", >> line 96, in notifyObservers >> o.update(self, arg) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/workspace.py", >> line 261, in update >> self.addModule(newModule, >> self._controller._lastMousePt) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/workspace.py", >> line 322, in addModule >> viewModule = Module(pt.x, pt.y, module, >> self._controller) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/module.py", line >> 92, in __init__ >> self.height = self._getHeight() >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/module.py", line >> 388, in _getHeight >> return (self.numInputs + 1) * self._plugDistance >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/module.py", line >> 105, in _getPlugDistance >> return self._getCharHeight() + float(4 * self.scale) >> File >> "/Users/daveakbari/Desktop/cabel-0.8/view/module.py", line >> 146, in _getCharHeight >> return float(dc.GetCharHeight() * self.scale) >> File >> "//Library/Frameworks/Python.framework/Versions/2.4/lib/py >> thon2.4/site- packages/wx-2.6-mac-unicode/wx/_gdi.py", >> line 3416, in GetCharHeight >> return _gdi_.DC_GetCharHeight(*args, **kwargs) >> wx._core.PyAssertionError: C++ assertion "wxAssertFailure" >> failed in ../src/mac/carbon/dc.cpp(1640): Invalid DC >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. Do you grep >> through log files for problems? Stop! Download the new >> AJAX search engine that makes searching your log files as >> easy as surfing the web. DOWNLOAD SPLUNK! >> http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=103432&bid=230486&dat=121642 >> _______________________________________________ >> Csound-devel mailing list >> Csound-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/csound-devel > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
| Date | 2006-02-04 03:26 |
| From | David Akbari |
| Subject | Re: [Cs-dev] Cabel-0.8 Mac OS X |
More follow up.
Cabel correctly instantiates Csound and runs. I am even able to export
to CSD but the problem is that none of the modules display so that none
of the presets can load. If you click on the menu or right click to add
modules, it brings up a list of errors in the Cabel messages window but
does compile what you created in Csound.
It seems stuck in a perpetual "new" patch. This is with Python 2.4 and
wxPython 2.6.12 both ANSI and Unicode on Mac OS 10.3.9. Everything
about it seems fine except for the Python code in Cabel itself.
*** Here's Csound's output:
Localisation of messages is disabled, using default language.
time resolution is 1000.000 ns
WARNING: '/Users/daveakbari/CVS/csound5/lib_csnd.dylib' is not a Csound
plugin library
PortMIDI real time MIDI plugin for Csound
CoreAudio real-time audio module for Csound
by Victor Lazzarini
JACK real-time audio module for Csound by Istvan Varga
PortAudio real-time audio module for Csound
WARNING: '/Users/daveakbari/CVS/csound5/tclcsound.dylib' is not a
Csound plugin library
0dBFS level = 32768.0
Csound version 5.00.0 (float samples) Feb 3 2006
libsndfile-1.0.13
UnifiedCSD: tmp.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname: /tmp/tmp.0.8qiaIH.orc
scorename: /tmp/tmp.1.CMMtPP.sco
rtaudio: CoreAudio module enabled
rtmidi: PortMIDI module enabled
orch compiler:
48 lines read
opcode Amp a ak
opcode Noise a k
opcode SawVco a kk
instr 1
instr 2
instr 3
Elapsed time at end of orchestra compile: real: 0.167s, CPU: 0.020s
sorting score ...
... done
Elapsed time at end of score sort: real: 0.171s, CPU: 0.020s
Csound version 5.00.0 (float samples) Feb 3 2006
displays suppressed
0dBFS level = 32768.0
orch now loaded
audio buffered in 512 sample-frame blocks
==========================================================
CoreAudio Module: found 4 device(s):
=> CoreAudio device 0: Built-in Audio
=> CoreAudio device 1: Digidesign HW ( MBox )
=> CoreAudio device 2: Soundflower (2ch)
=> CoreAudio device 3: Soundflower (16ch)
selected device: 1
CoreAudio module: opening Digidesign HW ( MBox )
CoreAudio module: sr set to 44100 with 2 audio channels
CoreAudio module: device open with 4 buffers of 1024 frames
==========================================================
reading 2048-byte blks of shorts from adc:1 (RAW)
writing 2048-byte blks of shorts to dac:1
SECTION 1:
*** Cabel's messages window:
Traceback (most recent call last):
File "/Users/daveakbari/Desktop/cabel-0.8/view/controller.py", line
474, in onModulesMenu
module = self._model.addXmlModule(moduleName)
File "/Users/daveakbari/Desktop/cabel-0.8/model/workspace.py", line
142, in addXmlModule
self.addModule(module)
File "/Users/daveakbari/Desktop/cabel-0.8/model/workspace.py", line
120, in addModule
self.notifyObservers(arg)
File "/Users/daveakbari/Desktop/cabel-0.8/model/observer.py", line
96, in notifyObservers
o.update(self, arg)
File "/Users/daveakbari/Desktop/cabel-0.8/view/workspace.py", line
261, in update
self.addModule(newModule, self._controller._lastMousePt)
File "/Users/daveakbari/Desktop/cabel-0.8/view/workspace.py", line
322, in addModule
viewModule = Module(pt.x, pt.y, module, self._controller)
File "/Users/daveakbari/Desktop/cabel-0.8/view/module.py", line 92,
in __init__
self.height = self._getHeight()
File "/Users/daveakbari/Desktop/cabel-0.8/view/module.py", line 388,
in _getHeight
return (self.numInputs + 1) * self._plugDistance
File "/Users/daveakbari/Desktop/cabel-0.8/view/module.py", line 105,
in _getPlugDistance
return self._getCharHeight() + float(4 * self.scale)
File "/Users/daveakbari/Desktop/cabel-0.8/view/module.py", line 146,
in _getCharHeight
return float(dc.GetCharHeight() * self.scale)
File
"//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/wx-2.6-mac-ansi/wx/_gdi.py", line 3416, in GetCharHeight
return _gdi_.DC_GetCharHeight(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed in
../src/mac/carbon/dc.cpp(1640): Invalid DC
Screenshot:
http://www.csounds.com/akbari/cabel_ss01.pdf
-David
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |