Csound Csound-dev Csound-tekno Search About

[Cs-dev] and more on the API

Date2009-08-11 04:13
Fromjpff
Subject[Cs-dev] and more on the API
I think my current problem is because the wrapping of chanOx and
chanIx are just wrong.  The numbered software bus is a unidirectional
one, so when csound uses chani the application needs to use chano and
vice versa.  This is not what is implemented, so as it stands when
attempting to transfer data it crashs at the java end.
  If this analysis is correct, then either the API needs fixing, or
the code in OOps/bus.c lines 93-177 needs rotating.  As the API is
clearly wrong and cannot be used it does not matter much which one
does, but the current situation is wrong.
==John ffitch

------------------------------------------------------------------------------
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

Date2009-08-11 07:51
Fromvictor
SubjectRe: [Cs-dev] and more on the API
I am not sure anything needs to be done. I am quite sure I used the
chani-chano set at least for tests and it worked OK for me. I used

csoundChanIKSet() to send a value to csound to be received by chani,
and csoundChanOKGet() to get a value from chano. Similarly,
I used csoundChanIASet() to send a ksmps vector and csoundChanOAGet()
to retrieve one from Csound.

And also very importantly, I based csoundPvsinSet() and csoundPvsoutGet()
on the same principles. So if there is change, these two will also have to
be looked at.

At the moment, I can't understand the problem. Perhaps you can explain it
to me. From the C API perspective, I did not have a problem using these
functions.

Victor


----- Original Message ----- 
From: "jpff" 
To: 
Sent: Tuesday, August 11, 2009 4:13 AM
Subject: [Cs-dev] and more on the API


>I think my current problem is because the wrapping of chanOx and
> chanIx are just wrong.  The numbered software bus is a unidirectional
> one, so when csound uses chani the application needs to use chano and
> vice versa.  This is not what is implemented, so as it stands when
> attempting to transfer data it crashs at the java end.
>  If this analysis is correct, then either the API needs fixing, or
> the code in OOps/bus.c lines 93-177 needs rotating.  As the API is
> clearly wrong and cannot be used it does not matter much which one
> does, but the current situation is wrong.
> ==John ffitch
>
> ------------------------------------------------------------------------------
> 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

Date2009-08-11 08:16
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] and more on the API
I have taken a further look at the code and now conclude that it is
correct; I think th eproblem lies in my continuing problem with in versus
out (a mild form of dsylexia)

The trouble is that there is no documentation for the Java wrappers, and
as i do not know Java i am finding it hard to implement the code.  The
student claims to know Java but not Csound (or audio at all)

I will try again......

> I am not sure anything needs to be done. I am quite sure I used the
> chani-chano set at least for tests and it worked OK for me. I used
>
> csoundChanIKSet() to send a value to csound to be received by chani,
> and csoundChanOKGet() to get a value from chano. Similarly,
> I used csoundChanIASet() to send a ksmps vector and csoundChanOAGet()
> to retrieve one from Csound.
>
> And also very importantly, I based csoundPvsinSet() and csoundPvsoutGet()
> on the same principles. So if there is change, these two will also have to
> be looked at.
>
> At the moment, I can't understand the problem. Perhaps you can explain it
> to me. From the C API perspective, I did not have a problem using these
> functions.
>
> Victor
>
>
> ----- Original Message -----
> From: "jpff" 
> To: 
> Sent: Tuesday, August 11, 2009 4:13 AM
> Subject: [Cs-dev] and more on the API
>
>
>>I think my current problem is because the wrapping of chanOx and
>> chanIx are just wrong.  The numbered software bus is a unidirectional
>> one, so when csound uses chani the application needs to use chano and
>> vice versa.  This is not what is implemented, so as it stands when
>> attempting to transfer data it crashs at the java end.
>>  If this analysis is correct, then either the API needs fixing, or
>> the code in OOps/bus.c lines 93-177 needs rotating.  As the API is
>> clearly wrong and cannot be used it does not matter much which one
>> does, but the current situation is wrong.
>> ==John ffitch
>>
>> ------------------------------------------------------------------------------
>> 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
> 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