# Quantization and sampling rate

**URL:** <https://forum.cabbageaudio.com/t/quantization-and-sampling-rate/2951>\
**Category:** Csound Noobs\
**Created:** [13 November 2021 21:06 UTC](https://forum.cabbageaudio.com/t/quantization-and-sampling-rate/2951 "2021-11-13T21:06:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![idranoels](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/i/3be4f8/32.png) [@idranoels](https://forum.cabbageaudio.com/u/idranoels)\
**Post date:** [13 November 2021 21:06 UTC](https://forum.cabbageaudio.com/t/quantization-and-sampling-rate/2951/1 "2021-11-13T21:06:39Z")

</div>

Hello  
I was wondering what kind of quantization is used by a-vars and if I can set it in any way (24-bit fixed, 32-bit floating point, ecc.).

Moreover, is it possible to use a sample rate that reflects the one in the input channel? E.g. I could write a plugin that works at 48kHz but the input signal is 44.1kHz, I imagine in this case resampling is applied. Could I avoid it?  
Thank you

Sergio

---

<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:** [14 November 2021 10:13 UTC](https://forum.cabbageaudio.com/t/quantization-and-sampling-rate/2951/2 "2021-11-14T10:13:43Z")

</div>

> [@idranoels](#):
>
> I was wondering what kind of quantization is used by a-vars and if I can set it in any way (24-bit fixed, 32-bit floating point, ecc.).

Csound uses 64bit doubles for each sample.

> [@idranoels](#):
>
> Moreover, is it possible to use a sample rate that reflects the one in the input channel?

If you leave out the sample rate Cabbage will automatically match it to the hosts rate. So if the host is using 48Kz, so will your orchestra and everything within it will be automatically resampled. If you are using Csound on its own you will need to match things up to the sound card.

---

<div class="post-metadata">

**Author:** ![idranoels](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/i/3be4f8/32.png) [@idranoels](https://forum.cabbageaudio.com/u/idranoels)\
**Post date:** [15 November 2021 12:00 UTC](https://forum.cabbageaudio.com/t/quantization-and-sampling-rate/2951/3 "2021-11-15T12:00:55Z")

</div>

Thank you
