Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Lisp binding works again

Date2006-10-22 22:19
FromMichael Gogins
SubjectRe: [Cs-dev] Lisp binding works again
interfaces/lisp-swig.sh

However, it should not be necessary to regenerate the bindings to use them. They are pure Lisp.

Regards,
Mike

----- Original Message ----- 
From: "Ken" 
To: "Developer discussions" 
Sent: Sunday, October 22, 2006 5:15 PM
Subject: Re: [Cs-dev] Lisp binding works again


> Are you regenerating the bindings?  If so what are you  using?
> K
> 
> Victor Lazzarini wrote:
>> Great, thanks a lot. I will try it.
>>
>> Victor
>>   
>>> I got the CFFI Lisp binding for Csound 5 working again.
>>>
>>> (1) Used latest CFFI tarball.
>>>
>>> (2) Put right code at top of generated files:
>>>
>>> (defpackage :csound
>>>     (:use :common-lisp :cffi))
>>>
>>> (in-package :csound)
>>>
>>> and
>>>
>>> (defpackage :filebuilding
>>>     (:use :common-lisp :cffi))
>>>
>>> (in-package :filebuilding)
>>>
>>> (3) Replaced incorrectly generated variadic parameters
>>> from SWIG with correct CFFI declaration:
>>>
>>> replace "(arg )" (note empty parameter list) with "&rest"
>>>
>>> (4) Moved test.lisp from examples to interfaces.
>>>
>>> (5) Removed obsolete csound5.lisp file.
>>>
>>> At some point I will examine a CLOS binding for CppSound
>>> and CsoundVST.
>>>
>>> Regards,
>>> Mike
>>>
>>>
>>>
>>>
>>>
>>> ----------------------------------------------------------
>>> --------------- Using Tomcat but need to do more? Need to
>>> support web services, security? Get stuff done quickly
>>> with pre-integrated technology to make your job easier
>>> Download IBM WebSphere Application Server v.1.0.1 based on
>>> Apache Geronimo
>>>
>>>     
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>   
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>     
>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>   
> 
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-10-23 02:23
FromKen
SubjectRe: [Cs-dev] Lisp binding works again
Well I'm getting close but csound segfaults.  This only works with clisp 
correct(swig)?

ions.fas ...
;;  Loaded file 
/var/cache/common-lisp-controller/nunativs/clisp/cffi/src/functions.fas
;;  Loading file 
/var/cache/common-lisp-controller/nunativs/clisp/cffi/src/foreign-vars.fas 
...
;;  Loaded file 
/var/cache/common-lisp-controller/nunativs/clisp/cffi/src/foreign-vars.fas
0 errors, 0 warningsLocalisation of messages is disabled, using default 
language.
time resolution is 0.683 ns

Csound tidy up: Segmentation fault
nunativs@nomad1:~/sound/csound/source/csound5/interfaces$

Thanks for working on this, I'm getting excited about working with cm & 
csound together from lisp.
Ken

Michael Gogins wrote:
> interfaces/lisp-swig.sh
>
> However, it should not be necessary to regenerate the bindings to use them. They are pure Lisp.
>
> Regards,
> Mike
>
> ----- Original Message ----- 
> From: "Ken" 
> To: "Developer discussions" 
> Sent: Sunday, October 22, 2006 5:15 PM
> Subject: Re: [Cs-dev] Lisp binding works again
>
>
>   
>> Are you regenerating the bindings?  If so what are you  using?
>> K
>>
>> Victor Lazzarini wrote:
>>     
>>> Great, thanks a lot. I will try it.
>>>
>>> Victor
>>>   
>>>       
>>>> I got the CFFI Lisp binding for Csound 5 working again.
>>>>
>>>> (1) Used latest CFFI tarball.
>>>>
>>>> (2) Put right code at top of generated files:
>>>>
>>>> (defpackage :csound
>>>>     (:use :common-lisp :cffi))
>>>>
>>>> (in-package :csound)
>>>>
>>>> and
>>>>
>>>> (defpackage :filebuilding
>>>>     (:use :common-lisp :cffi))
>>>>
>>>> (in-package :filebuilding)
>>>>
>>>> (3) Replaced incorrectly generated variadic parameters
>>>> from SWIG with correct CFFI declaration:
>>>>
>>>> replace "(arg )" (note empty parameter list) with "&rest"
>>>>
>>>> (4) Moved test.lisp from examples to interfaces.
>>>>
>>>> (5) Removed obsolete csound5.lisp file.
>>>>
>>>> At some point I will examine a CLOS binding for CppSound
>>>> and CsoundVST.
>>>>
>>>> Regards,
>>>> Mike
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ----------------------------------------------------------
>>>> --------------- Using Tomcat but need to do more? Need to
>>>> support web services, security? Get stuff done quickly
>>>> with pre-integrated technology to make your job easier
>>>> Download IBM WebSphere Application Server v.1.0.1 based on
>>>> Apache Geronimo
>>>>
>>>>     
>>>>         
>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>   
>>>       
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>     
>>>>         
>>> -------------------------------------------------------------------------
>>> Using Tomcat but need to do more? Need to support web services, security?
>>> Get stuff done quickly with pre-integrated technology to make your job easier
>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>   
>>>       
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>     
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>   


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net