Csound Csound-dev Csound-tekno Search About

[Csnd] local sample rate

Date2025-03-03 19:11
FromParham Izadyar
Subject[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
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2025-03-03 19:36
From"Jeanette C."
SubjectRe: [Csnd] local sample rate
Hello Parham,
AFAIK only Csound 7, which is in Beta, allows that. And you are right, upsamp 
doesn't do that.

Best wishes,

Jeanette

-- 
  * Website: http://juliencoder.de - for summer is a state of sound
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * Audiobombs: https://www.audiobombs.com/users/jeanette_c
  * GitHub: https://github.com/jeanette-c

If only I could trade the fancy cars
For a chance today,
it's incomparable <3
(Britney Spears)

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2025-03-03 19:58
Fromjoachim heintz
SubjectRe: [Csnd] local sample rate
thanks jeanette!  what is it in CS7?  any new opcode?

On 03/03/2025 20:36, Jeanette C. wrote:
> Hello Parham,
> AFAIK only Csound 7, which is in Beta, allows that. And you are right, 
> upsamp doesn't do that.
> 
> Best wishes,
> 
> Jeanette
> 

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2025-03-03 20:20
From"Jeanette C."
SubjectRe: [Csnd] local sample rate
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

-- 
  * Website: http://juliencoder.de - for summer is a state of sound
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * Audiobombs: https://www.audiobombs.com/users/jeanette_c
  * GitHub: https://github.com/jeanette-c

If only I could trade the fancy cars
For a chance today,
it's incomparable <3
(Britney Spears)

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2025-03-03 20:29
Fromjoachim heintz
SubjectRe: [Csnd] local sample rate
thanks --- i have an idea whom to ask ...

On 03/03/2025 21:20, Jeanette C. wrote:
> 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
> 

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2025-03-03 22:42
FromVictor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] [EXTERNAL] [Csnd] local sample rate
oversample and undersample are the new opcodes for SR conversion to local sr in UDOs.

https://github.com/csound/manual/blob/csound7/opcodes/oversample.xml

https://github.com/csound/manual/blob/csound7/opcodes/undersample.xml

They don’t seem to have been added yet to the new manual.
========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 3 Mar 2025, at 20:20, Jeanette C.  wrote:
>
> *Warning*
>
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>
> 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
>
> --
> * Website: http://juliencoder.de/ - for summer is a state of sound
> * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
> * Audiobombs: https://www.audiobombs.com/users/jeanette_c
> * GitHub: https://github.com/jeanette-c
>
> If only I could trade the fancy cars
> For a chance today,
> it's incomparable <3
> (Britney Spears)
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2025-03-04 20:48
Fromjoachim heintz
SubjectRe: [Csnd] [EXTERNAL] [Csnd] local sample rate
fantastic extension --- thanks!


On 03/03/2025 23:42, Victor Lazzarini wrote:
> oversample and undersample are the new opcodes for SR conversion to local sr in UDOs.
> 
> https://github.com/csound/manual/blob/csound7/opcodes/oversample.xml
> 
> https://github.com/csound/manual/blob/csound7/opcodes/undersample.xml
> 
> They don’t seem to have been added yet to the new manual.
> ========================
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
> 
>> On 3 Mar 2025, at 20:20, Jeanette C.  wrote:
>>
>> *Warning*
>>
>> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>>
>> 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
>>
>> --
>> * Website: http://juliencoder.de/ - for summer is a state of sound
>> * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
>> * Audiobombs: https://www.audiobombs.com/users/jeanette_c
>> * GitHub: https://github.com/jeanette-c
>>
>> If only I could trade the fancy cars
>> For a chance today,
>> it's incomparable <3
>> (Britney Spears)
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here