| HI John,
I'm looking at cs_glue.cpp and cs_glue.hpp in the interfaces
directory. It looks like CsoundMYFLTArray is actually an array of
arrays, and you should use it with the constructor to determine how
many MYFLT arrays you want. So maybe use:
CsoundMYFLTArray myfltArray = new CsoundMYFLTArray(2);
myfltArray.GetPtr(0)
GetPtr returns a SWIGTYPE_p_float that I think you use to pass into
GetChannelPtr. After that, I think you can use this static method
csnd.csnd.sigcpy(myfltArray.GetPtr(0),myfltArray.GetPtr(1), x) but I
haven't found where sigcpy is defined yet. That should copy the
values from one SWIGTYPE_p_double to the other.
We may want to look at adding some more methods to cs_glue.cpp and
cs_glue.hpp to covert values from a MYFLT* to double[] and back.
Perhaps should would make getting SWIG to be more "native" in feel and
we would have to use the SWIGTYPE_p_double so much.
steven
On Mon, Aug 24, 2009 at 11:56 AM, wrote:
>> As I mentioned to you Peter Brinkmann uses the Java Csound API to
>> produce sound for JReality. Did you look at the code I sent you?
>>
>> Regards,
>> Mike
>>
>
> Yes I did; I do not understand it in detail and it does not answer the
> question of how to read and write audio from a channel. The types look
> all wrong from what little I can understand from the class files for
> GetChannelPtr and it is very unclear how to access the data from the ptr
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |