Csound Csound-dev Csound-tekno Search About

[Csnd] lua opcodes

Date2022-04-24 18:38
FromForrest Curo
Subject[Csnd] lua opcodes
What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-24 18:48
FromJohann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] lua opcodes
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-24 19:01
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
Um, I see "build windows". Is there a linux version?

On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-24 20:33
FromJohann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] lua opcodes
or course. the make_script.sh should be able (or at least contains enough information) to build on linux (I use it on linux too). You need luajit-dev to be installed on your system. 

I should change it to have a cmake script instead some day. if you need any help to build, feel free to PM me. 

Le dimanche 24 avril 2022, 20:07:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Um, I see "build windows". Is there a linux version?

On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-24 20:55
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
Of course! (I never catch on to how  "last commit" notes apply to the actual files, sorry!)

On Sun, Apr 24, 2022 at 12:28 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
or course. the make_script.sh should be able (or at least contains enough information) to build on linux (I use it on linux too). You need luajit-dev to be installed on your system. 

I should change it to have a cmake script instead some day. if you need any help to build, feel free to PM me. 

Le dimanche 24 avril 2022, 20:07:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Um, I see "build windows". Is there a linux version?

On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-24 20:56
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
Um, which lua version is this for?

On Sun, Apr 24, 2022 at 12:55 PM Forrest Curo <treegestalt@gmail.com> wrote:
Of course! (I never catch on to how  "last commit" notes apply to the actual files, sorry!)

On Sun, Apr 24, 2022 at 12:28 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
or course. the make_script.sh should be able (or at least contains enough information) to build on linux (I use it on linux too). You need luajit-dev to be installed on your system. 

I should change it to have a cmake script instead some day. if you need any help to build, feel free to PM me. 

Le dimanche 24 avril 2022, 20:07:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Um, I see "build windows". Is there a linux version?

On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-25 03:43
FromJohann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] lua opcodes
luajit so it's lua 5.1

Le dimanche 24 avril 2022, 21:58:17 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Um, which lua version is this for?

On Sun, Apr 24, 2022 at 12:55 PM Forrest Curo <treegestalt@gmail.com> wrote:
Of course! (I never catch on to how  "last commit" notes apply to the actual files, sorry!)

On Sun, Apr 24, 2022 at 12:28 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
or course. the make_script.sh should be able (or at least contains enough information) to build on linux (I use it on linux too). You need luajit-dev to be installed on your system. 

I should change it to have a cmake script instead some day. if you need any help to build, feel free to PM me. 

Le dimanche 24 avril 2022, 20:07:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Um, I see "build windows". Is there a linux version?

On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-25 04:13
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
with bitwise operators if I want them besides, great!

On Sun, Apr 24, 2022 at 7:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
luajit so it's lua 5.1

Le dimanche 24 avril 2022, 21:58:17 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Um, which lua version is this for?

On Sun, Apr 24, 2022 at 12:55 PM Forrest Curo <treegestalt@gmail.com> wrote:
Of course! (I never catch on to how  "last commit" notes apply to the actual files, sorry!)

On Sun, Apr 24, 2022 at 12:28 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
or course. the make_script.sh should be able (or at least contains enough information) to build on linux (I use it on linux too). You need luajit-dev to be installed on your system. 

I should change it to have a cmake script instead some day. if you need any help to build, feel free to PM me. 

Le dimanche 24 avril 2022, 20:07:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Um, I see "build windows". Is there a linux version?

On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-25 13:03
FromMichael Gogins
SubjectRe: [Csnd] lua opcodes
My "ancient" and original version is still here:


Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sun, Apr 24, 2022 at 3:56 PM Forrest Curo <treegestalt@gmail.com> wrote:
Um, which lua version is this for?

On Sun, Apr 24, 2022 at 12:55 PM Forrest Curo <treegestalt@gmail.com> wrote:
Of course! (I never catch on to how  "last commit" notes apply to the actual files, sorry!)

On Sun, Apr 24, 2022 at 12:28 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
or course. the make_script.sh should be able (or at least contains enough information) to build on linux (I use it on linux too). You need luajit-dev to be installed on your system. 

I should change it to have a cmake script instead some day. if you need any help to build, feel free to PM me. 

Le dimanche 24 avril 2022, 20:07:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Um, I see "build windows". Is there a linux version?

On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-25 17:00
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
Um, instructions re how to install and use csound plugins?

On Mon, Apr 25, 2022 at 5:04 AM Michael Gogins <michael.gogins@gmail.com> wrote:
My "ancient" and original version is still here:


Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sun, Apr 24, 2022 at 3:56 PM Forrest Curo <treegestalt@gmail.com> wrote:
Um, which lua version is this for?

On Sun, Apr 24, 2022 at 12:55 PM Forrest Curo <treegestalt@gmail.com> wrote:
Of course! (I never catch on to how  "last commit" notes apply to the actual files, sorry!)

On Sun, Apr 24, 2022 at 12:28 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
or course. the make_script.sh should be able (or at least contains enough information) to build on linux (I use it on linux too). You need luajit-dev to be installed on your system. 

I should change it to have a cmake script instead some day. if you need any help to build, feel free to PM me. 

Le dimanche 24 avril 2022, 20:07:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Um, I see "build windows". Is there a linux version?

On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-25 17:37
FromJohann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] lua opcodes
Michael, 
That was not meant to be rude. I prefer to call it the original as you said. 

Forest, I didn't use the original implementation a lot, but it is well documented here : http://www.csounds.com/manual/html/lua.html, and it also is more robust and battle tested.

The implementation I made was mostly designed for simplicity, in a time I needed to quickly access Lua tables for composition.

Both should now be relatively easy to build since based on CMake. So if you're on linux : 
cd lua_csound
mkdir build && cd build 
cmake ..
make

Then you just need to move the resulting binary (.so) to the csound plugin64 directory (probably /usr/local/lib/csound/plugins64)

Le lundi 25 avril 2022 à 18:00:54 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Um, instructions re how to install and use csound plugins?

On Mon, Apr 25, 2022 at 5:04 AM Michael Gogins <michael.gogins@gmail.com> wrote:
My "ancient" and original version is still here:


Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sun, Apr 24, 2022 at 3:56 PM Forrest Curo <treegestalt@gmail.com> wrote:
Um, which lua version is this for?

On Sun, Apr 24, 2022 at 12:55 PM Forrest Curo <treegestalt@gmail.com> wrote:
Of course! (I never catch on to how  "last commit" notes apply to the actual files, sorry!)

On Sun, Apr 24, 2022 at 12:28 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
or course. the make_script.sh should be able (or at least contains enough information) to build on linux (I use it on linux too). You need luajit-dev to be installed on your system. 

I should change it to have a cmake script instead some day. if you need any help to build, feel free to PM me. 

Le dimanche 24 avril 2022, 20:07:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Um, I see "build windows". Is there a linux version?

