[Csnd] Csound for Godot?
Date | 2019-12-21 21:08 |
From | Gerard Rodríguez |
Subject | [Csnd] Csound for Godot? |
Hi folks, I've seen that there's a Csound wrapper for Unity.https://godotengine.org/ http://write.flossmanuals.net/csound/a-the-csound-api/ It seems it shouldn't be too hard to write a wrapper. However godot also has AudioStreams which seems it could be a cleaner solution: https://docs.godotengine.org/en/3.1/development/cpp/custom_audiostreams.html I'm not sure if the csound API is capable of outputting audio frames instead of outputting the audio directly. Maybe someone who is experienced at writing Csound wrappers could take a look at that (wink, nudge Rory) Thank you. |
Date | 2019-12-21 21:33 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Csound for Godot? |
well, you'll have to wait for it ;) Prof. Victor Lazzarini
Maynooth University
Ireland
|
Date | 2019-12-21 22:17 |
From | Rory Walsh |
Subject | Re: [Csnd] Csound for Godot? |
I did look at Godot some time back. It looks promising for sure. I've kind of hit saturation point on game engines at this stage. Between all the JS based frameworks, Unity and UE4 I just haven't had time to look into it some more. I just had another quick look, and it seems that Godot allows C# plugins. If these plugins are allowed to call underlying libraries, which I'm sure they are, then this interface wouldn't be any different to how it is done with CsoundUnity. I use a set of a C# scripts to load and manage Csound. The game objects script can then access Csound at any point. We just need to see if Godot lets us access and feed the audio subsystem. In Unity we have the OnFileRead() method which let's us do this. Perhaps see if there are any functions that expose the audio system. That will be the place to start. I'm happy to help get this going. But I'm a total noob with Godot. On Sat, 21 Dec 2019 at 21:33, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
|
Date | 2019-12-21 22:24 |
From | Rory Walsh |
Subject | Re: [Csnd] Csound for Godot? |
If we can inherit from this class I'm sure we can override the functions list here: Remember when I said I don't know anything about Godot? You wouldn't be so kind as to create a simple project with a single object, and a script attached to it that object. I can use that to load Csound. If you get me that I'll look into getting Csound working. Btw, there is a Cabbage for Games subforum on the Cabbage forum that we often discuss things like this on. I'm happy to discuss here, but you might be much quicker there, and it's also nice to share with people who are not on this particular list. On Sat, 21 Dec 2019 at 22:17, Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2019-12-21 22:32 |
From | Rory Walsh |
Subject | Re: [Csnd] Csound for Godot? |
Actually, I'm not sure if those parts of the API are open. A quick search didn't yield much. We could just use Csound output and disable the Godot audio system completely. This would give you access to any native drivers on that platform, but would mean you have to take care of the 3d audio yourself. It's nice in Unity to be able to send Csound through the Unity 3d plugins, I'm not sure we can do that here yet. On Sat, 21 Dec 2019 at 22:24, Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2019-12-22 00:40 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Csound for Godot? |
but you'll need to wait for Prof. Victor Lazzarini
Maynooth University
Ireland
|
Date | 2019-12-22 00:51 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Csound for Godot? |
On 21 Dec 2019, at 22:32, Rory Walsh <rorywalsh@ear.ie> wrote:
I'm not sure we can do that here yet. We must wait.
|
Date | 2019-12-22 01:31 |
From | Rory Walsh |
Subject | Re: [Csnd] Csound for Godot? |
Had you been looking at this Victor? On Sun, 22 Dec 2019 at 00:51, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
|
Date | 2019-12-22 08:28 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Csound for Godot? |
No, I have been told to wait at this tree. Prof. Victor Lazzarini
Maynooth University
Ireland
|
Date | 2019-12-22 08:37 |
From | Jeff Harrington |
Subject | Re: [Csnd] Csound for Godot? |
For me it's over and done with, no
matter what happens.
Jeff
On 12/22/2019 9:28 AM, Victor Lazzarini
wrote:
No, I have been told to wait at this tree.
|
Date | 2019-12-22 10:42 |
From | Gerard Rodríguez |
Subject | Re: [Csnd] Csound for Godot? |
I'm confused. Could you stop being cryptic and tell us so that we don't potentially waste our time doing this please :D?
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Missatge de Jeff Harrington <jeff@parnasse.com> del dia dg., 22 de des. 2019 a les 9:37:
|
Date | 2019-12-22 11:03 |
From | Jeff Harrington |
Subject | Re: [Csnd] Csound for Godot? |
Sorry, all in good fun: https://www.youtube.com/watch?v=izX5dIzI2RE
Jeff
On 12/22/2019 11:42 AM, Gerard
Rodríguez wrote:
|
Date | 2019-12-22 11:21 |
From | Gerard Rodríguez |
Subject | Re: [Csnd] Csound for Godot? |
Oh I see, I should have gotten that :P Rory:Missatge de Jeff Harrington <jeff@parnasse.com> del dia dg., 22 de des. 2019 a les 12:03:
|
Date | 2019-12-22 11:42 |
From | Rory Walsh |
Subject | Re: [Csnd] Csound for Godot? |
Well done guys. 🤣🤣 I finally get it! On Sun 22 Dec 2019, 11:21 Gerard Rodríguez, <binbiniqegabenik@gmail.com> wrote:
|
Date | 2019-12-22 11:46 |
From | Rory Walsh |
Subject | Re: [Csnd] Csound for Godot? |
Gerard, this looks like it should work. Just need to know how to load third party libraries. Hopefully we can do with without writing a C++ module.. On Sun 22 Dec 2019, 11:42 Rory Walsh, <rorywalsh@ear.ie> wrote:
|
Date | 2019-12-22 11:58 |
From | Gerard Rodríguez |
Subject | Re: [Csnd] Csound for Godot? |
I think it is the standard way, but I'm just a beginner with Godot too. I'm going to investigate some more in a few hours. Missatge de Rory Walsh <rorywalsh@ear.ie> del dia dg., 22 de des. 2019 a les 12:46:
|
Date | 2019-12-22 13:28 |
From | Dave Phillips |
Subject | Re: [Csnd] Csound for Godot? |
Favorite license plate seen in Los Angeles: W8N4GDO So, not a lot of Samuel Beckett readers here ? ;) On 12/21/2019 04:33 PM, Victor Lazzarini wrote: > well, you'll have to wait for it ;) Best, dp Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2019-12-22 13:37 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Csound for Godot? |
Everybody is a beginner with Godot.
Sorry guys, this is a neverending source of
puns
Prof. Victor Lazzarini
Maynooth University
Ireland
|
Date | 2019-12-23 13:16 |
From | Gerard Rodríguez |
Subject | Re: [Csnd] Csound for Godot? |
OK as far as I can see there's two ways of doing it: - Writting a module for Godot. So, in my opinion the way to go is to write a GDNative script (in C or C++) which would use and expose Csound's API. Then extending https://docs.godotengine.org/en/3.1/classes/class_audiostreamplayer.html#class-audiostreamplayer-property-stream and using its stream.push method to push Csound's samples using getSpoutSample. I'm not so sure on that last one, maybe extending a lower class would be better? Missatge de Victor Lazzarini <Victor.Lazzarini@mu.ie> del dia dg., 22 de des. 2019 a les 14:38:
|
Date | 2019-12-23 16:57 |
From | Rory Walsh |
Subject | Re: [Csnd] Csound for Godot? |
If you can manage to push samples into an audio then it should be ok. If you do, let me know and I will then add Csound to the equation, if you can't figure it out yourself. Btw, Godot has developed quite a lot since I last looked at it! On Mon 23 Dec 2019, 13:16 Gerard Rodríguez, <binbiniqegabenik@gmail.com> wrote:
|