Csound Csound-dev Csound-tekno Search About

[Csnd] luacsnd6

Date2018-02-02 14:45
FromJohann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE>
Subject[Csnd] luacsnd6
Hello all,

I've been trying to call Csound from luajit, 6 months ago, planning to send
some Csound score from luajit.  
And since i've installed the 6.10 version of Csound (windows 10), i can't
find the "luaCsnd6" library. 
Is it a deprecated way to call Csound from lua ? 
Is the a new way to do this, with "ffi" or something like that ?  

Thanking you in advance.

Johann



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-02 16:26
FromMichael Gogins
SubjectRe: [Csnd] luacsnd6
You don't need luaCsnd6. See this exmaple: https://github.com/csound/examples/blob/master/lua/csound_ffi.lua.

This just uses LuaJIT's foreign function interface (FFI) to call the Csound API directly.

You do need to use LuaJIT compiled for 64 bit CPU architecture, and you may need to specify the full path to the Csound library, e.g.

local csoundApi = ffi.load('full/path/csound64')
Or, add the directory containing the Csound library to LUA_CPATH. This in fact may be why you are not loading luaCsnd6.

Hope this helps,
Mike


On Feb 2, 2018 09:45, "Johann Philippe" <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello all,

I've been trying to call Csound from luajit, 6 months ago, planning to send
some Csound score from luajit.
And since i've installed the 6.10 version of Csound (windows 10), i can't
find the "luaCsnd6" library.
Is it a deprecated way to call Csound from lua ?
Is the a new way to do this, with "ffi" or something like that ?

Thanking you in advance.

Johann



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here