On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-25 18:08
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
Thank you! (There's so much that seems obvious except for people not experienced in using it!)

On Mon, Apr 25, 2022 at 9:37 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Michael, 
That was not meant to be rude. I prefer to call it the original as you said. 

Forest, I didn't use the original implementation a lot, but it is well documented here : http://www.csounds.com/manual/html/lua.html, and it also is more robust and battle tested.

The implementation I made was mostly designed for simplicity, in a time I needed to quickly access Lua tables for composition.

Both should now be relatively easy to build since based on CMake. So if you're on linux : 
cd lua_csound
mkdir build && cd build 
cmake ..
make

Then you just need to move the resulting binary (.so) to the csound plugin64 directory (probably /usr/local/lib/csound/plugins64)

Le lundi 25 avril 2022 à 18:00:54 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Um, instructions re how to install and use csound plugins?

On Mon, Apr 25, 2022 at 5:04 AM Michael Gogins <michael.gogins@gmail.com> wrote:
My "ancient" and original version is still here:


Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sun, Apr 24, 2022 at 3:56 PM Forrest Curo <treegestalt@gmail.com> wrote:
Um, which lua version is this for?

On Sun, Apr 24, 2022 at 12:55 PM Forrest Curo <treegestalt@gmail.com> wrote:
Of course! (I never catch on to how  "last commit" notes apply to the actual files, sorry!)

On Sun, Apr 24, 2022 at 12:28 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
or course. the make_script.sh should be able (or at least contains enough information) to build on linux (I use it on linux too). You need luajit-dev to be installed on your system. 

I should change it to have a cmake script instead some day. if you need any help to build, feel free to PM me. 

Le dimanche 24 avril 2022, 20:07:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Um, I see "build windows". Is there a linux version?

On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-25 18:43
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
Yours (Johann's) is specifically set to use luajit; it's less clear what version of lua the original one will run.
(?)

On Mon, Apr 25, 2022 at 10:08 AM Forrest Curo <treegestalt@gmail.com> wrote:
Thank you! (There's so much that seems obvious except for people not experienced in using it!)

On Mon, Apr 25, 2022 at 9:37 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Michael, 
That was not meant to be rude. I prefer to call it the original as you said. 

Forest, I didn't use the original implementation a lot, but it is well documented here : http://www.csounds.com/manual/html/lua.html, and it also is more robust and battle tested.

The implementation I made was mostly designed for simplicity, in a time I needed to quickly access Lua tables for composition.

Both should now be relatively easy to build since based on CMake. So if you're on linux : 
cd lua_csound
mkdir build && cd build 
cmake ..
make

Then you just need to move the resulting binary (.so) to the csound plugin64 directory (probably /usr/local/lib/csound/plugins64)

Le lundi 25 avril 2022 à 18:00:54 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Um, instructions re how to install and use csound plugins?

On Mon, Apr 25, 2022 at 5:04 AM Michael Gogins <michael.gogins@gmail.com> wrote:
My "ancient" and original version is still here:


Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sun, Apr 24, 2022 at 3:56 PM Forrest Curo <treegestalt@gmail.com> wrote:
Um, which lua version is this for?

On Sun, Apr 24, 2022 at 12:55 PM Forrest Curo <treegestalt@gmail.com> wrote:
Of course! (I never catch on to how  "last commit" notes apply to the actual files, sorry!)

On Sun, Apr 24, 2022 at 12:28 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
or course. the make_script.sh should be able (or at least contains enough information) to build on linux (I use it on linux too). You need luajit-dev to be installed on your system. 

I should change it to have a cmake script instead some day. if you need any help to build, feel free to PM me. 

Le dimanche 24 avril 2022, 20:07:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Um, I see "build windows". Is there a linux version?

On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-25 21:02
FromMichael Gogins
SubjectRe: [Csnd] lua opcodes
The original also uses LuaJIT.

I did not think any comments were rude!

Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Mon, Apr 25, 2022 at 1:43 PM Forrest Curo <treegestalt@gmail.com> wrote:
Yours (Johann's) is specifically set to use luajit; it's less clear what version of lua the original one will run.
(?)

On Mon, Apr 25, 2022 at 10:08 AM Forrest Curo <treegestalt@gmail.com> wrote:
Thank you! (There's so much that seems obvious except for people not experienced in using it!)

On Mon, Apr 25, 2022 at 9:37 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Michael, 
That was not meant to be rude. I prefer to call it the original as you said. 

Forest, I didn't use the original implementation a lot, but it is well documented here : http://www.csounds.com/manual/html/lua.html, and it also is more robust and battle tested.

The implementation I made was mostly designed for simplicity, in a time I needed to quickly access Lua tables for composition.

Both should now be relatively easy to build since based on CMake. So if you're on linux : 
cd lua_csound
mkdir build && cd build 
cmake ..
make

Then you just need to move the resulting binary (.so) to the csound plugin64 directory (probably /usr/local/lib/csound/plugins64)

Le lundi 25 avril 2022 à 18:00:54 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Um, instructions re how to install and use csound plugins?

On Mon, Apr 25, 2022 at 5:04 AM Michael Gogins <michael.gogins@gmail.com> wrote:
My "ancient" and original version is still here:


Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sun, Apr 24, 2022 at 3:56 PM Forrest Curo <treegestalt@gmail.com> wrote:
Um, which lua version is this for?

On Sun, Apr 24, 2022 at 12:55 PM Forrest Curo <treegestalt@gmail.com> wrote:
Of course! (I never catch on to how  "last commit" notes apply to the actual files, sorry!)

On Sun, Apr 24, 2022 at 12:28 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
or course. the make_script.sh should be able (or at least contains enough information) to build on linux (I use it on linux too). You need luajit-dev to be installed on your system. 

I should change it to have a cmake script instead some day. if you need any help to build, feel free to PM me. 

Le dimanche 24 avril 2022, 20:07:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Um, I see "build windows". Is there a linux version?

On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-25 21:11
FromMichael Gogins
SubjectRe: [Csnd] lua opcodes
I should add, the Lua interface in Csound can use either Lua or LuaJIT, my Lua opcoces must use LuaJIT.

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Mon, Apr 25, 2022 at 4:02 PM Michael Gogins <michael.gogins@gmail.com> wrote:
The original also uses LuaJIT.

I did not think any comments were rude!

Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Mon, Apr 25, 2022 at 1:43 PM Forrest Curo <treegestalt@gmail.com> wrote:
Yours (Johann's) is specifically set to use luajit; it's less clear what version of lua the original one will run.
(?)

On Mon, Apr 25, 2022 at 10:08 AM Forrest Curo <treegestalt@gmail.com> wrote:
Thank you! (There's so much that seems obvious except for people not experienced in using it!)

On Mon, Apr 25, 2022 at 9:37 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Michael, 
That was not meant to be rude. I prefer to call it the original as you said. 

Forest, I didn't use the original implementation a lot, but it is well documented here : http://www.csounds.com/manual/html/lua.html, and it also is more robust and battle tested.

The implementation I made was mostly designed for simplicity, in a time I needed to quickly access Lua tables for composition.

Both should now be relatively easy to build since based on CMake. So if you're on linux : 
cd lua_csound
mkdir build && cd build 
cmake ..
make

Then you just need to move the resulting binary (.so) to the csound plugin64 directory (probably /usr/local/lib/csound/plugins64)

Le lundi 25 avril 2022 à 18:00:54 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Um, instructions re how to install and use csound plugins?

On Mon, Apr 25, 2022 at 5:04 AM Michael Gogins <michael.gogins@gmail.com> wrote:
My "ancient" and original version is still here:


Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sun, Apr 24, 2022 at 3:56 PM Forrest Curo <treegestalt@gmail.com> wrote:
Um, which lua version is this for?

On Sun, Apr 24, 2022 at 12:55 PM Forrest Curo <treegestalt@gmail.com> wrote:
Of course! (I never catch on to how  "last commit" notes apply to the actual files, sorry!)

On Sun, Apr 24, 2022 at 12:28 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
or course. the make_script.sh should be able (or at least contains enough information) to build on linux (I use it on linux too). You need luajit-dev to be installed on your system. 

I should change it to have a cmake script instead some day. if you need any help to build, feel free to PM me. 

Le dimanche 24 avril 2022, 20:07:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Um, I see "build windows". Is there a linux version?

On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-26 18:49
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
Johann Philippe:
I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?


On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-26 18:52
FromDave Seidel
SubjectRe: [Csnd] lua opcodes
That's standard Markdown notation to begin and end a block of code.

On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
Johann Philippe:
I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?


On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-26 18:59
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
Thank you! (another language I don't know, oh well!)

On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
That's standard Markdown notation to begin and end a block of code.

On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
Johann Philippe:
I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?


On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-27 00:49
FromJohann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] lua opcodes
Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0

It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .




Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Thank you! (another language I don't know, oh well!)

On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
That's standard Markdown notation to begin and end a block of code.

On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
Johann Philippe:
I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?


On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-27 04:30
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
Okay, found that (and also plugins64-7.0/ ,where I assume it should work fine with csound 6.17)

On Tue, Apr 26, 2022 at 4:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0

It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .




Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Thank you! (another language I don't know, oh well!)

On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
That's standard Markdown notation to begin and end a block of code.

On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
Johann Philippe:
I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?


On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-27 04:33
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
The system complained that your file was not chmoded to be executable. (You probably want to fix that; but that was easy enough to do on my copy.)


On Tue, Apr 26, 2022 at 8:30 PM Forrest Curo <treegestalt@gmail.com> wrote:
Okay, found that (and also plugins64-7.0/ ,where I assume it should work fine with csound 6.17)

On Tue, Apr 26, 2022 at 4:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0

It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .




Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Thank you! (another language I don't know, oh well!)

On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
That's standard Markdown notation to begin and end a block of code.

On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
Johann Philippe:
I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?


On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-27 13:45
FromJohann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] lua opcodes
Thanks for feedback. What exactly is your system ?

Le mercredi 27 avril 2022, 05:35:48 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


The system complained that your file was not chmoded to be executable. (You probably want to fix that; but that was easy enough to do on my copy.)


On Tue, Apr 26, 2022 at 8:30 PM Forrest Curo <treegestalt@gmail.com> wrote:
Okay, found that (and also plugins64-7.0/ ,where I assume it should work fine with csound 6.17)

On Tue, Apr 26, 2022 at 4:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0

It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .




Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Thank you! (another language I don't know, oh well!)

On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
That's standard Markdown notation to begin and end a block of code.

On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
Johann Philippe:
I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?


On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-27 15:10
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
Ubuntu 20.04 imagines that this is some kind of security issue! [Operating systems keep getting more & more paranoid!]

I intend to finally try your plugin, as soon as I've woken up and fended off the day's distractions; thank you for your patience!

On Wed, Apr 27, 2022 at 5:45 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Thanks for feedback. What exactly is your system ?

Le mercredi 27 avril 2022, 05:35:48 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


The system complained that your file was not chmoded to be executable. (You probably want to fix that; but that was easy enough to do on my copy.)


On Tue, Apr 26, 2022 at 8:30 PM Forrest Curo <treegestalt@gmail.com> wrote:
Okay, found that (and also plugins64-7.0/ ,where I assume it should work fine with csound 6.17)

On Tue, Apr 26, 2022 at 4:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0

It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .




Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Thank you! (another language I don't know, oh well!)

On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
That's standard Markdown notation to begin and end a block of code.

On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
Johann Philippe:
I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?


On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-28 00:13
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
It loads fine (now that I finally put your binary in the right directory) but doesn't like the line:
ares = lua_call "squarewave", aArgs

error: syntax error, unexpected NEWLINE, expecting ',' or ')'  (token "
")
 from file new.csd (1), line 20:
 >>> , aArgs <<<
Parsing failed due to invalid input!

On Wed, Apr 27, 2022 at 7:10 AM Forrest Curo <treegestalt@gmail.com> wrote:
Ubuntu 20.04 imagines that this is some kind of security issue! [Operating systems keep getting more & more paranoid!]

I intend to finally try your plugin, as soon as I've woken up and fended off the day's distractions; thank you for your patience!

On Wed, Apr 27, 2022 at 5:45 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Thanks for feedback. What exactly is your system ?

Le mercredi 27 avril 2022, 05:35:48 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


The system complained that your file was not chmoded to be executable. (You probably want to fix that; but that was easy enough to do on my copy.)


On Tue, Apr 26, 2022 at 8:30 PM Forrest Curo <treegestalt@gmail.com> wrote:
Okay, found that (and also plugins64-7.0/ ,where I assume it should work fine with csound 6.17)

On Tue, Apr 26, 2022 at 4:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0

It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .




Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Thank you! (another language I don't know, oh well!)

On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
That's standard Markdown notation to begin and end a block of code.

On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
Johann Philippe:
I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?


On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Hello Forrest,
I made this plugin for Lua support a few months ago. You should be able to build it here :
It works fine, and should offer a simple interface.

The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.

Feel free to say if you have any trouble building/installing/using the lua opcodes I made

Regards

Johann Philippe




Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


What happened to these? Is there a plugin for them anywhere?

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

Date2022-04-28 00:22
Fromandy fillebrown
SubjectRe: [Csnd] lua opcodes
Try ...
ares = lua_call("squarewave", aArgs)

or ...
ares lua_call "squarewave", aArgs



On Wed, Apr 27, 2022 at 7:14 PM Forrest Curo  wrote:
>
> It loads fine (now that I finally put your binary in the right directory) but doesn't like the line:
> ares = lua_call "squarewave", aArgs
>
> error: syntax error, unexpected NEWLINE, expecting ',' or ')'  (token "
> ")
>  from file new.csd (1), line 20:
>  >>> , aArgs <<<
> Parsing failed due to invalid input!
>
> On Wed, Apr 27, 2022 at 7:10 AM Forrest Curo  wrote:
>>
>> Ubuntu 20.04 imagines that this is some kind of security issue! [Operating systems keep getting more & more paranoid!]
>>
>> I intend to finally try your plugin, as soon as I've woken up and fended off the day's distractions; thank you for your patience!
>>
>> On Wed, Apr 27, 2022 at 5:45 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Thanks for feedback. What exactly is your system ?
>>>
>>> Le mercredi 27 avril 2022, 05:35:48 UTC+2, Forrest Curo  a écrit :
>>>
>>>
>>> The system complained that your file was not chmoded to be executable. (You probably want to fix that; but that was easy enough to do on my copy.)
>>>
>>>
>>> On Tue, Apr 26, 2022 at 8:30 PM Forrest Curo  wrote:
>>>
>>> Okay, found that (and also plugins64-7.0/ ,where I assume it should work fine with csound 6.17)
>>>
>>> On Tue, Apr 26, 2022 at 4:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0
>>>
>>> It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .
>>>
>>>
>>>
>>>
>>> Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo  a écrit :
>>>
>>>
>>> Thank you! (another language I don't know, oh well!)
>>>
>>> On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel  wrote:
>>>
>>> That's standard Markdown notation to begin and end a block of code.
>>>
>>> On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo  wrote:
>>>
>>> Johann Philippe:
>>> I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?
>>>
>>>
>>> On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Hello Forrest,
>>> I made this plugin for Lua support a few months ago. You should be able to build it here :
>>> https://framagit.org/johannphilippe/lua_csound
>>> It works fine, and should offer a simple interface.
>>>
>>> The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.
>>>
>>> Feel free to say if you have any trouble building/installing/using the lua opcodes I made
>>>
>>> Regards
>>>
>>> Johann Philippe
>>>
>>>
>>>
>>>
>>> Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo  a écrit :
>>>
>>>
>>> What happened to these? Is there a plugin for them anywhere?
>>>
>>> Forrest Curo
>>> 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
>>>
>>> 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
>>>
>>> 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
>>>
>>> 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
>
> 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

Date2022-04-28 04:33
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
I tried them both; neither worked.

Could csound be missing the path to stand-alone luajit?

On Wed, Apr 27, 2022 at 4:23 PM andy fillebrown <andy.fillebrown@gmail.com> wrote:
Try ...
ares = lua_call("squarewave", aArgs)

or ...
ares lua_call "squarewave", aArgs



On Wed, Apr 27, 2022 at 7:14 PM Forrest Curo <treegestalt@gmail.com> wrote:
>
> It loads fine (now that I finally put your binary in the right directory) but doesn't like the line:
> ares = lua_call "squarewave", aArgs
>
> error: syntax error, unexpected NEWLINE, expecting ',' or ')'  (token "
> ")
>  from file new.csd (1), line 20:
>  >>> , aArgs <<<
> Parsing failed due to invalid input!
>
> On Wed, Apr 27, 2022 at 7:10 AM Forrest Curo <treegestalt@gmail.com> wrote:
>>
>> Ubuntu 20.04 imagines that this is some kind of security issue! [Operating systems keep getting more & more paranoid!]
>>
>> I intend to finally try your plugin, as soon as I've woken up and fended off the day's distractions; thank you for your patience!
>>
>> On Wed, Apr 27, 2022 at 5:45 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Thanks for feedback. What exactly is your system ?
>>>
>>> Le mercredi 27 avril 2022, 05:35:48 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> The system complained that your file was not chmoded to be executable. (You probably want to fix that; but that was easy enough to do on my copy.)
>>>
>>>
>>> On Tue, Apr 26, 2022 at 8:30 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Okay, found that (and also plugins64-7.0/ ,where I assume it should work fine with csound 6.17)
>>>
>>> On Tue, Apr 26, 2022 at 4:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0
>>>
>>> It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .
>>>
>>>
>>>
>>>
>>> Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> Thank you! (another language I don't know, oh well!)
>>>
>>> On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
>>>
>>> That's standard Markdown notation to begin and end a block of code.
>>>
>>> On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Johann Philippe:
>>> I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?
>>>
>>>
>>> On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Hello Forrest,
>>> I made this plugin for Lua support a few months ago. You should be able to build it here :
>>> https://framagit.org/johannphilippe/lua_csound
>>> It works fine, and should offer a simple interface.
>>>
>>> The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.
>>>
>>> Feel free to say if you have any trouble building/installing/using the lua opcodes I made
>>>
>>> Regards
>>>
>>> Johann Philippe
>>>
>>>
>>>
>>>
>>> Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> What happened to these? Is there a plugin for them anywhere?
>>>
>>> Forrest Curo
>>> 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
>>>
>>> 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
>>>
>>> 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
>>>
>>> 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
>
> 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
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

Date2022-04-28 05:00
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
Yes!
How can I fix this?:
forrest@beefurr:~$ whereis lua
lua: /usr/bin/lua5.3 /usr/bin/lua /usr/lib/x86_64-linux-gnu/lua /usr/local/lib/lua /usr/include/lua5.2 /usr/include/lua5.1 /usr/include/lua5.3 /usr/share/lua5.2 /usr/share/lua5.1 /usr/share/lua5.3 /usr/share/lua /usr/share/man/man1/lua.1.gz
forrest@beefurr:~$ which lua
/usr/bin/lua
forrest@beefurr:~$ lua
Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio
forrest@beefurr:~$ whereis luajit
luajit: /usr/bin/luajit [& also in manpages]

On Wed, Apr 27, 2022 at 8:33 PM Forrest Curo <treegestalt@gmail.com> wrote:
I tried them both; neither worked.

Could csound be missing the path to stand-alone luajit?

On Wed, Apr 27, 2022 at 4:23 PM andy fillebrown <andy.fillebrown@gmail.com> wrote:
Try ...
ares = lua_call("squarewave", aArgs)

or ...
ares lua_call "squarewave", aArgs



On Wed, Apr 27, 2022 at 7:14 PM Forrest Curo <treegestalt@gmail.com> wrote:
>
> It loads fine (now that I finally put your binary in the right directory) but doesn't like the line:
> ares = lua_call "squarewave", aArgs
>
> error: syntax error, unexpected NEWLINE, expecting ',' or ')'  (token "
> ")
>  from file new.csd (1), line 20:
>  >>> , aArgs <<<
> Parsing failed due to invalid input!
>
> On Wed, Apr 27, 2022 at 7:10 AM Forrest Curo <treegestalt@gmail.com> wrote:
>>
>> Ubuntu 20.04 imagines that this is some kind of security issue! [Operating systems keep getting more & more paranoid!]
>>
>> I intend to finally try your plugin, as soon as I've woken up and fended off the day's distractions; thank you for your patience!
>>
>> On Wed, Apr 27, 2022 at 5:45 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Thanks for feedback. What exactly is your system ?
>>>
>>> Le mercredi 27 avril 2022, 05:35:48 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> The system complained that your file was not chmoded to be executable. (You probably want to fix that; but that was easy enough to do on my copy.)
>>>
>>>
>>> On Tue, Apr 26, 2022 at 8:30 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Okay, found that (and also plugins64-7.0/ ,where I assume it should work fine with csound 6.17)
>>>
>>> On Tue, Apr 26, 2022 at 4:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0
>>>
>>> It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .
>>>
>>>
>>>
>>>
>>> Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> Thank you! (another language I don't know, oh well!)
>>>
>>> On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
>>>
>>> That's standard Markdown notation to begin and end a block of code.
>>>
>>> On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Johann Philippe:
>>> I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?
>>>
>>>
>>> On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Hello Forrest,
>>> I made this plugin for Lua support a few months ago. You should be able to build it here :
>>> https://framagit.org/johannphilippe/lua_csound
>>> It works fine, and should offer a simple interface.
>>>
>>> The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.
>>>
>>> Feel free to say if you have any trouble building/installing/using the lua opcodes I made
>>>
>>> Regards
>>>
>>> Johann Philippe
>>>
>>>
>>>
>>>
>>> Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> What happened to these? Is there a plugin for them anywhere?
>>>
>>> Forrest Curo
>>> 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
>>>
>>> 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
>>>
>>> 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
>>>
>>> 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
>
> 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
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

Date2022-04-28 10:17
FromJohann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] lua opcodes

Forrest, did you run  
ires lua_dofile "/home/mypath/to/squarewave.lua"

in global space ? And if so, can you print ires ?

Le jeudi 28 avril 2022, 05:58:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Yes!
How can I fix this?:
forrest@beefurr:~$ whereis lua
lua: /usr/bin/lua5.3 /usr/bin/lua /usr/lib/x86_64-linux-gnu/lua /usr/local/lib/lua /usr/include/lua5.2 /usr/include/lua5.1 /usr/include/lua5.3 /usr/share/lua5.2 /usr/share/lua5.1 /usr/share/lua5.3 /usr/share/lua /usr/share/man/man1/lua.1.gz
forrest@beefurr:~$ which lua
/usr/bin/lua
forrest@beefurr:~$ lua
Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio
forrest@beefurr:~$ whereis luajit
luajit: /usr/bin/luajit [& also in manpages]

On Wed, Apr 27, 2022 at 8:33 PM Forrest Curo <treegestalt@gmail.com> wrote:
I tried them both; neither worked.

Could csound be missing the path to stand-alone luajit?

On Wed, Apr 27, 2022 at 4:23 PM andy fillebrown <andy.fillebrown@gmail.com> wrote:
Try ...
ares = lua_call("squarewave", aArgs)

or ...
ares lua_call "squarewave", aArgs



On Wed, Apr 27, 2022 at 7:14 PM Forrest Curo <treegestalt@gmail.com> wrote:
>
> It loads fine (now that I finally put your binary in the right directory) but doesn't like the line:
> ares = lua_call "squarewave", aArgs
>
> error: syntax error, unexpected NEWLINE, expecting ',' or ')'  (token "
> ")
>  from file new.csd (1), line 20:
>  >>> , aArgs <<<
> Parsing failed due to invalid input!
>
> On Wed, Apr 27, 2022 at 7:10 AM Forrest Curo <treegestalt@gmail.com> wrote:
>>
>> Ubuntu 20.04 imagines that this is some kind of security issue! [Operating systems keep getting more & more paranoid!]
>>
>> I intend to finally try your plugin, as soon as I've woken up and fended off the day's distractions; thank you for your patience!
>>
>> On Wed, Apr 27, 2022 at 5:45 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Thanks for feedback. What exactly is your system ?
>>>
>>> Le mercredi 27 avril 2022, 05:35:48 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> The system complained that your file was not chmoded to be executable. (You probably want to fix that; but that was easy enough to do on my copy.)
>>>
>>>
>>> On Tue, Apr 26, 2022 at 8:30 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Okay, found that (and also plugins64-7.0/ ,where I assume it should work fine with csound 6.17)
>>>
>>> On Tue, Apr 26, 2022 at 4:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0
>>>
>>> It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .
>>>
>>>
>>>
>>>
>>> Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> Thank you! (another language I don't know, oh well!)
>>>
>>> On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
>>>
>>> That's standard Markdown notation to begin and end a block of code.
>>>
>>> On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Johann Philippe:
>>> I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?
>>>
>>>
>>> On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Hello Forrest,
>>> I made this plugin for Lua support a few months ago. You should be able to build it here :
>>> https://framagit.org/johannphilippe/lua_csound
>>> It works fine, and should offer a simple interface.
>>>
>>> The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.
>>>
>>> Feel free to say if you have any trouble building/installing/using the lua opcodes I made
>>>
>>> Regards
>>>
>>> Johann Philippe
>>>
>>>
>>>
>>>
>>> Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> What happened to these? Is there a plugin for them anywhere?
>>>
>>> Forrest Curo
>>> 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
>>>
>>> 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
>>>
>>> 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
>>>
>>> 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
>
> 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
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

Date2022-04-28 11:02
FromJohann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] lua opcodes
     Also the opcode is built statically with luajit so it shouldn't need to find lua in your system. 

Le jeudi 28 avril 2022, 11:19:15 UTC+2, Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> a écrit :



Forrest, did you run  
ires lua_dofile "/home/mypath/to/squarewave.lua"

in global space ? And if so, can you print ires ?

Le jeudi 28 avril 2022, 05:58:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Yes!
How can I fix this?:
forrest@beefurr:~$ whereis lua
lua: /usr/bin/lua5.3 /usr/bin/lua /usr/lib/x86_64-linux-gnu/lua /usr/local/lib/lua /usr/include/lua5.2 /usr/include/lua5.1 /usr/include/lua5.3 /usr/share/lua5.2 /usr/share/lua5.1 /usr/share/lua5.3 /usr/share/lua /usr/share/man/man1/lua.1.gz
forrest@beefurr:~$ which lua
/usr/bin/lua
forrest@beefurr:~$ lua
Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio
forrest@beefurr:~$ whereis luajit
luajit: /usr/bin/luajit [& also in manpages]

On Wed, Apr 27, 2022 at 8:33 PM Forrest Curo <treegestalt@gmail.com> wrote:
I tried them both; neither worked.

Could csound be missing the path to stand-alone luajit?

On Wed, Apr 27, 2022 at 4:23 PM andy fillebrown <andy.fillebrown@gmail.com> wrote:
Try ...
ares = lua_call("squarewave", aArgs)

or ...
ares lua_call "squarewave", aArgs



On Wed, Apr 27, 2022 at 7:14 PM Forrest Curo <treegestalt@gmail.com> wrote:
>
> It loads fine (now that I finally put your binary in the right directory) but doesn't like the line:
> ares = lua_call "squarewave", aArgs
>
> error: syntax error, unexpected NEWLINE, expecting ',' or ')'  (token "
> ")
>  from file new.csd (1), line 20:
>  >>> , aArgs <<<
> Parsing failed due to invalid input!
>
> On Wed, Apr 27, 2022 at 7:10 AM Forrest Curo <treegestalt@gmail.com> wrote:
>>
>> Ubuntu 20.04 imagines that this is some kind of security issue! [Operating systems keep getting more & more paranoid!]
>>
>> I intend to finally try your plugin, as soon as I've woken up and fended off the day's distractions; thank you for your patience!
>>
>> On Wed, Apr 27, 2022 at 5:45 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Thanks for feedback. What exactly is your system ?
>>>
>>> Le mercredi 27 avril 2022, 05:35:48 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> The system complained that your file was not chmoded to be executable. (You probably want to fix that; but that was easy enough to do on my copy.)
>>>
>>>
>>> On Tue, Apr 26, 2022 at 8:30 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Okay, found that (and also plugins64-7.0/ ,where I assume it should work fine with csound 6.17)
>>>
>>> On Tue, Apr 26, 2022 at 4:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0
>>>
>>> It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .
>>>
>>>
>>>
>>>
>>> Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> Thank you! (another language I don't know, oh well!)
>>>
>>> On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
>>>
>>> That's standard Markdown notation to begin and end a block of code.
>>>
>>> On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Johann Philippe:
>>> I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?
>>>
>>>
>>> On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Hello Forrest,
>>> I made this plugin for Lua support a few months ago. You should be able to build it here :
>>> https://framagit.org/johannphilippe/lua_csound
>>> It works fine, and should offer a simple interface.
>>>
>>> The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.
>>>
>>> Feel free to say if you have any trouble building/installing/using the lua opcodes I made
>>>
>>> Regards
>>>
>>> Johann Philippe
>>>
>>>
>>>
>>>
>>> Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> What happened to these? Is there a plugin for them anywhere?
>>>
>>> Forrest Curo
>>> 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
>>>
>>> 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
>>>
>>> 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
>>>
>>> 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
>
> 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
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

Date2022-04-28 15:34
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
I'm not sure it's being run; the print statement I put in doesn't run.
/home/forrest/luacsound.lua :
function squarewave(phasor, amp)
if(phasor < 0.5) then
return amp
else
return amp*-1
end
return 0
end
----
new.csd:
gires lua_dofile "/home/forrest/luacsound.lua"
print gires                                                       ; <==
; if it went well, ires is supposed to be 0
instr 1
aArgs[] init 2
aArgs[0] = phasor(p4)
aArgs[1] = linseg(0, p3/2, 1, p3/2, 0) ; envelope
ares lua_call ("squarewave" aArgs)
outs ares*0.3, ares*0.3
endin
----
and csound seems to be ignoring my header re sample rate.

On Thu, Apr 28, 2022 at 2:58 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
     Also the opcode is built statically with luajit so it shouldn't need to find lua in your system. 

Le jeudi 28 avril 2022, 11:19:15 UTC+2, Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> a écrit :



Forrest, did you run  
ires lua_dofile "/home/mypath/to/squarewave.lua"

in global space ? And if so, can you print ires ?

Le jeudi 28 avril 2022, 05:58:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Yes!
How can I fix this?:
forrest@beefurr:~$ whereis lua
lua: /usr/bin/lua5.3 /usr/bin/lua /usr/lib/x86_64-linux-gnu/lua /usr/local/lib/lua /usr/include/lua5.2 /usr/include/lua5.1 /usr/include/lua5.3 /usr/share/lua5.2 /usr/share/lua5.1 /usr/share/lua5.3 /usr/share/lua /usr/share/man/man1/lua.1.gz
forrest@beefurr:~$ which lua
/usr/bin/lua
forrest@beefurr:~$ lua
Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio
forrest@beefurr:~$ whereis luajit
luajit: /usr/bin/luajit [& also in manpages]

On Wed, Apr 27, 2022 at 8:33 PM Forrest Curo <treegestalt@gmail.com> wrote:
I tried them both; neither worked.

Could csound be missing the path to stand-alone luajit?

On Wed, Apr 27, 2022 at 4:23 PM andy fillebrown <andy.fillebrown@gmail.com> wrote:
Try ...
ares = lua_call("squarewave", aArgs)

or ...
ares lua_call "squarewave", aArgs



On Wed, Apr 27, 2022 at 7:14 PM Forrest Curo <treegestalt@gmail.com> wrote:
>
> It loads fine (now that I finally put your binary in the right directory) but doesn't like the line:
> ares = lua_call "squarewave", aArgs
>
> error: syntax error, unexpected NEWLINE, expecting ',' or ')'  (token "
> ")
>  from file new.csd (1), line 20:
>  >>> , aArgs <<<
> Parsing failed due to invalid input!
>
> On Wed, Apr 27, 2022 at 7:10 AM Forrest Curo <treegestalt@gmail.com> wrote:
>>
>> Ubuntu 20.04 imagines that this is some kind of security issue! [Operating systems keep getting more & more paranoid!]
>>
>> I intend to finally try your plugin, as soon as I've woken up and fended off the day's distractions; thank you for your patience!
>>
>> On Wed, Apr 27, 2022 at 5:45 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Thanks for feedback. What exactly is your system ?
>>>
>>> Le mercredi 27 avril 2022, 05:35:48 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> The system complained that your file was not chmoded to be executable. (You probably want to fix that; but that was easy enough to do on my copy.)
>>>
>>>
>>> On Tue, Apr 26, 2022 at 8:30 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Okay, found that (and also plugins64-7.0/ ,where I assume it should work fine with csound 6.17)
>>>
>>> On Tue, Apr 26, 2022 at 4:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0
>>>
>>> It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .
>>>
>>>
>>>
>>>
>>> Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> Thank you! (another language I don't know, oh well!)
>>>
>>> On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
>>>
>>> That's standard Markdown notation to begin and end a block of code.
>>>
>>> On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Johann Philippe:
>>> I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?
>>>
>>>
>>> On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Hello Forrest,
>>> I made this plugin for Lua support a few months ago. You should be able to build it here :
>>> https://framagit.org/johannphilippe/lua_csound
>>> It works fine, and should offer a simple interface.
>>>
>>> The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.
>>>
>>> Feel free to say if you have any trouble building/installing/using the lua opcodes I made
>>>
>>> Regards
>>>
>>> Johann Philippe
>>>
>>>
>>>
>>>
>>> Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> What happened to these? Is there a plugin for them anywhere?
>>>
>>> Forrest Curo
>>> 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
>>>
>>> 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
>>>
>>> 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
>>>
>>> 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
>
> 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
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
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

Date2022-04-28 16:07
FromJohann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] lua opcodes
Sorry I made a mistake in documentation. Ill fix this tonight

Le jeudi 28 avril 2022, 16:34:42 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


I'm not sure it's being run; the print statement I put in doesn't run.
/home/forrest/luacsound.lua :
function squarewave(phasor, amp)
if(phasor < 0.5) then
return amp
else
return amp*-1
end
return 0
end
----
new.csd:
gires lua_dofile "/home/forrest/luacsound.lua"
print gires                                                       ; <==
; if it went well, ires is supposed to be 0
instr 1
aArgs[] init 2
aArgs[0] = phasor(p4)
aArgs[1] = linseg(0, p3/2, 1, p3/2, 0) ; envelope
ares lua_call ("squarewave" aArgs)
outs ares*0.3, ares*0.3
endin
----
and csound seems to be ignoring my header re sample rate.

On Thu, Apr 28, 2022 at 2:58 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
     Also the opcode is built statically with luajit so it shouldn't need to find lua in your system. 

Le jeudi 28 avril 2022, 11:19:15 UTC+2, Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> a écrit :



Forrest, did you run  
ires lua_dofile "/home/mypath/to/squarewave.lua"

in global space ? And if so, can you print ires ?

Le jeudi 28 avril 2022, 05:58:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Yes!
How can I fix this?:
forrest@beefurr:~$ whereis lua
lua: /usr/bin/lua5.3 /usr/bin/lua /usr/lib/x86_64-linux-gnu/lua /usr/local/lib/lua /usr/include/lua5.2 /usr/include/lua5.1 /usr/include/lua5.3 /usr/share/lua5.2 /usr/share/lua5.1 /usr/share/lua5.3 /usr/share/lua /usr/share/man/man1/lua.1.gz
forrest@beefurr:~$ which lua
/usr/bin/lua
forrest@beefurr:~$ lua
Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio
forrest@beefurr:~$ whereis luajit
luajit: /usr/bin/luajit [& also in manpages]

On Wed, Apr 27, 2022 at 8:33 PM Forrest Curo <treegestalt@gmail.com> wrote:
I tried them both; neither worked.

Could csound be missing the path to stand-alone luajit?

On Wed, Apr 27, 2022 at 4:23 PM andy fillebrown <andy.fillebrown@gmail.com> wrote:
Try ...
ares = lua_call("squarewave", aArgs)

or ...
ares lua_call "squarewave", aArgs



On Wed, Apr 27, 2022 at 7:14 PM Forrest Curo <treegestalt@gmail.com> wrote:
>
> It loads fine (now that I finally put your binary in the right directory) but doesn't like the line:
> ares = lua_call "squarewave", aArgs
>
> error: syntax error, unexpected NEWLINE, expecting ',' or ')'  (token "
> ")
>  from file new.csd (1), line 20:
>  >>> , aArgs <<<
> Parsing failed due to invalid input!
>
> On Wed, Apr 27, 2022 at 7:10 AM Forrest Curo <treegestalt@gmail.com> wrote:
>>
>> Ubuntu 20.04 imagines that this is some kind of security issue! [Operating systems keep getting more & more paranoid!]
>>
>> I intend to finally try your plugin, as soon as I've woken up and fended off the day's distractions; thank you for your patience!
>>
>> On Wed, Apr 27, 2022 at 5:45 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Thanks for feedback. What exactly is your system ?
>>>
>>> Le mercredi 27 avril 2022, 05:35:48 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> The system complained that your file was not chmoded to be executable. (You probably want to fix that; but that was easy enough to do on my copy.)
>>>
>>>
>>> On Tue, Apr 26, 2022 at 8:30 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Okay, found that (and also plugins64-7.0/ ,where I assume it should work fine with csound 6.17)
>>>
>>> On Tue, Apr 26, 2022 at 4:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0
>>>
>>> It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .
>>>
>>>
>>>
>>>
>>> Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> Thank you! (another language I don't know, oh well!)
>>>
>>> On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
>>>
>>> That's standard Markdown notation to begin and end a block of code.
>>>
>>> On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Johann Philippe:
>>> I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?
>>>
>>>
>>> On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Hello Forrest,
>>> I made this plugin for Lua support a few months ago. You should be able to build it here :
>>> https://framagit.org/johannphilippe/lua_csound
>>> It works fine, and should offer a simple interface.
>>>
>>> The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.
>>>
>>> Feel free to say if you have any trouble building/installing/using the lua opcodes I made
>>>
>>> Regards
>>>
>>> Johann Philippe
>>>
>>>
>>>
>>>
>>> Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> What happened to these? Is there a plugin for them anywhere?
>>>
>>> Forrest Curo
>>> 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
>>>
>>> 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
>>>
>>> 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
>>>
>>> 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
>
> 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
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
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

Date2022-04-29 04:52
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
I also made a mistake in changing the code in response to a suggestion, didn't get it properly changed back.
Now that I've done so:
aArgs[] init 2
aArgs[0] = phasor(p4)
aArgs[1] = linseg(0, p3/2, 1, p3/2, 0) ; envelope
ares = lua_call "squarewave", aArgs
and fixed other errors in my csd...
It's still not working, sorry!


On Thu, Apr 28, 2022 at 8:07 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Sorry I made a mistake in documentation. Ill fix this tonight

Le jeudi 28 avril 2022, 16:34:42 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


I'm not sure it's being run; the print statement I put in doesn't run.
/home/forrest/luacsound.lua :
function squarewave(phasor, amp)
if(phasor < 0.5) then
return amp
else
return amp*-1
end
return 0
end
----
new.csd:
gires lua_dofile "/home/forrest/luacsound.lua"
print gires                                                       ; <==
; if it went well, ires is supposed to be 0
instr 1
aArgs[] init 2
aArgs[0] = phasor(p4)
aArgs[1] = linseg(0, p3/2, 1, p3/2, 0) ; envelope
ares lua_call ("squarewave" aArgs)
outs ares*0.3, ares*0.3
endin
----
and csound seems to be ignoring my header re sample rate.

On Thu, Apr 28, 2022 at 2:58 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
     Also the opcode is built statically with luajit so it shouldn't need to find lua in your system. 

Le jeudi 28 avril 2022, 11:19:15 UTC+2, Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> a écrit :



Forrest, did you run  
ires lua_dofile "/home/mypath/to/squarewave.lua"

in global space ? And if so, can you print ires ?

Le jeudi 28 avril 2022, 05:58:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Yes!
How can I fix this?:
forrest@beefurr:~$ whereis lua
lua: /usr/bin/lua5.3 /usr/bin/lua /usr/lib/x86_64-linux-gnu/lua /usr/local/lib/lua /usr/include/lua5.2 /usr/include/lua5.1 /usr/include/lua5.3 /usr/share/lua5.2 /usr/share/lua5.1 /usr/share/lua5.3 /usr/share/lua /usr/share/man/man1/lua.1.gz
forrest@beefurr:~$ which lua
/usr/bin/lua
forrest@beefurr:~$ lua
Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio
forrest@beefurr:~$ whereis luajit
luajit: /usr/bin/luajit [& also in manpages]

On Wed, Apr 27, 2022 at 8:33 PM Forrest Curo <treegestalt@gmail.com> wrote:
I tried them both; neither worked.

Could csound be missing the path to stand-alone luajit?

On Wed, Apr 27, 2022 at 4:23 PM andy fillebrown <andy.fillebrown@gmail.com> wrote:
Try ...
ares = lua_call("squarewave", aArgs)

or ...
ares lua_call "squarewave", aArgs



On Wed, Apr 27, 2022 at 7:14 PM Forrest Curo <treegestalt@gmail.com> wrote:
>
> It loads fine (now that I finally put your binary in the right directory) but doesn't like the line:
> ares = lua_call "squarewave", aArgs
>
> error: syntax error, unexpected NEWLINE, expecting ',' or ')'  (token "
> ")
>  from file new.csd (1), line 20:
>  >>> , aArgs <<<
> Parsing failed due to invalid input!
>
> On Wed, Apr 27, 2022 at 7:10 AM Forrest Curo <treegestalt@gmail.com> wrote:
>>
>> Ubuntu 20.04 imagines that this is some kind of security issue! [Operating systems keep getting more & more paranoid!]
>>
>> I intend to finally try your plugin, as soon as I've woken up and fended off the day's distractions; thank you for your patience!
>>
>> On Wed, Apr 27, 2022 at 5:45 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Thanks for feedback. What exactly is your system ?
>>>
>>> Le mercredi 27 avril 2022, 05:35:48 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> The system complained that your file was not chmoded to be executable. (You probably want to fix that; but that was easy enough to do on my copy.)
>>>
>>>
>>> On Tue, Apr 26, 2022 at 8:30 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Okay, found that (and also plugins64-7.0/ ,where I assume it should work fine with csound 6.17)
>>>
>>> On Tue, Apr 26, 2022 at 4:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0
>>>
>>> It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .
>>>
>>>
>>>
>>>
>>> Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> Thank you! (another language I don't know, oh well!)
>>>
>>> On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
>>>
>>> That's standard Markdown notation to begin and end a block of code.
>>>
>>> On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Johann Philippe:
>>> I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?
>>>
>>>
>>> On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Hello Forrest,
>>> I made this plugin for Lua support a few months ago. You should be able to build it here :
>>> https://framagit.org/johannphilippe/lua_csound
>>> It works fine, and should offer a simple interface.
>>>
>>> The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.
>>>
>>> Feel free to say if you have any trouble building/installing/using the lua opcodes I made
>>>
>>> Regards
>>>
>>> Johann Philippe
>>>
>>>
>>>
>>>
>>> Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> What happened to these? Is there a plugin for them anywhere?
>>>
>>> Forrest Curo
>>> 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
>>>
>>> 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
>>>
>>> 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
>>>
>>> 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
>
> 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
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
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
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

Date2022-04-29 10:08
FromJohann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] lua opcodes
That's because you were reproducing an error I made in Readme. Just fxed.
When calling a function in audio rate in lua, the function arguments and return type are tables of size ksmps in Lua.

function squarewave(phasor, amp)
        local arr = {}
        for i = 1, #phasor do
                if(phasor[i]  < 0.5) then
                        arr[i] = amp[i]
                else
                        arr[i] = amp[i] * -1
                end
        end
        return arr
end


Le vendredi 29 avril 2022, 05:53:12 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


I also made a mistake in changing the code in response to a suggestion, didn't get it properly changed back.
Now that I've done so:
aArgs[] init 2
aArgs[0] = phasor(p4)
aArgs[1] = linseg(0, p3/2, 1, p3/2, 0) ; envelope
ares = lua_call "squarewave", aArgs
and fixed other errors in my csd...
It's still not working, sorry!


On Thu, Apr 28, 2022 at 8:07 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Sorry I made a mistake in documentation. Ill fix this tonight

Le jeudi 28 avril 2022, 16:34:42 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


I'm not sure it's being run; the print statement I put in doesn't run.
/home/forrest/luacsound.lua :
function squarewave(phasor, amp)
if(phasor < 0.5) then
return amp
else
return amp*-1
end
return 0
end
----
new.csd:
gires lua_dofile "/home/forrest/luacsound.lua"
print gires                                                       ; <==
; if it went well, ires is supposed to be 0
instr 1
aArgs[] init 2
aArgs[0] = phasor(p4)
aArgs[1] = linseg(0, p3/2, 1, p3/2, 0) ; envelope
ares lua_call ("squarewave" aArgs)
outs ares*0.3, ares*0.3
endin
----
and csound seems to be ignoring my header re sample rate.

On Thu, Apr 28, 2022 at 2:58 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
     Also the opcode is built statically with luajit so it shouldn't need to find lua in your system. 

Le jeudi 28 avril 2022, 11:19:15 UTC+2, Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> a écrit :



Forrest, did you run  
ires lua_dofile "/home/mypath/to/squarewave.lua"

in global space ? And if so, can you print ires ?

Le jeudi 28 avril 2022, 05:58:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Yes!
How can I fix this?:
forrest@beefurr:~$ whereis lua
lua: /usr/bin/lua5.3 /usr/bin/lua /usr/lib/x86_64-linux-gnu/lua /usr/local/lib/lua /usr/include/lua5.2 /usr/include/lua5.1 /usr/include/lua5.3 /usr/share/lua5.2 /usr/share/lua5.1 /usr/share/lua5.3 /usr/share/lua /usr/share/man/man1/lua.1.gz
forrest@beefurr:~$ which lua
/usr/bin/lua
forrest@beefurr:~$ lua
Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio
forrest@beefurr:~$ whereis luajit
luajit: /usr/bin/luajit [& also in manpages]

On Wed, Apr 27, 2022 at 8:33 PM Forrest Curo <treegestalt@gmail.com> wrote:
I tried them both; neither worked.

Could csound be missing the path to stand-alone luajit?

On Wed, Apr 27, 2022 at 4:23 PM andy fillebrown <andy.fillebrown@gmail.com> wrote:
Try ...
ares = lua_call("squarewave", aArgs)

or ...
ares lua_call "squarewave", aArgs



On Wed, Apr 27, 2022 at 7:14 PM Forrest Curo <treegestalt@gmail.com> wrote:
>
> It loads fine (now that I finally put your binary in the right directory) but doesn't like the line:
> ares = lua_call "squarewave", aArgs
>
> error: syntax error, unexpected NEWLINE, expecting ',' or ')'  (token "
> ")
>  from file new.csd (1), line 20:
>  >>> , aArgs <<<
> Parsing failed due to invalid input!
>
> On Wed, Apr 27, 2022 at 7:10 AM Forrest Curo <treegestalt@gmail.com> wrote:
>>
>> Ubuntu 20.04 imagines that this is some kind of security issue! [Operating systems keep getting more & more paranoid!]
>>
>> I intend to finally try your plugin, as soon as I've woken up and fended off the day's distractions; thank you for your patience!
>>
>> On Wed, Apr 27, 2022 at 5:45 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Thanks for feedback. What exactly is your system ?
>>>
>>> Le mercredi 27 avril 2022, 05:35:48 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> The system complained that your file was not chmoded to be executable. (You probably want to fix that; but that was easy enough to do on my copy.)
>>>
>>>
>>> On Tue, Apr 26, 2022 at 8:30 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Okay, found that (and also plugins64-7.0/ ,where I assume it should work fine with csound 6.17)
>>>
>>> On Tue, Apr 26, 2022 at 4:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0
>>>
>>> It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .
>>>
>>>
>>>
>>>
>>> Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> Thank you! (another language I don't know, oh well!)
>>>
>>> On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
>>>
>>> That's standard Markdown notation to begin and end a block of code.
>>>
>>> On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Johann Philippe:
>>> I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?
>>>
>>>
>>> On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Hello Forrest,
>>> I made this plugin for Lua support a few months ago. You should be able to build it here :
>>> https://framagit.org/johannphilippe/lua_csound
>>> It works fine, and should offer a simple interface.
>>>
>>> The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.
>>>
>>> Feel free to say if you have any trouble building/installing/using the lua opcodes I made
>>>
>>> Regards
>>>
>>> Johann Philippe
>>>
>>>
>>>
>>>
>>> Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> What happened to these? Is there a plugin for them anywhere?
>>>
>>> Forrest Curo
>>> 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
>>>
>>> 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
>>>
>>> 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
>>>
>>> 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
>
> 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
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
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
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

Date2022-04-29 10:14
FromJohann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] lua opcodes
Also, when calling an opcode with "=" assignment, you should put some parenthesis for opcode arguments like
ares = lua_call("squarewave", aArgs)

You can also try test.lua and test.csd here : https://framagit.org/johannphilippe/lua_csound/-/tree/master/testq




Le vendredi 29 avril 2022, 11:08:07 UTC+2, Johann Philippe <johannphilippe@yahoo.fr> a écrit :


That's because you were reproducing an error I made in Readme. Just fxed.
When calling a function in audio rate in lua, the function arguments and return type are tables of size ksmps in Lua.

function squarewave(phasor, amp)
        local arr = {}
        for i = 1, #phasor do
                if(phasor[i]  < 0.5) then
                        arr[i] = amp[i]
                else
                        arr[i] = amp[i] * -1
                end
        end
        return arr
end


Le vendredi 29 avril 2022, 05:53:12 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


I also made a mistake in changing the code in response to a suggestion, didn't get it properly changed back.
Now that I've done so:
aArgs[] init 2
aArgs[0] = phasor(p4)
aArgs[1] = linseg(0, p3/2, 1, p3/2, 0) ; envelope
ares = lua_call "squarewave", aArgs
and fixed other errors in my csd...
It's still not working, sorry!


On Thu, Apr 28, 2022 at 8:07 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Sorry I made a mistake in documentation. Ill fix this tonight

Le jeudi 28 avril 2022, 16:34:42 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


I'm not sure it's being run; the print statement I put in doesn't run.
/home/forrest/luacsound.lua :
function squarewave(phasor, amp)
if(phasor < 0.5) then
return amp
else
return amp*-1
end
return 0
end
----
new.csd:
gires lua_dofile "/home/forrest/luacsound.lua"
print gires                                                       ; <==
; if it went well, ires is supposed to be 0
instr 1
aArgs[] init 2
aArgs[0] = phasor(p4)
aArgs[1] = linseg(0, p3/2, 1, p3/2, 0) ; envelope
ares lua_call ("squarewave" aArgs)
outs ares*0.3, ares*0.3
endin
----
and csound seems to be ignoring my header re sample rate.

On Thu, Apr 28, 2022 at 2:58 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
     Also the opcode is built statically with luajit so it shouldn't need to find lua in your system. 

Le jeudi 28 avril 2022, 11:19:15 UTC+2, Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> a écrit :



Forrest, did you run  
ires lua_dofile "/home/mypath/to/squarewave.lua"

in global space ? And if so, can you print ires ?

Le jeudi 28 avril 2022, 05:58:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Yes!
How can I fix this?:
forrest@beefurr:~$ whereis lua
lua: /usr/bin/lua5.3 /usr/bin/lua /usr/lib/x86_64-linux-gnu/lua /usr/local/lib/lua /usr/include/lua5.2 /usr/include/lua5.1 /usr/include/lua5.3 /usr/share/lua5.2 /usr/share/lua5.1 /usr/share/lua5.3 /usr/share/lua /usr/share/man/man1/lua.1.gz
forrest@beefurr:~$ which lua
/usr/bin/lua
forrest@beefurr:~$ lua
Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio
forrest@beefurr:~$ whereis luajit
luajit: /usr/bin/luajit [& also in manpages]

On Wed, Apr 27, 2022 at 8:33 PM Forrest Curo <treegestalt@gmail.com> wrote:
I tried them both; neither worked.

Could csound be missing the path to stand-alone luajit?

On Wed, Apr 27, 2022 at 4:23 PM andy fillebrown <andy.fillebrown@gmail.com> wrote:
Try ...
ares = lua_call("squarewave", aArgs)

or ...
ares lua_call "squarewave", aArgs



On Wed, Apr 27, 2022 at 7:14 PM Forrest Curo <treegestalt@gmail.com> wrote:
>
> It loads fine (now that I finally put your binary in the right directory) but doesn't like the line:
> ares = lua_call "squarewave", aArgs
>
> error: syntax error, unexpected NEWLINE, expecting ',' or ')'  (token "
> ")
>  from file new.csd (1), line 20:
>  >>> , aArgs <<<
> Parsing failed due to invalid input!
>
> On Wed, Apr 27, 2022 at 7:10 AM Forrest Curo <treegestalt@gmail.com> wrote:
>>
>> Ubuntu 20.04 imagines that this is some kind of security issue! [Operating systems keep getting more & more paranoid!]
>>
>> I intend to finally try your plugin, as soon as I've woken up and fended off the day's distractions; thank you for your patience!
>>
>> On Wed, Apr 27, 2022 at 5:45 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Thanks for feedback. What exactly is your system ?
>>>
>>> Le mercredi 27 avril 2022, 05:35:48 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> The system complained that your file was not chmoded to be executable. (You probably want to fix that; but that was easy enough to do on my copy.)
>>>
>>>
>>> On Tue, Apr 26, 2022 at 8:30 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Okay, found that (and also plugins64-7.0/ ,where I assume it should work fine with csound 6.17)
>>>
>>> On Tue, Apr 26, 2022 at 4:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0
>>>
>>> It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .
>>>
>>>
>>>
>>>
>>> Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> Thank you! (another language I don't know, oh well!)
>>>
>>> On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
>>>
>>> That's standard Markdown notation to begin and end a block of code.
>>>
>>> On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Johann Philippe:
>>> I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?
>>>
>>>
>>> On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Hello Forrest,
>>> I made this plugin for Lua support a few months ago. You should be able to build it here :
>>> https://framagit.org/johannphilippe/lua_csound
>>> It works fine, and should offer a simple interface.
>>>
>>> The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.
>>>
>>> Feel free to say if you have any trouble building/installing/using the lua opcodes I made
>>>
>>> Regards
>>>
>>> Johann Philippe
>>>
>>>
>>>
>>>
>>> Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> What happened to these? Is there a plugin for them anywhere?
>>>
>>> Forrest Curo
>>> 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
>>>
>>> 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
>>>
>>> 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
>>>
>>> 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
>
> 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
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
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
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

Date2022-04-29 14:47
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
Always tricky, mixing two different languages in one piece of code!

Okay, give me a while to finish my wake-up ritual, & I'll try it out, thanks!

On Fri, Apr 29, 2022 at 2:14 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Also, when calling an opcode with "=" assignment, you should put some parenthesis for opcode arguments like
ares = lua_call("squarewave", aArgs)

You can also try test.lua and test.csd here : https://framagit.org/johannphilippe/lua_csound/-/tree/master/testq




Le vendredi 29 avril 2022, 11:08:07 UTC+2, Johann Philippe <johannphilippe@yahoo.fr> a écrit :


That's because you were reproducing an error I made in Readme. Just fxed.
When calling a function in audio rate in lua, the function arguments and return type are tables of size ksmps in Lua.

function squarewave(phasor, amp)
        local arr = {}
        for i = 1, #phasor do
                if(phasor[i]  < 0.5) then
                        arr[i] = amp[i]
                else
                        arr[i] = amp[i] * -1
                end
        end
        return arr
end


Le vendredi 29 avril 2022, 05:53:12 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


I also made a mistake in changing the code in response to a suggestion, didn't get it properly changed back.
Now that I've done so:
aArgs[] init 2
aArgs[0] = phasor(p4)
aArgs[1] = linseg(0, p3/2, 1, p3/2, 0) ; envelope
ares = lua_call "squarewave", aArgs
and fixed other errors in my csd...
It's still not working, sorry!


On Thu, Apr 28, 2022 at 8:07 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Sorry I made a mistake in documentation. Ill fix this tonight

Le jeudi 28 avril 2022, 16:34:42 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


I'm not sure it's being run; the print statement I put in doesn't run.
/home/forrest/luacsound.lua :
function squarewave(phasor, amp)
if(phasor < 0.5) then
return amp
else
return amp*-1
end
return 0
end
----
new.csd:
gires lua_dofile "/home/forrest/luacsound.lua"
print gires                                                       ; <==
; if it went well, ires is supposed to be 0
instr 1
aArgs[] init 2
aArgs[0] = phasor(p4)
aArgs[1] = linseg(0, p3/2, 1, p3/2, 0) ; envelope
ares lua_call ("squarewave" aArgs)
outs ares*0.3, ares*0.3
endin
----
and csound seems to be ignoring my header re sample rate.

On Thu, Apr 28, 2022 at 2:58 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
     Also the opcode is built statically with luajit so it shouldn't need to find lua in your system. 

Le jeudi 28 avril 2022, 11:19:15 UTC+2, Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> a écrit :



Forrest, did you run  
ires lua_dofile "/home/mypath/to/squarewave.lua"

in global space ? And if so, can you print ires ?

Le jeudi 28 avril 2022, 05:58:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Yes!
How can I fix this?:
forrest@beefurr:~$ whereis lua
lua: /usr/bin/lua5.3 /usr/bin/lua /usr/lib/x86_64-linux-gnu/lua /usr/local/lib/lua /usr/include/lua5.2 /usr/include/lua5.1 /usr/include/lua5.3 /usr/share/lua5.2 /usr/share/lua5.1 /usr/share/lua5.3 /usr/share/lua /usr/share/man/man1/lua.1.gz
forrest@beefurr:~$ which lua
/usr/bin/lua
forrest@beefurr:~$ lua
Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio
forrest@beefurr:~$ whereis luajit
luajit: /usr/bin/luajit [& also in manpages]

On Wed, Apr 27, 2022 at 8:33 PM Forrest Curo <treegestalt@gmail.com> wrote:
I tried them both; neither worked.

Could csound be missing the path to stand-alone luajit?

On Wed, Apr 27, 2022 at 4:23 PM andy fillebrown <andy.fillebrown@gmail.com> wrote:
Try ...
ares = lua_call("squarewave", aArgs)

or ...
ares lua_call "squarewave", aArgs



On Wed, Apr 27, 2022 at 7:14 PM Forrest Curo <treegestalt@gmail.com> wrote:
>
> It loads fine (now that I finally put your binary in the right directory) but doesn't like the line:
> ares = lua_call "squarewave", aArgs
>
> error: syntax error, unexpected NEWLINE, expecting ',' or ')'  (token "
> ")
>  from file new.csd (1), line 20:
>  >>> , aArgs <<<
> Parsing failed due to invalid input!
>
> On Wed, Apr 27, 2022 at 7:10 AM Forrest Curo <treegestalt@gmail.com> wrote:
>>
>> Ubuntu 20.04 imagines that this is some kind of security issue! [Operating systems keep getting more & more paranoid!]
>>
>> I intend to finally try your plugin, as soon as I've woken up and fended off the day's distractions; thank you for your patience!
>>
>> On Wed, Apr 27, 2022 at 5:45 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Thanks for feedback. What exactly is your system ?
>>>
>>> Le mercredi 27 avril 2022, 05:35:48 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> The system complained that your file was not chmoded to be executable. (You probably want to fix that; but that was easy enough to do on my copy.)
>>>
>>>
>>> On Tue, Apr 26, 2022 at 8:30 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Okay, found that (and also plugins64-7.0/ ,where I assume it should work fine with csound 6.17)
>>>
>>> On Tue, Apr 26, 2022 at 4:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0
>>>
>>> It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .
>>>
>>>
>>>
>>>
>>> Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> Thank you! (another language I don't know, oh well!)
>>>
>>> On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
>>>
>>> That's standard Markdown notation to begin and end a block of code.
>>>
>>> On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Johann Philippe:
>>> I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?
>>>
>>>
>>> On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Hello Forrest,
>>> I made this plugin for Lua support a few months ago. You should be able to build it here :
>>> https://framagit.org/johannphilippe/lua_csound
>>> It works fine, and should offer a simple interface.
>>>
>>> The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.
>>>
>>> Feel free to say if you have any trouble building/installing/using the lua opcodes I made
>>>
>>> Regards
>>>
>>> Johann Philippe
>>>
>>>
>>>
>>>
>>> Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> What happened to these? Is there a plugin for them anywhere?
>>>
>>> Forrest Curo
>>> 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
>>>
>>> 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
>>>
>>> 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
>>>
>>> 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
>
> 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
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
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
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
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

Date2022-04-29 21:42
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
It works! But should luajit be taking up this much cpu?
real: 18.414s, CPU: 17.993s
Where messages say "lua", I can assume luajit was used?

[I'm not getting sound; but I haven't used csound in awhile. That part is my problem!]

Messages say:
...
Lua --- Constructor
State created
lua is fine
Libs opened
Lua set_params
ksmps = 10
sr = 48000
current_sample = nil
return : 0
Lua --- Error = 0
DoFile done 

(?)

On Fri, Apr 29, 2022 at 6:47 AM Forrest Curo <treegestalt@gmail.com> wrote:
Always tricky, mixing two different languages in one piece of code!

Okay, give me a while to finish my wake-up ritual, & I'll try it out, thanks!

On Fri, Apr 29, 2022 at 2:14 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Also, when calling an opcode with "=" assignment, you should put some parenthesis for opcode arguments like
ares = lua_call("squarewave", aArgs)

You can also try test.lua and test.csd here : https://framagit.org/johannphilippe/lua_csound/-/tree/master/testq




Le vendredi 29 avril 2022, 11:08:07 UTC+2, Johann Philippe <johannphilippe@yahoo.fr> a écrit :


That's because you were reproducing an error I made in Readme. Just fxed.
When calling a function in audio rate in lua, the function arguments and return type are tables of size ksmps in Lua.

function squarewave(phasor, amp)
        local arr = {}
        for i = 1, #phasor do
                if(phasor[i]  < 0.5) then
                        arr[i] = amp[i]
                else
                        arr[i] = amp[i] * -1
                end
        end
        return arr
end


Le vendredi 29 avril 2022, 05:53:12 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


I also made a mistake in changing the code in response to a suggestion, didn't get it properly changed back.
Now that I've done so:
aArgs[] init 2
aArgs[0] = phasor(p4)
aArgs[1] = linseg(0, p3/2, 1, p3/2, 0) ; envelope
ares = lua_call "squarewave", aArgs
and fixed other errors in my csd...
It's still not working, sorry!


On Thu, Apr 28, 2022 at 8:07 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Sorry I made a mistake in documentation. Ill fix this tonight

Le jeudi 28 avril 2022, 16:34:42 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


I'm not sure it's being run; the print statement I put in doesn't run.
/home/forrest/luacsound.lua :
function squarewave(phasor, amp)
if(phasor < 0.5) then
return amp
else
return amp*-1
end
return 0
end
----
new.csd:
gires lua_dofile "/home/forrest/luacsound.lua"
print gires                                                       ; <==
; if it went well, ires is supposed to be 0
instr 1
aArgs[] init 2
aArgs[0] = phasor(p4)
aArgs[1] = linseg(0, p3/2, 1, p3/2, 0) ; envelope
ares lua_call ("squarewave" aArgs)
outs ares*0.3, ares*0.3
endin
----
and csound seems to be ignoring my header re sample rate.

On Thu, Apr 28, 2022 at 2:58 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
     Also the opcode is built statically with luajit so it shouldn't need to find lua in your system. 

Le jeudi 28 avril 2022, 11:19:15 UTC+2, Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> a écrit :



Forrest, did you run  
ires lua_dofile "/home/mypath/to/squarewave.lua"

in global space ? And if so, can you print ires ?

Le jeudi 28 avril 2022, 05:58:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Yes!
How can I fix this?:
forrest@beefurr:~$ whereis lua
lua: /usr/bin/lua5.3 /usr/bin/lua /usr/lib/x86_64-linux-gnu/lua /usr/local/lib/lua /usr/include/lua5.2 /usr/include/lua5.1 /usr/include/lua5.3 /usr/share/lua5.2 /usr/share/lua5.1 /usr/share/lua5.3 /usr/share/lua /usr/share/man/man1/lua.1.gz
forrest@beefurr:~$ which lua
/usr/bin/lua
forrest@beefurr:~$ lua
Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio
forrest@beefurr:~$ whereis luajit
luajit: /usr/bin/luajit [& also in manpages]

On Wed, Apr 27, 2022 at 8:33 PM Forrest Curo <treegestalt@gmail.com> wrote:
I tried them both; neither worked.

Could csound be missing the path to stand-alone luajit?

On Wed, Apr 27, 2022 at 4:23 PM andy fillebrown <andy.fillebrown@gmail.com> wrote:
Try ...
ares = lua_call("squarewave", aArgs)

or ...
ares lua_call "squarewave", aArgs



On Wed, Apr 27, 2022 at 7:14 PM Forrest Curo <treegestalt@gmail.com> wrote:
>
> It loads fine (now that I finally put your binary in the right directory) but doesn't like the line:
> ares = lua_call "squarewave", aArgs
>
> error: syntax error, unexpected NEWLINE, expecting ',' or ')'  (token "
> ")
>  from file new.csd (1), line 20:
>  >>> , aArgs <<<
> Parsing failed due to invalid input!
>
> On Wed, Apr 27, 2022 at 7:10 AM Forrest Curo <treegestalt@gmail.com> wrote:
>>
>> Ubuntu 20.04 imagines that this is some kind of security issue! [Operating systems keep getting more & more paranoid!]
>>
>> I intend to finally try your plugin, as soon as I've woken up and fended off the day's distractions; thank you for your patience!
>>
>> On Wed, Apr 27, 2022 at 5:45 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Thanks for feedback. What exactly is your system ?
>>>
>>> Le mercredi 27 avril 2022, 05:35:48 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> The system complained that your file was not chmoded to be executable. (You probably want to fix that; but that was easy enough to do on my copy.)
>>>
>>>
>>> On Tue, Apr 26, 2022 at 8:30 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Okay, found that (and also plugins64-7.0/ ,where I assume it should work fine with csound 6.17)
>>>
>>> On Tue, Apr 26, 2022 at 4:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0
>>>
>>> It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .
>>>
>>>
>>>
>>>
>>> Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> Thank you! (another language I don't know, oh well!)
>>>
>>> On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
>>>
>>> That's standard Markdown notation to begin and end a block of code.
>>>
>>> On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Johann Philippe:
>>> I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?
>>>
>>>
>>> On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Hello Forrest,
>>> I made this plugin for Lua support a few months ago. You should be able to build it here :
>>> https://framagit.org/johannphilippe/lua_csound
>>> It works fine, and should offer a simple interface.
>>>
>>> The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.
>>>
>>> Feel free to say if you have any trouble building/installing/using the lua opcodes I made
>>>
>>> Regards
>>>
>>> Johann Philippe
>>>
>>>
>>>
>>>
>>> Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> What happened to these? Is there a plugin for them anywhere?
>>>
>>> Forrest Curo
>>> 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
>>>
>>> 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
>>>
>>> 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
>>>
>>> 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
>
> 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
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
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
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
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

Date2022-04-29 23:54
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
I'm getting pretty good sound from this, after changing the buffer sizes to suit 'jack'. After 1.5 seconds, though, it breaks up into xruns.

This opcode? -- or just my bad audio settings? Chords with your opcode? Fine, up to a second or so. Later notes, same opcode? -- xruns. Ideas? (Your plugin will be great for control signals in any case; but I'm curious.)

On Fri, Apr 29, 2022 at 1:42 PM Forrest Curo <treegestalt@gmail.com> wrote:
It works! But should luajit be taking up this much cpu?
real: 18.414s, CPU: 17.993s
Where messages say "lua", I can assume luajit was used?

[I'm not getting sound; but I haven't used csound in awhile. That part is my problem!]

Messages say:
...
Lua --- Constructor
State created
lua is fine
Libs opened
Lua set_params
ksmps = 10
sr = 48000
current_sample = nil
return : 0
Lua --- Error = 0
DoFile done 

(?)

On Fri, Apr 29, 2022 at 6:47 AM Forrest Curo <treegestalt@gmail.com> wrote:
Always tricky, mixing two different languages in one piece of code!

Okay, give me a while to finish my wake-up ritual, & I'll try it out, thanks!

On Fri, Apr 29, 2022 at 2:14 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Also, when calling an opcode with "=" assignment, you should put some parenthesis for opcode arguments like
ares = lua_call("squarewave", aArgs)

You can also try test.lua and test.csd here : https://framagit.org/johannphilippe/lua_csound/-/tree/master/testq




Le vendredi 29 avril 2022, 11:08:07 UTC+2, Johann Philippe <johannphilippe@yahoo.fr> a écrit :


That's because you were reproducing an error I made in Readme. Just fxed.
When calling a function in audio rate in lua, the function arguments and return type are tables of size ksmps in Lua.

function squarewave(phasor, amp)
        local arr = {}
        for i = 1, #phasor do
                if(phasor[i]  < 0.5) then
                        arr[i] = amp[i]
                else
                        arr[i] = amp[i] * -1
                end
        end
        return arr
end


Le vendredi 29 avril 2022, 05:53:12 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


I also made a mistake in changing the code in response to a suggestion, didn't get it properly changed back.
Now that I've done so:
aArgs[] init 2
aArgs[0] = phasor(p4)
aArgs[1] = linseg(0, p3/2, 1, p3/2, 0) ; envelope
ares = lua_call "squarewave", aArgs
and fixed other errors in my csd...
It's still not working, sorry!


On Thu, Apr 28, 2022 at 8:07 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Sorry I made a mistake in documentation. Ill fix this tonight

Le jeudi 28 avril 2022, 16:34:42 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


I'm not sure it's being run; the print statement I put in doesn't run.
/home/forrest/luacsound.lua :
function squarewave(phasor, amp)
if(phasor < 0.5) then
return amp
else
return amp*-1
end
return 0
end
----
new.csd:
gires lua_dofile "/home/forrest/luacsound.lua"
print gires                                                       ; <==
; if it went well, ires is supposed to be 0
instr 1
aArgs[] init 2
aArgs[0] = phasor(p4)
aArgs[1] = linseg(0, p3/2, 1, p3/2, 0) ; envelope
ares lua_call ("squarewave" aArgs)
outs ares*0.3, ares*0.3
endin
----
and csound seems to be ignoring my header re sample rate.

On Thu, Apr 28, 2022 at 2:58 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
     Also the opcode is built statically with luajit so it shouldn't need to find lua in your system. 

Le jeudi 28 avril 2022, 11:19:15 UTC+2, Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> a écrit :



Forrest, did you run  
ires lua_dofile "/home/mypath/to/squarewave.lua"

in global space ? And if so, can you print ires ?

Le jeudi 28 avril 2022, 05:58:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Yes!
How can I fix this?:
forrest@beefurr:~$ whereis lua
lua: /usr/bin/lua5.3 /usr/bin/lua /usr/lib/x86_64-linux-gnu/lua /usr/local/lib/lua /usr/include/lua5.2 /usr/include/lua5.1 /usr/include/lua5.3 /usr/share/lua5.2 /usr/share/lua5.1 /usr/share/lua5.3 /usr/share/lua /usr/share/man/man1/lua.1.gz
forrest@beefurr:~$ which lua
/usr/bin/lua
forrest@beefurr:~$ lua
Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio
forrest@beefurr:~$ whereis luajit
luajit: /usr/bin/luajit [& also in manpages]

On Wed, Apr 27, 2022 at 8:33 PM Forrest Curo <treegestalt@gmail.com> wrote:
I tried them both; neither worked.

Could csound be missing the path to stand-alone luajit?

On Wed, Apr 27, 2022 at 4:23 PM andy fillebrown <andy.fillebrown@gmail.com> wrote:
Try ...
ares = lua_call("squarewave", aArgs)

or ...
ares lua_call "squarewave", aArgs



On Wed, Apr 27, 2022 at 7:14 PM Forrest Curo <treegestalt@gmail.com> wrote:
>
> It loads fine (now that I finally put your binary in the right directory) but doesn't like the line:
> ares = lua_call "squarewave", aArgs
>
> error: syntax error, unexpected NEWLINE, expecting ',' or ')'  (token "
> ")
>  from file new.csd (1), line 20:
>  >>> , aArgs <<<
> Parsing failed due to invalid input!
>
> On Wed, Apr 27, 2022 at 7:10 AM Forrest Curo <treegestalt@gmail.com> wrote:
>>
>> Ubuntu 20.04 imagines that this is some kind of security issue! [Operating systems keep getting more & more paranoid!]
>>
>> I intend to finally try your plugin, as soon as I've woken up and fended off the day's distractions; thank you for your patience!
>>
>> On Wed, Apr 27, 2022 at 5:45 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Thanks for feedback. What exactly is your system ?
>>>
>>> Le mercredi 27 avril 2022, 05:35:48 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> The system complained that your file was not chmoded to be executable. (You probably want to fix that; but that was easy enough to do on my copy.)
>>>
>>>
>>> On Tue, Apr 26, 2022 at 8:30 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Okay, found that (and also plugins64-7.0/ ,where I assume it should work fine with csound 6.17)
>>>
>>> On Tue, Apr 26, 2022 at 4:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0
>>>
>>> It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .
>>>
>>>
>>>
>>>
>>> Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> Thank you! (another language I don't know, oh well!)
>>>
>>> On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
>>>
>>> That's standard Markdown notation to begin and end a block of code.
>>>
>>> On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Johann Philippe:
>>> I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?
>>>
>>>
>>> On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Hello Forrest,
>>> I made this plugin for Lua support a few months ago. You should be able to build it here :
>>> https://framagit.org/johannphilippe/lua_csound
>>> It works fine, and should offer a simple interface.
>>>
>>> The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.
>>>
>>> Feel free to say if you have any trouble building/installing/using the lua opcodes I made
>>>
>>> Regards
>>>
>>> Johann Philippe
>>>
>>>
>>>
>>>
>>> Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> What happened to these? Is there a plugin for them anywhere?
>>>
>>> Forrest Curo
>>> 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
>>>
>>> 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
>>>
>>> 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
>>>
>>> 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
>
> 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
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
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
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
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

Date2022-04-30 09:25
FromJohann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] lua opcodes
I made the audio part only for prototyping some audio stuff quickly. If speed is what you need I think Michael's opcode is better. 
I use mine mostly for control. 
Though there might be a way to speed up things with FFI and JIT C in this opcode too. Never tried. 

Le vendredi 29 avril 2022, 22:42:52 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


It works! But should luajit be taking up this much cpu?
real: 18.414s, CPU: 17.993s
Where messages say "lua", I can assume luajit was used?

[I'm not getting sound; but I haven't used csound in awhile. That part is my problem!]

Messages say:
...
Lua --- Constructor
State created
lua is fine
Libs opened
Lua set_params
ksmps = 10
sr = 48000
current_sample = nil
return : 0
Lua --- Error = 0
DoFile done 

(?)

On Fri, Apr 29, 2022 at 6:47 AM Forrest Curo <treegestalt@gmail.com> wrote:
Always tricky, mixing two different languages in one piece of code!

Okay, give me a while to finish my wake-up ritual, & I'll try it out, thanks!

On Fri, Apr 29, 2022 at 2:14 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Also, when calling an opcode with "=" assignment, you should put some parenthesis for opcode arguments like
ares = lua_call("squarewave", aArgs)

You can also try test.lua and test.csd here : https://framagit.org/johannphilippe/lua_csound/-/tree/master/testq




Le vendredi 29 avril 2022, 11:08:07 UTC+2, Johann Philippe <johannphilippe@yahoo.fr> a écrit :


That's because you were reproducing an error I made in Readme. Just fxed.
When calling a function in audio rate in lua, the function arguments and return type are tables of size ksmps in Lua.

function squarewave(phasor, amp)
        local arr = {}
        for i = 1, #phasor do
                if(phasor[i]  < 0.5) then
                        arr[i] = amp[i]
                else
                        arr[i] = amp[i] * -1
                end
        end
        return arr
end


Le vendredi 29 avril 2022, 05:53:12 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


I also made a mistake in changing the code in response to a suggestion, didn't get it properly changed back.
Now that I've done so:
aArgs[] init 2
aArgs[0] = phasor(p4)
aArgs[1] = linseg(0, p3/2, 1, p3/2, 0) ; envelope
ares = lua_call "squarewave", aArgs
and fixed other errors in my csd...
It's still not working, sorry!


On Thu, Apr 28, 2022 at 8:07 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Sorry I made a mistake in documentation. Ill fix this tonight

Le jeudi 28 avril 2022, 16:34:42 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


I'm not sure it's being run; the print statement I put in doesn't run.
/home/forrest/luacsound.lua :
function squarewave(phasor, amp)
if(phasor < 0.5) then
return amp
else
return amp*-1
end
return 0
end
----
new.csd:
gires lua_dofile "/home/forrest/luacsound.lua"
print gires                                                       ; <==
; if it went well, ires is supposed to be 0
instr 1
aArgs[] init 2
aArgs[0] = phasor(p4)
aArgs[1] = linseg(0, p3/2, 1, p3/2, 0) ; envelope
ares lua_call ("squarewave" aArgs)
outs ares*0.3, ares*0.3
endin
----
and csound seems to be ignoring my header re sample rate.

On Thu, Apr 28, 2022 at 2:58 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
     Also the opcode is built statically with luajit so it shouldn't need to find lua in your system. 

Le jeudi 28 avril 2022, 11:19:15 UTC+2, Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> a écrit :



Forrest, did you run  
ires lua_dofile "/home/mypath/to/squarewave.lua"

in global space ? And if so, can you print ires ?

Le jeudi 28 avril 2022, 05:58:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Yes!
How can I fix this?:
forrest@beefurr:~$ whereis lua
lua: /usr/bin/lua5.3 /usr/bin/lua /usr/lib/x86_64-linux-gnu/lua /usr/local/lib/lua /usr/include/lua5.2 /usr/include/lua5.1 /usr/include/lua5.3 /usr/share/lua5.2 /usr/share/lua5.1 /usr/share/lua5.3 /usr/share/lua /usr/share/man/man1/lua.1.gz
forrest@beefurr:~$ which lua
/usr/bin/lua
forrest@beefurr:~$ lua
Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio
forrest@beefurr:~$ whereis luajit
luajit: /usr/bin/luajit [& also in manpages]

On Wed, Apr 27, 2022 at 8:33 PM Forrest Curo <treegestalt@gmail.com> wrote:
I tried them both; neither worked.

Could csound be missing the path to stand-alone luajit?

On Wed, Apr 27, 2022 at 4:23 PM andy fillebrown <andy.fillebrown@gmail.com> wrote:
Try ...
ares = lua_call("squarewave", aArgs)

or ...
ares lua_call "squarewave", aArgs



On Wed, Apr 27, 2022 at 7:14 PM Forrest Curo <treegestalt@gmail.com> wrote:
>
> It loads fine (now that I finally put your binary in the right directory) but doesn't like the line:
> ares = lua_call "squarewave", aArgs
>
> error: syntax error, unexpected NEWLINE, expecting ',' or ')'  (token "
> ")
>  from file new.csd (1), line 20:
>  >>> , aArgs <<<
> Parsing failed due to invalid input!
>
> On Wed, Apr 27, 2022 at 7:10 AM Forrest Curo <treegestalt@gmail.com> wrote:
>>
>> Ubuntu 20.04 imagines that this is some kind of security issue! [Operating systems keep getting more & more paranoid!]
>>
>> I intend to finally try your plugin, as soon as I've woken up and fended off the day's distractions; thank you for your patience!
>>
>> On Wed, Apr 27, 2022 at 5:45 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Thanks for feedback. What exactly is your system ?
>>>
>>> Le mercredi 27 avril 2022, 05:35:48 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> The system complained that your file was not chmoded to be executable. (You probably want to fix that; but that was easy enough to do on my copy.)
>>>
>>>
>>> On Tue, Apr 26, 2022 at 8:30 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Okay, found that (and also plugins64-7.0/ ,where I assume it should work fine with csound 6.17)
>>>
>>> On Tue, Apr 26, 2022 at 4:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0
>>>
>>> It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .
>>>
>>>
>>>
>>>
>>> Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> Thank you! (another language I don't know, oh well!)
>>>
>>> On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
>>>
>>> That's standard Markdown notation to begin and end a block of code.
>>>
>>> On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Johann Philippe:
>>> I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?
>>>
>>>
>>> On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Hello Forrest,
>>> I made this plugin for Lua support a few months ago. You should be able to build it here :
>>> https://framagit.org/johannphilippe/lua_csound
>>> It works fine, and should offer a simple interface.
>>>
>>> The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.
>>>
>>> Feel free to say if you have any trouble building/installing/using the lua opcodes I made
>>>
>>> Regards
>>>
>>> Johann Philippe
>>>
>>>
>>>
>>>
>>> Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> What happened to these? Is there a plugin for them anywhere?
>>>
>>> Forrest Curo
>>> 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
>>>
>>> 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
>>>
>>> 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
>>>
>>> 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
>
> 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
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
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
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
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

Date2022-04-30 14:39
FromForrest Curo
SubjectRe: [Csnd] lua opcodes
Control changes is all I really need. Fast mapping of midi numbers to altered frequency values, for example.

It works fine, thanks!

On Sat, Apr 30, 2022 at 1:25 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
I made the audio part only for prototyping some audio stuff quickly. If speed is what you need I think Michael's opcode is better. 
I use mine mostly for control. 
Though there might be a way to speed up things with FFI and JIT C in this opcode too. Never tried. 

Le vendredi 29 avril 2022, 22:42:52 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


It works! But should luajit be taking up this much cpu?
real: 18.414s, CPU: 17.993s
Where messages say "lua", I can assume luajit was used?

[I'm not getting sound; but I haven't used csound in awhile. That part is my problem!]

Messages say:
...
Lua --- Constructor
State created
lua is fine
Libs opened
Lua set_params
ksmps = 10
sr = 48000
current_sample = nil
return : 0
Lua --- Error = 0
DoFile done 

(?)

On Fri, Apr 29, 2022 at 6:47 AM Forrest Curo <treegestalt@gmail.com> wrote:
Always tricky, mixing two different languages in one piece of code!

Okay, give me a while to finish my wake-up ritual, & I'll try it out, thanks!

On Fri, Apr 29, 2022 at 2:14 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Also, when calling an opcode with "=" assignment, you should put some parenthesis for opcode arguments like
ares = lua_call("squarewave", aArgs)

You can also try test.lua and test.csd here : https://framagit.org/johannphilippe/lua_csound/-/tree/master/testq




Le vendredi 29 avril 2022, 11:08:07 UTC+2, Johann Philippe <johannphilippe@yahoo.fr> a écrit :


That's because you were reproducing an error I made in Readme. Just fxed.
When calling a function in audio rate in lua, the function arguments and return type are tables of size ksmps in Lua.

function squarewave(phasor, amp)
        local arr = {}
        for i = 1, #phasor do
                if(phasor[i]  < 0.5) then
                        arr[i] = amp[i]
                else
                        arr[i] = amp[i] * -1
                end
        end
        return arr
end


Le vendredi 29 avril 2022, 05:53:12 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


I also made a mistake in changing the code in response to a suggestion, didn't get it properly changed back.
Now that I've done so:
aArgs[] init 2
aArgs[0] = phasor(p4)
aArgs[1] = linseg(0, p3/2, 1, p3/2, 0) ; envelope
ares = lua_call "squarewave", aArgs
and fixed other errors in my csd...
It's still not working, sorry!


On Thu, Apr 28, 2022 at 8:07 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
Sorry I made a mistake in documentation. Ill fix this tonight

Le jeudi 28 avril 2022, 16:34:42 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


I'm not sure it's being run; the print statement I put in doesn't run.
/home/forrest/luacsound.lua :
function squarewave(phasor, amp)
if(phasor < 0.5) then
return amp
else
return amp*-1
end
return 0
end
----
new.csd:
gires lua_dofile "/home/forrest/luacsound.lua"
print gires                                                       ; <==
; if it went well, ires is supposed to be 0
instr 1
aArgs[] init 2
aArgs[0] = phasor(p4)
aArgs[1] = linseg(0, p3/2, 1, p3/2, 0) ; envelope
ares lua_call ("squarewave" aArgs)
outs ares*0.3, ares*0.3
endin
----
and csound seems to be ignoring my header re sample rate.

On Thu, Apr 28, 2022 at 2:58 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
     Also the opcode is built statically with luajit so it shouldn't need to find lua in your system. 

Le jeudi 28 avril 2022, 11:19:15 UTC+2, Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> a écrit :



Forrest, did you run  
ires lua_dofile "/home/mypath/to/squarewave.lua"

in global space ? And if so, can you print ires ?

Le jeudi 28 avril 2022, 05:58:44 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :


Yes!
How can I fix this?:
forrest@beefurr:~$ whereis lua
lua: /usr/bin/lua5.3 /usr/bin/lua /usr/lib/x86_64-linux-gnu/lua /usr/local/lib/lua /usr/include/lua5.2 /usr/include/lua5.1 /usr/include/lua5.3 /usr/share/lua5.2 /usr/share/lua5.1 /usr/share/lua5.3 /usr/share/lua /usr/share/man/man1/lua.1.gz
forrest@beefurr:~$ which lua
/usr/bin/lua
forrest@beefurr:~$ lua
Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio
forrest@beefurr:~$ whereis luajit
luajit: /usr/bin/luajit [& also in manpages]

On Wed, Apr 27, 2022 at 8:33 PM Forrest Curo <treegestalt@gmail.com> wrote:
I tried them both; neither worked.

Could csound be missing the path to stand-alone luajit?

On Wed, Apr 27, 2022 at 4:23 PM andy fillebrown <andy.fillebrown@gmail.com> wrote:
Try ...
ares = lua_call("squarewave", aArgs)

or ...
ares lua_call "squarewave", aArgs



On Wed, Apr 27, 2022 at 7:14 PM Forrest Curo <treegestalt@gmail.com> wrote:
>
> It loads fine (now that I finally put your binary in the right directory) but doesn't like the line:
> ares = lua_call "squarewave", aArgs
>
> error: syntax error, unexpected NEWLINE, expecting ',' or ')'  (token "
> ")
>  from file new.csd (1), line 20:
>  >>> , aArgs <<<
> Parsing failed due to invalid input!
>
> On Wed, Apr 27, 2022 at 7:10 AM Forrest Curo <treegestalt@gmail.com> wrote:
>>
>> Ubuntu 20.04 imagines that this is some kind of security issue! [Operating systems keep getting more & more paranoid!]
>>
>> I intend to finally try your plugin, as soon as I've woken up and fended off the day's distractions; thank you for your patience!
>>
>> On Wed, Apr 27, 2022 at 5:45 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Thanks for feedback. What exactly is your system ?
>>>
>>> Le mercredi 27 avril 2022, 05:35:48 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> The system complained that your file was not chmoded to be executable. (You probably want to fix that; but that was easy enough to do on my copy.)
>>>
>>>
>>> On Tue, Apr 26, 2022 at 8:30 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Okay, found that (and also plugins64-7.0/ ,where I assume it should work fine with csound 6.17)
>>>
>>> On Tue, Apr 26, 2022 at 4:43 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Also, I added binaries for Windows (MSVC 19) and Linux (clang 10) here https://framagit.org/johannphilippe/lua_csound/-/releases/0.0
>>>
>>> It should hopefully work with a recent version of Csound. Just put it in your plugin path (something like /usr/local/lib/csound/plugins64-6.0/ ), and you should be able to use it .
>>>
>>>
>>>
>>>
>>> Le mardi 26 avril 2022, 19:58:49 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> Thank you! (another language I don't know, oh well!)
>>>
>>> On Tue, Apr 26, 2022 at 10:52 AM Dave Seidel <dave.seidel@gmail.com> wrote:
>>>
>>> That's standard Markdown notation to begin and end a block of code.
>>>
>>> On Tue, Apr 26, 2022 at 1:49 PM Forrest Curo <treegestalt@gmail.com> wrote:
>>>
>>> Johann Philippe:
>>> I'm confused by your use of ``` in your README.md file... Is that required notation anywhere? -- or simply a way of marking off quoted material there?
>>>
>>>
>>> On Sun, Apr 24, 2022 at 10:44 AM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>>>
>>> Hello Forrest,
>>> I made this plugin for Lua support a few months ago. You should be able to build it here :
>>> https://framagit.org/johannphilippe/lua_csound
>>> It works fine, and should offer a simple interface.
>>>
>>> The is also the ancient one, but it's more complex to use, and I don't know where the source code is right now.
>>>
>>> Feel free to say if you have any trouble building/installing/using the lua opcodes I made
>>>
>>> Regards
>>>
>>> Johann Philippe
>>>
>>>
>>>
>>>
>>> Le dimanche 24 avril 2022, 19:38:36 UTC+2, Forrest Curo <treegestalt@gmail.com> a écrit :
>>>
>>>
>>> What happened to these? Is there a plugin for them anywhere?
>>>
>>> Forrest Curo
>>> 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
>>>
>>> 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
>>>
>>> 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
>>>
>>> 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
>
> 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
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
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
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
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
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