Re: [Sndobj-devel] SndCoreAudio fixes
Status: Abandoned
Brought to you by:
veplaini
From: sonify <so...@av...> - 2007-01-27 20:05:44
|
On 28/01/2007, at 6:33 AM, Victor Lazzarini wrote: > Well, you really did a thorough check. Yep -=3D that was my Saturday... (paralleled w. watching the tennis*) > I really can't work out what the problem > might be. I can't see that it is a Python > version issue, because on other systems I have > it on 2.4 and 2.5. > Todd will send stuff on Monday - then I can test with that. I'll stick to Python2.3 with this project, just in case until I get =20= something working. > I'll try to think of something. Of course you can > always try the C++ examples in ./bin. For instance > rtschroeder (reverb) and streson(resonator) would > work of everything is OK. That'll give us some indication. > > regards > Victor Thanks for the suggestion. I'll try some. I did try to put some =20 printfs in the ProcOn() code but I couldn't see them through the =20 python interpreter. (I've got rusty C and almost no C++ chops) Would you be kind enough to show me a quick-'n-dirty simple eg of =20 arguments to SndJackIO? many thanks - unfortunately I've got two other build in progress with =20= different types of problems.. very dry, creatively - one needs the patience of an animator in =20 these situations! David *If you like TV tennis (my 1 TV sport indulge) the Aust. Open Men's =20 final (Federer vs Gonzalez) is today (16h00 here =BF=3DGMT+ 5?) and promises to be an extraordinary =20= display. They've both completely dominated their prev. opposition with =20 balletic performances. > >> >> Of course one must admit that possibility! >> I didn't mention it but I did a _very_ thorough check of >> the entire file system using: >> >> cd / ; $ sudo ls -liR | grep -i libsndobj >> >> and there is not a single i-node outside >> /usr/local/sndobj/ which does not refer to an email, >> manual etc file. (I ran the test twice) >> >> Furthermore when I move the libsndobj etc files from where >> scons creates them, >> python (import sndobj) fails, so I know I'm dealing w. >> the(recently) created builds and not some >> obscure reference via $PYTHONPATH or whatever. >> >> Possible conclusions? >> (a) HW error >> - other SW works, so unlikely >> (b) code error - possibly, but Tony says it works for him >> - need to >> - test Todd's build on my machine...... >> - determine exact SW version combinations >> (c) some weird incompatibility problem w. >> scons/swig/python >> - have returned to sys python 2.3, >> - have installed latest scons under 2.3 >> - have built pysndobj under 2.3 using >> $ cd /usr/local/sndobj ; sudo scons >> pythonmodule=3Dyes >> >> Given the above, would you still put money on it being a >> lazy SndObj or relative? >> Personally, I doubt it. >> D. >> >> On 28/01/2007, at 12:22 AM, Victor Lazzarini wrote: >> >>> I reckon you might have an old SndObj lib >>> or _sndobj.so lying around in your machine. >>> >>>> >>>> I've checked that out to no effect. In fact I've even >> gone >> back and rebuilt scons with python 2.3, rebuilt >> sndobj >> under python2.3 and used the same python to >> execute the >> test. The ball.py example also bombs on >> ProcOn() >> >>>> I tried to test with Jack as Victor suggested but >> couldn't >> find any manual reference to it. >>>> =46rom the code I worked out that it should be something >>>> like >>>> >>>> outp =3D sndobj.SndJackIO("whatgoeshere", 1, >>>> sndobj.SND_OUTPUT) >>>> >>>> perhaps a simple example of use would help and I'll >> work >> it into the manual as well. >>>> >>>> for the record, I am instantiating python from >>>> /usr/local/sndobj/ python under su permissions to >> ensure >> that it's not a file permissions block. >>>> How frustrating.... >>>> >>>> Tony - what version of python and is it MacPython or >> the >> standard issue? >>>> >>>> David >>>> >>>> On 27/01/2007, at 7:35 AM, todd ingalls wrote: >>>> >>>>> Hi everyone, >>>>> I grabbed a fresh copy of the source from cvs this >>>>> morning and built SndObj and PySndObj on an intel >> mac. >>> SndCoreAudio seems to be working properly from >> me and >>> i tried the exact same example as below in >> python and >> it worked properly. > >>>>> david, is it possible you have some outdated builds of >>>>> libsndobj or _sndobj.so somewhere that are being >>>> loaded? > >>>>> >>>>> On Jan 25, 2007, at 9:28 AM, Victor Lazzarini wrote: >>>>> >>>>>> hmmm. I really can't debug it without a machine. Have >>>> to get >> one urgently. >>>>>> >>>>>> Victor >>>>>> >>>>>> At 13:17 25/01/2007, sonify wrote: >>>>>>> New CVS compiled OK on OSX10.4.8 >>>>>>> With this in mind: >>>>>>>> import time >>>>>>>> import sndobj >>>>>>>> tab =3D sndobj.HarmTable() >>>>>>>> osc =3D sndobj.Oscili(tab, 440, 16000) >>>>>>>> #outp =3D sndobj.SndRTIO >>>>>>>> outp =3D sndobj.SndCoreAudio() >>>>>>>> outp.SetOutput(1,osc) >>>>>>>> >>>>>>>> thread =3D sndobj.SndThread() >>>>>>>> thread.AddObj(outp, sndobj.SNDIO_OUT) >>>>>>>> thread.AddObj(osc) >>>>>>>> thread.ProcOn() >>>>>>>> time.sleep(15) >>>>>>>> thread.ProcOff() >>>>>>>> thread.ProcOn() >>>>>>> returns a "bus error" exception and bombs. If I >>>> remember correctly, >>> it used to bomb on >>>>>>>> outp =3D sndobj.SndCoreAudio() >>>>>>> >>>>>>> how that helps, >>>>>>> >>>>>>> David >>>>>>> >>>>>>> On 25/01/2007, at 3:28 AM, Victor Lazzarini wrote: >>>>>>> >>>>>>>> Dear all, >>>>>>>> >>>>>>>> I have committed to CVS some fixes to SndCoreAudio >> to >> handle non- >>>> interleaved >>>>>>>> audio. I am wondering whether that was the problem >>>> with Intel >>>> hardware. If the audio device required >>>> non-interleaved audio, it >>>> would not have >>>>>>>> worked. Would anyone care to test it? >>>>>>>> >>>>>>>> On the other hand the problem might be somewhere >>>> else... >>>> >>>>>>>> Victor Lazzarini >>>>>>>> Music Technology Laboratory >>>>>>>> Music Department >>>>>>>> National University of Ireland, Maynooth >>>>>>>> >>>>>>>> >>>>>>>> >>>> >> ---------------------------------------------------------- >>>> --------- >>>> --- >>>>>> --- >>>>>>>> Take Surveys. Earn Cash. Influence the Future of IT >>>>>>>> Join SourceForge.net's Techsay panel and you'll get >>>> the chance to >>>> share your >>>>>>>> opinions on IT & business topics through brief >>>> surveys - and >>>> earn cash >>>>>>>> http://www.techsay.com/default.php? >>>>>>>> page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV >>>>>>>> _______________________________________________ >>>>>>>> Sndobj-devel mailing list >>>>>>>> Snd...@li... >>>>>>>> >>>> >> https://lists.sourceforge.net/lists/listinfo/sndobj-devel >>>>>>>>>>>>>>>> >> _________________________________________________ >>>>> >> experimental polymedia: www.avatar.com.au >>>>> Sonic >> Communications Research Group, >>>>> University of >> Canberra: >> www.canberra.edu.au/vc-forum/scrg >>> >> vip=3DVerbal >> Interactivity Project >>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>> >> ---------------------------------------------------------- >>>> ---------- >>> ----- >>>>> Take Surveys. Earn Cash. >> Influence the Future of IT >>>>> Join SourceForge.net's >> Techsay panel and you'll get >> the chance to >>> share >> your >>>>> opinions on IT & business topics through brief >> surveys >> - and earn >>> cash >>>>>>> http://www.techsay.com/default.php? >>>>>>> page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV >>>>>>> _______________________________________________ >>>>>>> Sndobj-devel mailing list >>>>>>> Snd...@li... >>>>>>> >>>> >> https://lists.sourceforge.net/lists/listinfo/sndobj-devel >>>>>>>> Victor Lazzarini >>>> Music Technology Laboratory >>>>>> Music Department >>>>>> National University of Ireland, Maynooth >>>>>> >>>>>> >>>>>> >>>> >> ---------------------------------------------------------- >>>> ----------- >> ---- >>>> Take Surveys. Earn Cash. >> Influence the Future of IT >>>> Join SourceForge.net's >> Techsay panel and you'll get the >> chance to >> share >> your >>>> opinions on IT & business topics through brief >> surveys >> - and earn >> cash >>>>>> http://www.techsay.com/default.php? >>>>>> page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV >>>>>> _______________________________________________ >>>>>> Sndobj-devel mailing list >>>>>> Snd...@li... >>>>>> >>>> >> https://lists.sourceforge.net/lists/listinfo/sndobj-devel >>>>>>> >>>> _________________________________________________ >>>> experimental polymedia: www.avatar.com.au >>>> Sonic Communications Research Group, >>>> University of Canberra: >>>> www.canberra.edu.au/vc-forum/scrg vip=3DVerbal >> Interactivity >> Project >>>> >>>> >>>> >>>> >>>> >> ---------------------------------------------------------- >>>> --------------- Take Surveys. Earn Cash. Influence the >>>> Future of IT Join SourceForge.net's Techsay panel and >>>> you'll get the chance to share your opinions on IT & >> >> business topics through brief surveys - and earn cash >> >>> http://www.techsay.com/default.php? >>> page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV >>>> _______________________________________________ >>>> Sndobj-devel mailing list >>>> Snd...@li... >>>> >> https://lists.sourceforge.net/lists/listinfo/sndobj-devel >>> >> >> _________________________________________________ >> experimental polymedia: www.avatar.com.au >> Sonic Communications Research Group, >> University of Canberra: >> www.canberra.edu.au/vc-forum/scrg vip=3DVerbal Interactivity >> Project >> >> >> >> >> ---------------------------------------------------------- >> --------------- Take Surveys. Earn Cash. Influence the >> Future of IT Join SourceForge.net's Techsay panel and >> you'll get the chance to share your opinions on IT & >> business topics through brief surveys - and earn cash >> > http://www.techsay.com/default.php?=20 > page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV >> _______________________________________________ >> Sndobj-devel mailing list >> Snd...@li... >> https://lists.sourceforge.net/lists/listinfo/sndobj-devel > _________________________________________________ experimental polymedia: www.avatar.com.au Sonic Communications Research Group, University of Canberra: www.canberra.edu.au/vc-forum/scrg vip=3DVerbal Interactivity Project |