Hi all, I am trying to figure out how I can have a score event (or API message) to the csound instance in my csound6~ Max object trigger the creation and update of a control channel, where that control channel itself is chosen from the event. As in, a message to csound~ could create a (for example) envelope process for some amount of time, but outputting to a specific named control channel. Ideally, the named channel springs into existence on this message, but if I had to send a separate msg to create it, that would be ok too. I’m trying to avoid the user having to precreate the named channel in the orc header, but I’m not clear whether that is possible. If anyone has suggestions, that would be great. Also, if this is going to improve somehow or another in csound7, that would be good to know too in case it means it’s not worth trying to get working in csound6.
Some things that confused me:
- the manual entries for chnset mention declaring channels with chn_k, but the csd examples in chnset do not include this
- the API has functions for setting, reading, and listing named channels, but doesn’t seem to have a function for declaring one, is there a different way?
- I’m also wondering if the channel name used in chnset can be a string variable, and if, can it come from a pfield?
thanks!
iain
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here