[Csnd] local sample rate

Hi, i would appreciate it if you help me:
i need a local sampling rate inside an instrument which be different from global sr value.
which allows me to have a higher sampling rate than my soundcard's sr (to avoid aliasing)
is there any opcodes or UDOs similar to setksmps for sr?
i searched around and found these opcodes:
upsamp and downsamp
but im not sure these are the solution for my needs
thank you in advance

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        GitHub · Where software is built
Discussions of bugs and features can be posted here

Hello Parham,
AFAIK only Csound 7, which is in Beta, allows that. And you are right, upsamp doesn't do that.

Best wishes,

Jeanette

thanks jeanette! what is it in CS7? any new opcode?

Hi Joahcim,
I'm sorry, I don't know. I just heard that CS7 has a facitility to set a local samplerate. A friend of mine read it or heard it on one of the Csound meetings. It got mentioned, because it sounds like a brilliant feature for a few techniques.

Best wishes,

Jeanette

thanks --- i have an idea whom to ask ...

oversample and undersample are the new opcodes for SR conversion to local sr in UDOs.

They don’t seem to have been added yet to the new manual.

fantastic extension --- thanks!