[Csnd] Opengl in Csound5?
Date | 2011-04-15 13:21 |
From | Giorgio77 |
Subject | [Csnd] Opengl in Csound5? |
Hi, my dream in csound....will be possible in future to integrate OpenGL in Csound5?like the older CsoundAV of Maldonado?to manage a multimedia project incorporating the same source csound for audio and video (like Max and Jitter),i think that could be an interesting field to explore,thanks! Giorgio -- View this message in context: http://csound.1045644.n5.nabble.com/Opengl-in-Csound5-tp4305416p4305416.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-04-15 13:38 |
From | Michael Gogins |
Subject | Re: [Csnd] Opengl in Csound5? |
At the present time, on the Intel architecture, it is possible to integrate Csound with OpenGL using LuaJIT with FFI. LuaJIT is fast enough, and FFI enables calls into native libraries such as OpenGL. I also use the glfw library since LuaJIT's FFI does not support callbacks, and glfw does provide an efficient polling interface to the mouse and keyboard. In this approach, you write your piece or program in Lua running on LuaJIT, and use LuaJIT's FFI to call the native Csound, OpenGL, and glfw APIs. In general, LuaJIT's FFI can call into any shared library with a C calling convention API. There is no need for precompiled "wrappers" such as those made with SWIG.
I have not tried to create "pieces" using OpenGL, but I do use OpenGL to present a 3-dimensional piano roll view of a score generated in Lua, and I then render this score using Csound. Performance is impressive.
Regards, Mike On Fri, Apr 15, 2011 at 8:21 AM, Giorgio77 <giorgiobrx@libero.it> wrote: Hi, my dream in csound....will be possible in future to integrate OpenGL in -- Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |
Date | 2011-04-15 14:10 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Opengl in Csound5? |
Of course you can also use C or C++ with Csound and OpenGL. Mike, can you post a video of what you've done with OpenGL so we could have a look? Victor On 15 Apr 2011, at 13:38, Michael Gogins wrote: At the present time, on the Intel architecture, it is possible to integrate Csound with OpenGL using LuaJIT with FFI. LuaJIT is fast enough, and FFI enables calls into native libraries such as OpenGL. I also use the glfw library since LuaJIT's FFI does not support callbacks, and glfw does provide an efficient polling interface to the mouse and keyboard. Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2011-04-15 15:40 |
From | Michael Gogins |
Subject | Re: [Csnd] Opengl in Csound5? |
The advantage of Lua is that you don't need a compiler, don't wait for it, et cetera. I'll show you the stuff I'm doing in Maynooth. Regards, Mike
On Fri, Apr 15, 2011 at 9:10 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
-- Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |
Date | 2011-04-15 17:51 |
From | Rory Walsh |
Subject | Re: [Csnd] Opengl in Csound5? |
Hopefully we'll all get to see! On another note (apologies for my cheekiness..), have you been following the thread outlining my current issues with MSVC and the latest windows version of Csound? Has something changed in how you build Windows that might API affect projects which us MSVC. I keep getting an 'Unable to Locate Component' error stating that libgcc_s_dw2-1.dll was not found? Any help would be greatly appreciated. I really want to try out your signal graph opcodes in my host. Rory. n 15 April 2011 15:40, Michael Gogins |
Date | 2011-04-15 17:59 |
From | Michael Gogins |
Subject | Re: [Csnd] Opengl in Csound5? |
You simply need to google for, download, and install that DLL. It is installed by the Windows installer, also, so it should be in the Csound/bin directory if you have used the installer. This DLL is part of the MinGW runtime for programs built with MinGW for dw2 exception unwinding. There are other DLLs that may be missing if you are missing this one. If you have used the Windows installer, make sure that your Csound/bin directory, which should contain all of those DLLs, is in the executable PATH of your program. Hope this helps, Mike
On Fri, Apr 15, 2011 at 12:51 PM, Rory Walsh <rorywalsh@ear.ie> wrote: Hopefully we'll all get to see! On another note (apologies for my -- Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |
Date | 2011-04-15 18:07 |
From | Rory Walsh |
Subject | Re: [Csnd] Opengl in Csound5? |
Thanks Mike. I did use the installer but that specific .dll is not included. I've since downloaded it and it's working fine now. Thanks again. Rory. On 15 April 2011 17:59, Michael Gogins |
Date | 2011-04-15 18:17 |
From | Rory Walsh |
Subject | Re: [Csnd] Opengl in Csound5? |
Sorry, I spoke too soon. Now I get an entry point not found error: The procedure entry point g_assertion_message could not be located in the dynamic link library libglib-2.0-0.dll Any ideas? On 15 April 2011 18:07, Rory Walsh |
Date | 2011-04-15 19:19 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Opengl in Csound5? |
Sounds like wrong lib version. On 15 Apr 2011, at 18:17, Rory Walsh wrote: > Sorry, I spoke too soon. Now I get an entry point not found error: > > The procedure entry point g_assertion_message could not be located in > the dynamic link library libglib-2.0-0.dll > > Any ideas? > > > On 15 April 2011 18:07, Rory Walsh |
Date | 2011-04-15 19:22 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Opengl in Csound5? |
Maybe this can help you: http://www.gtkforums.com/viewtopic.php?t=4539 On 15 Apr 2011, at 19:19, Victor Lazzarini wrote: > Sounds like wrong lib version. > On 15 Apr 2011, at 18:17, Rory Walsh wrote: > >> Sorry, I spoke too soon. Now I get an entry point not found error: >> >> The procedure entry point g_assertion_message could not be located in >> the dynamic link library libglib-2.0-0.dll >> >> Any ideas? >> >> >> On 15 April 2011 18:07, Rory Walsh |
Date | 2011-04-16 16:39 |
From | Alex Hofmann |
Subject | Re: [Csnd] Opengl in Csound5? |
Hi Giorgio, did you have a look at Openframeworks? www.openframeworks.cc It is a wrapper for openGL and some other useful graphics programming in C++. It is quite easy to use - they call it C++ for non-nerds ;-) Sometimes i use Csound API as soundengine. Therefor I wrapped it into the same class-structure as all OF classes are. https://github.com/ketchupok/ofxCsound I did not officially release this, because I'm having some trouble with including all libraries into the target app for independent sharing. But if you write a software and have Csound installed on the machine you want to use it, it works. I also included examples with openGL & csoundAPI for mac. Best, Alex Am 15.04.11 20:22, schrieb Victor Lazzarini: > Maybe this can help you: http://www.gtkforums.com/viewtopic.php?t=4539 > On 15 Apr 2011, at 19:19, Victor Lazzarini wrote: > >> Sounds like wrong lib version. >> On 15 Apr 2011, at 18:17, Rory Walsh wrote: >> >>> Sorry, I spoke too soon. Now I get an entry point not found error: >>> >>> The procedure entry point g_assertion_message could not be located in >>> the dynamic link library libglib-2.0-0.dll >>> >>> Any ideas? >>> >>> >>> On 15 April 2011 18:07, Rory Walsh |
Date | 2011-04-16 22:11 |
From | Super Pija |
Subject | [Csnd] jython or python/java? |
is it better to study jython than study python and/or java? Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-04-16 22:22 |
From | Michael Gogins |
Subject | Re: [Csnd] jython or python/java? |
Jython is Python that runs on the Java virtual machine. As such, it can be used to script Java applications or to access Java class libraries. Jython is slower than normal Python, which is already slow, so if you don't need the Java integration then you are better off with plain Python.
So, it doesn't make sense to use Jython unless you already know, or are willing to learn, a fair amount of Java, and are either going to embed scripting in Java application, or need to access some particular Java class library from Python code.
If you use blue, as far as I can recall Jython is used for algorithmic composition scripting, so if you use blue then Jython is a good thing to know. Hope this helps,
Mike
On Sat, Apr 16, 2011 at 5:11 PM, Super Pija <superpija2@yahoo.com> wrote: is it better to study jython than study python and/or java? -- Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |