Never tried this with Python, but I suspect it will need further wrapping before it's usable in that language. I have wrapped in Tcl and it's possible to use that.
Also there might be some other issues with a compilation token for the sliding DFT. I will need to check all of this. Give me a little while and I'll get back to you.
Victor
----- Original Message -----
From: Chuckk Hubbard <badmuthahubbard@gmail.com>
Date: Tuesday, May 25, 2010 1:05 pm
Subject: [Cs-dev] [Cs-Dev] pvsout with Python
To: Csound Developers <csound-devel@lists.sourceforge.net>
> Hi.
>
> I'm trying to pass pvs data to a Python host, for display (pvsdisp is working okay for me, but I want more control over display). I'm afraid I'm completely stumped after what's in this script. The important part:
>
> cs.exportForPerformance()
> cs.compile()
> perf = csnd.CsoundPerformanceThread(cs)
> perf.Play()
>
> frecv = csnd.PVSDATEXT()
>
> If I call cs.PvsoutGet(frecv, 1) Python crashes. I'm sure I'm once again completely misunderstanding how it should work, but I can't get started.
> As crazy as it sounds, what I am after is to send audio signals from a main CppSound instance running a .csd; then the user can select which of those audio channels to view using a drop-down menu; then that signal is pushed through another CppSound instance running one generic instrument that runs pvsanal on the audio signal and returns the data. I'm not sure if fsig data will be in a form I can use, but I can't get past the part with retrieving the data.
> Thanks.
>
> -Chuckk
>
> --
> http://www.badmuthahubbard.com
> -----------------------------------------------------------------
> -------------
> > _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
National University of Ireland, Maynooth