# \[Csnd\] Csound API question

**URL:** <https://forum.csound.com/t/csnd-csound-api-question/2563>\
**Category:** The Csound Mailinglist\
**Created:** [October 8, 2026, 1:00pm UTC](https://forum.csound.com/t/csnd-csound-api-question/2563 "2026-10-08T13:00:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeanette\_C2](https://forum.csound.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@Jeanette\_C2](https://forum.csound.com/u/Jeanette_C2)\
**Post date:** [October 8, 2026, 1:00pm UTC](https://forum.csound.com/t/csnd-csound-api-question/2563/1 "2026-10-08T13:00:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jeanette\_C2](https://forum.csound.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@Jeanette\_C2](https://forum.csound.com/u/Jeanette_C2)\
**Post date:** [October 8, 2026, 1:34pm UTC](https://forum.csound.com/t/csnd-csound-api-question/2563/2 "2026-10-08T13:34:08Z")

</div>

Thank you Michael! This is helpful. So I might look at the Csound7 API.

Just to be sure though: with Csound6 and that type of setup, I best send one control value per host processing callback.

Best wishes,

Jeanette

Michael Gogins, Oct 8 2026:

---

<div class="post-metadata">

**Author:** ![Victor\_Lazzarini1](https://forum.csound.com/letter_avatar_proxy/v4/letter/v/3d9bf3/32.png) [@Victor\_Lazzarini1](https://forum.csound.com/u/Victor_Lazzarini1)\
**Post date:** [October 8, 2026, 3:43pm UTC](https://forum.csound.com/t/csnd-csound-api-question/2563/3 "2026-10-08T15:43:19Z")

</div>

First step is to study the C++ examples in the repo

[https://github.com/csound/csoundAPI\_examples](https://github.com/csound/csoundAPI_examples)

they will give you a good idea of what you need to do for various use cases.

Prof. Victor Lazzarini  
Maynooth University  
Ireland

---

<div class="post-metadata">

**Author:** ![Jeanette\_C2](https://forum.csound.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@Jeanette\_C2](https://forum.csound.com/u/Jeanette_C2)\
**Post date:** [October 9, 2026, 9:26pm UTC](https://forum.csound.com/t/csnd-csound-api-question/2563/4 "2026-10-09T21:26:13Z")

</div>

Hello Iain,  
thank you for that suggestion. I downloaded the sources and am looking at them. I think this might prove helpful in my undertaking. It will become clearer in time.

Best wishes,

Jeanette

Iain Duncan, Oct 9 2026:
