How to get the same sound with another sample rate

Hi, completely new to the Csound. In supercollider(which I’m also quite a noob at), if I change the server sample rate from 44100 let’s say to 96000 and open the same example ‘patch’ it will still sound the same. I’ve noticed that in Csound it doesn’t work the same way and the sound rendered at the higher rate as well…is that an inherent ‘design flaw’ of Csound or there’s some obvious setting or something I’m missing? Oh, and while we’re at it, are some more modern examples compositions in csound, I’ve checked the examples and they all seem to be from like early 80’s or even late 70’s…is there some sort of code repository where people share their musings? Thanks you

1 Like

Hey! Welcome to Csound!

The altered sound depends on the opcode you are using. Some are not reacting to changed sr.
Try out diskin2.
What opcode are you using and which example patch are you using?

Hi,

As per my experience, in Csound, the sample rate does affect the output, unlike in Supercollider where the audio may sound consistent due to internal handling of rate changes. Csound relies on the sample rate to determine the pitch and timing of audio, so changing the sample rate will affect the sound if you haven’t adjusted the parameters accordingly.

Thanks :slightly_smiling_face: