# Ksmps always forced to 10

**URL:** <https://forum.cabbageaudio.com/t/ksmps-always-forced-to-10/5000>\
**Category:** Cabbage 3\
**Created:** [7 March 2026 21:02 UTC](https://forum.cabbageaudio.com/t/ksmps-always-forced-to-10/5000 "2026-03-07T21:02:16Z")\
**Posts on this page:** 16\
**Page:** 2

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [16 March 2026 21:54 UTC](https://forum.cabbageaudio.com/t/ksmps-always-forced-to-10/5000/22 "2026-03-16T21:54:32Z")

</div>

What channel config are you using?

---

<div class="post-metadata">

**Author:** ![collie](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/collie/32/4564_2.png) [@collie](https://forum.cabbageaudio.com/u/collie)\
**Post date:** [16 March 2026 22:36 UTC](https://forum.cabbageaudio.com/t/ksmps-always-forced-to-10/5000/24 "2026-03-16T22:36:50Z")

</div>

With 48000 selected as sampling rate through cabbage commands (ctrl + shift + p) along with declaring “sr = 48000” in the file both give the following:

**R: 48000**  
Buffer Size: 64  
Input device: Apple Inc.: Cabbage3-AudioDriver  
Number of input channels: 2  
Output device: Apple Inc.: Cabbage3-AudioDriver  
Number of output channels: 2 [CabbageAudioApp.cpp (730) initialiseAudio Thread ID: 0x202280f40]  
Reading CSD file: …csd

–Csound version 7.0 (double samples) Mar 4 2026  
[commit: 32fe6c37f4d382e1b25d4a5fccf0e0fccc3ffa85]  
using libsndfile-1.2.2  
**sr = 44100.0,**  
kr = 689.062,

---

<div class="post-metadata">

**Author:** ![collie](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/collie/32/4564_2.png) [@collie](https://forum.cabbageaudio.com/u/collie)\
**Post date:** [16 March 2026 23:06 UTC](https://forum.cabbageaudio.com/t/ksmps-always-forced-to-10/5000/25 "2026-03-16T23:06:13Z")

</div>

Fixed the audio driver issue - but sr issue still there.  
When I use:  
“channelConfig”: “1-2”,  
…  
nchnls = 2  
nchnls\_i = 1

I dont get robotic audio when using the default Apple drivers. But sr still 44100

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [17 March 2026 07:50 UTC](https://forum.cabbageaudio.com/t/ksmps-always-forced-to-10/5000/26 "2026-03-17T07:50:08Z")

</div>

> [@collie](#):
>
> “channelConfig”: “1-2”,

Can you update this to use the new channel config object shown in the documentation I linked? I’ll take a look and see if I can figure out the SR issue. It’s strange. Can you check the output for errors?

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [17 March 2026 10:08 UTC](https://forum.cabbageaudio.com/t/ksmps-always-forced-to-10/5000/27 "2026-03-17T10:08:49Z")

</div>

Ah, I see the issue now. The fix I pushed wasn’t thorough enough. Just rebuilding and testing now before I trigger a new build. Btw, this fixes the SR/ksmps issue. The robotic sound you hear is because of a mistmatch between channels. I can easily reproduce here if I select a stereo input when I actually only have mono. But if I match my inputs correctly the robotic sound disappears. As recommended in the docs linked above, it’s best remove `nchnls/nchnls_i` from your Csound header and just let Cabbage manage them. 👍

---

<div class="post-metadata">

**Author:** ![collie](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/collie/32/4564_2.png) [@collie](https://forum.cabbageaudio.com/u/collie)\
**Post date:** [17 March 2026 17:02 UTC](https://forum.cabbageaudio.com/t/ksmps-always-forced-to-10/5000/28 "2026-03-17T17:02:49Z")

</div>

no robotic audio but it seems the sr = 44100 issue still persists.  
When I load the checkbox widget example but change the channel config to match the new syntax + remove nchnls + change the sampling rate to 48000 with cabbage command + set sr = 48000 in the file (attached) I still get sr = 44100 in the console  
[checkbox2.csd](https://forum.cabbageaudio.com/uploads/short-url/76Ba5Wij4CDL3UeZ1FsjeREJPZn.csd) (2.3 KB)

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [17 March 2026 17:13 UTC](https://forum.cabbageaudio.com/t/ksmps-always-forced-to-10/5000/29 "2026-03-17T17:13:09Z")

</div>

Can you confirm the version your using? You’ll be able to check it in the vscode extensions panel..

---

<div class="post-metadata">

**Author:** ![collie](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/collie/32/4564_2.png) [@collie](https://forum.cabbageaudio.com/u/collie)\
**Post date:** [17 March 2026 17:13 UTC](https://forum.cabbageaudio.com/t/ksmps-always-forced-to-10/5000/30 "2026-03-17T17:13:46Z")

</div>

I’m on 1.0.183

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [17 March 2026 17:23 UTC](https://forum.cabbageaudio.com/t/ksmps-always-forced-to-10/5000/31 "2026-03-17T17:23:03Z")

</div>

Can you post the cabbage output so I can see if there is anything in that that might give us a clue..

---

<div class="post-metadata">

**Author:** ![collie](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/collie/32/4564_2.png) [@collie](https://forum.cabbageaudio.com/u/collie)\
**Post date:** [17 March 2026 17:26 UTC](https://forum.cabbageaudio.com/t/ksmps-always-forced-to-10/5000/32 "2026-03-17T17:26:15Z")

</div>

[checkboxDEBUG.zip](https://forum.cabbageaudio.com/uploads/short-url/beY4UfuSyMzTWEBo4CdIuLVUzYC.zip) (18.9 KB)

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [17 March 2026 17:30 UTC](https://forum.cabbageaudio.com/t/ksmps-always-forced-to-10/5000/33 "2026-03-17T17:30:46Z")

</div>

Can you copy and paste it here, sorry, I don’t have word…

---

<div class="post-metadata">

**Author:** ![collie](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/collie/32/4564_2.png) [@collie](https://forum.cabbageaudio.com/u/collie)\
**Post date:** [17 March 2026 17:32 UTC](https://forum.cabbageaudio.com/t/ksmps-always-forced-to-10/5000/34 "2026-03-17T17:32:20Z")

</div>

DEBUG: Created numeric channel for non-automatable widget ‘formChannel’ with default value 0 [CabbageProcessor.cpp (550) addParametersForWidget Thread ID: 0x202280f40]

DEBUG: WidgetDescriptors::get - Searching for widget type: checkBox in 1 paths [CabbageUtils.h (473) get Thread ID: 0x202280f40]

DEBUG: WidgetDescriptors::get - Checking path: /Users/colmdelaney/.vscode/extensions/cabbageaudio.vscabbage-1.0.183-alpha/src/cabbage/widgets/checkBox.js [CabbageUtils.h (477) get Thread ID: 0x202280f40]

DEBUG: WidgetDescriptors::get - File exists! Loading… [CabbageUtils.h (480) get Thread ID: 0x202280f40]

DEBUG: Found widget descriptor for ‘checkBox’ in: /Users/colmdelaney/.vscode/extensions/cabbageaudio.vscabbage-1.0.183-alpha/src/cabbage/widgets [CabbageUtils.h (484) get Thread ID: 0x202280f40]

addParametersForWidget: type=checkBox, id=trigger, automatable=1, isNumericChannel=1

Creating parameter ‘trigger’: min=0, max=1, default=0, normalizedDefault=0, initial=0, inc=1, skew=1

DEBUG: Added parameter for channel ‘trigger’ with parameterIndex 0 and default value of : 0 [CabbageProcessor.cpp (472) addParametersForWidget Thread ID: 0x202280f40]

DEBUG: WidgetDescriptors::get - Searching for widget type: button in 1 paths [CabbageUtils.h (473) get Thread ID: 0x202280f40]

DEBUG: WidgetDescriptors::get - Checking path: /Users/colmdelaney/.vscode/extensions/cabbageaudio.vscabbage-1.0.183-alpha/src/cabbage/widgets/button.js [CabbageUtils.h (477) get Thread ID: 0x202280f40]

DEBUG: WidgetDescriptors::get - File exists! Loading… [CabbageUtils.h (480) get Thread ID: 0x202280f40]

DEBUG: Found widget descriptor for ‘button’ in: /Users/colmdelaney/.vscode/extensions/cabbageaudio.vscabbage-1.0.183-alpha/src/cabbage/widgets [CabbageUtils.h (484) get Thread ID: 0x202280f40]

addParametersForWidget: type=button, id=mute, automatable=1, isNumericChannel=1

Creating parameter ‘mute’: min=0, max=1, default=0, normalizedDefault=0, initial=0, inc=1, skew=1

DEBUG: Added parameter for channel ‘mute’ with parameterIndex 1 and default value of : 0 [CabbageProcessor.cpp (472) addParametersForWidget Thread ID: 0x202280f40]

DEBUG: WidgetDescriptors::get - Searching for widget type: button in 1 paths [CabbageUtils.h (473) get Thread ID: 0x202280f40]

DEBUG: WidgetDescriptors::get - Checking path: /Users/colmdelaney/.vscode/extensions/cabbageaudio.vscabbage-1.0.183-alpha/src/cabbage/widgets/button.js [CabbageUtils.h (477) get Thread ID: 0x202280f40]

DEBUG: WidgetDescriptors::get - File exists! Loading… [CabbageUtils.h (480) get Thread ID: 0x202280f40]

DEBUG: Found widget descriptor for ‘button’ in: /Users/colmdelaney/.vscode/extensions/cabbageaudio.vscabbage-1.0.183-alpha/src/cabbage/widgets [CabbageUtils.h (484) get Thread ID: 0x202280f40]

addParametersForWidget: type=button, id=toggleFreq, automatable=1, isNumericChannel=1

Creating parameter ‘toggleFreq’: min=0, max=1, default=0, normalizedDefault=0, initial=0, inc=1, skew=1

DEBUG: Added parameter for channel ‘toggleFreq’ with parameterIndex 2 and default value of : 0 [CabbageProcessor.cpp (472) addParametersForWidget Thread ID: 0x202280f40]

DEBUG: === Finished addParameters() === [CabbageProcessor.cpp (346) addParameters Thread ID: 0x202280f40]

DEBUG: getCsdFileAndPath: Using cached CSD path for CabbageApp: /Users/colmdelaney/Downloads/checkbox2.csd [CabbageUtils.cpp (779) getCsdFileAndPath Thread ID: 0x202280f40]

DEBUG: getCsdFileAndPath: Using cached CSD path for CabbageApp: /Users/colmdelaney/Downloads/checkbox2.csd [CabbageUtils.cpp (779) getCsdFileAndPath Thread ID: 0x202280f40]

DEBUG: Num widgets : 4 [CabbageAudioApp.cpp (615) createCabbageProcessor Thread ID: 0x202280f40]

DEBUG: Devices successfully added to settings file. [CabbageAudioApp.cpp (1226) addDevicesToSettings Thread ID: 0x202280f40]

DEBUG: Attempting to start audio with the following settings:

SR: 48000

Buffer Size: 64

Input device: Apple Inc.: External Microphone

Number of input channels: 1

Output device: Apple Inc.: External Headphones

Number of output channels: 2 [CabbageAudioApp.cpp (730) initialiseAudio Thread ID: 0x202280f40]

Reading CSD file: /Users/colmdelaney/Downloads/checkbox2.csd

–Csound version 7.0 (double samples) Mar 4 2026

[commit: 32fe6c37f4d382e1b25d4a5fccf0e0fccc3ffa85]

using libsndfile-1.2.2

sr = 44100.0,

kr = 1378.125,

ksmps = 32

0dBFS level = 1.0,

A4 tuning = 440.0

audio buffered in 128 sample-frame blocks

SECTION 1:

DEBUG: Cabbage processor created successfully [CabbageAudioApp.cpp (907) onIdle Thread ID: 0x202280f40]

DEBUG: setCabbageIsReady() called [CabbageProcessor.cpp (1097) setCabbageIsReady Thread ID: 0x202280f40]

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [17 March 2026 17:43 UTC](https://forum.cabbageaudio.com/t/ksmps-always-forced-to-10/5000/35 "2026-03-17T17:43:53Z")

</div>

Thanks @collie, I don’t see anything wrong there. Can you try setting the number of inputs to 2 in the channel config and see what happens?

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [17 March 2026 18:11 UTC](https://forum.cabbageaudio.com/t/ksmps-always-forced-to-10/5000/36 "2026-03-17T18:11:19Z")

</div>

I think I have it now. I fixed this in the other branch, but forgot to update this one. Leave it with me.

---

<div class="post-metadata">

**Author:** ![collie](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/collie/32/4564_2.png) [@collie](https://forum.cabbageaudio.com/u/collie)\
**Post date:** [17 March 2026 18:11 UTC](https://forum.cabbageaudio.com/t/ksmps-always-forced-to-10/5000/37 "2026-03-17T18:11:20Z")

</div>

actually that last csd file was 2 inputs 2 outputs in the channel config:

{  
“pluginId”: “CHKB”,  
“channelConfig”: {  
“inputs”: [“2”],  
“outputs”: [“2”]  
},

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [18 March 2026 10:28 UTC](https://forum.cabbageaudio.com/t/ksmps-always-forced-to-10/5000/38 "2026-03-18T10:28:04Z")

</div>

This fix is for the SR rate issue. I tested before pushing and it seems to have sorted it.

[Previous page](https://forum.cabbageaudio.com/t/ksmps-always-forced-to-10/5000.md?page=1)
