Hey hey,
I'd like to run Csound inside a c++ application using its API. Csound should communicate only through the host, not directly connecting to any outside audio/MIDI I/O. Sample buffer size will be dictated by a host set frame size.
In audio this is possible, on e can pass in sample buffers and read them. But how about control channel access? I see that the C function:
csoundSetControlChannel
takes a single value
and
csoundGetControlChannel
returns a single value.
Is there a way to read/write control data at the speed of the control rate in such a setup? We can assume that I set the control rate to work well with the frame buffer size of the audio.
Or is there another approach, when automating Csound k-rate values when running in such a way?
As an example, you can take JACK process callback function, which will process a fixed given number of audio samples per call and audio channel.
Any help is very much appreciated.
Best wishes,
Jeanette