[Csnd] Csound API questions
Date | 2013-12-13 23:06 |
From | zappfinger |
Subject | [Csnd] Csound API questions |
Say I have a Csound server running, that can be extended with instruments, events can be sent to it, all via the Python API: Is it possible to retrieve the available instruments? Is it possible to retrieve the available channels per instrument? Is it possible to capture events that instruments receive? Richard -- View this message in context: http://csound.1045644.n5.nabble.com/Csound-API-questions-tp5730750.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2013-12-16 19:03 |
From | Steven Yi |
Subject | Re: [Csnd] Csound API questions |
Hi Richard, > Is it possible to retrieve the available instruments? No, these are not listable with the API or from Opcodes at this time. You could possibly do this from a C application that has compiled against libcsound with BUILDING_LIBCSOUND on, but it would not be officially supported. > Is it possible to retrieve the available channels per instrument? No, channels are a global resource. You would have to manage the channels via the host to have a record of what channels each instrument has. > Is it possible to capture events that instruments receive? Not through the API, though you could perhaps do something via channels to communicate back to a host that polls those channels to see if an event has been received. It would be worth making requests for API changes if you really need these features. The API is certainly not set in stone but changes also need to be driven by real-world use cases, IMO. Thanks! steven |
Date | 2013-12-16 19:06 |
From | Michael Gogins |
Subject | Re: [Csnd] Csound API questions |
If you use the CppSound class to run Csound, you can store your orc and sco in that and retrieve instuments via its api. On Dec 16, 2013 8:03 PM, "Steven Yi" <stevenyi@gmail.com> wrote:
Hi Richard, |
Date | 2013-12-16 19:49 |
From | Richard van Bemmelen |
Subject | Re: [Csnd] Csound API questions |
Thanks Steven, I figured it would be easier to do some of this in the server or host... Richard
2013/12/16 Steven Yi <stevenyi@gmail.com> Hi Richard, |