Csound Csound-dev Csound-tekno Search About

[Csnd] Interesting results rendering wgpluck2 at sr 96000 vs 44100

Date2022-11-01 04:13
FromScott Daughtrey
Subject[Csnd] Interesting results rendering wgpluck2 at sr 96000 vs 44100
First off, apologies if this is well known (I'm a newbie... ) but I stumbled on to this and thought others might find it interesting or useful. 

For irrelevant reasons I tried using the wgpluck2 opcode at a sr of 96000. With many of my other csd files that use traditional synthesis as opposed to physical modelling opcodes I found a higher sampling rate to have little to no effect, but with wgpluck, and possibly with the other pluck opcodes, haven't tested them yet, the difference was significant. Perhaps a predictable result from the Karpus-Strong algorithm (my math abilities are pretty limited)? 

Where at 44100, & 48000 there is a significant rolloff after 1kHz, at 96000 it's far less dramatic. The timbre contains many high freq overtones. When rendered at 96000 and downsampled in an editor afterwards the result is still quite noticeable. 

While I wouldn't define the result as better or worse, it's obviously subjective and contextual, it does seem to offer a different dimension for expression when using the opcode(s).

I haven't personally noticed any undesirable artifacts as a result of rendering at 96000 but I'd be curious to know if others find/hear issues. 

Some (crappy looking) screenshots from a spectrum analyzer: 

44100 -
https://drive.google.com/file/d/1nVfxIga7l10AOh1g75qEAfSf8etkGaxR/view?usp=drivesdk

96000 -
https://drive.google.com/file/d/1nePV7BLnVcNyZPxKgG43xrzZTj-5s7mu/view?usp=drivesdk

There's an audio example here:
https://soundcloud.com/st-csound/table-arps

The first half rendered at 44100, the second at 96000 and then downsampled to 44100.

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

Date2022-11-04 11:12
FromJosh Moore
SubjectRe: [Csnd] Interesting results rendering wgpluck2 at sr 96000 vs 44100
It may have something to do with the way noise would behave if there was no lpf between the noise impulse and the comb filter/delay line, but this is just a wild guess.

Sent from my iPad

> On Oct 31, 2022, at 9:12 PM, Scott Daughtrey  wrote:
> 
> First off, apologies if this is well known (I'm a newbie... ) but I stumbled on to this and thought others might find it interesting or useful. 
> 
> For irrelevant reasons I tried using the wgpluck2 opcode at a sr of 96000. With many of my other csd files that use traditional synthesis as opposed to physical modelling opcodes I found a higher sampling rate to have little to no effect, but with wgpluck, and possibly with the other pluck opcodes, haven't tested them yet, the difference was significant. Perhaps a predictable result from the Karpus-Strong algorithm (my math abilities are pretty limited)? 
> 
> Where at 44100, & 48000 there is a significant rolloff after 1kHz, at 96000 it's far less dramatic. The timbre contains many high freq overtones. When rendered at 96000 and downsampled in an editor afterwards the result is still quite noticeable. 
> 
> While I wouldn't define the result as better or worse, it's obviously subjective and contextual, it does seem to offer a different dimension for expression when using the opcode(s).
> 
> I haven't personally noticed any undesirable artifacts as a result of rendering at 96000 but I'd be curious to know if others find/hear issues. 
> 
> Some (crappy looking) screenshots from a spectrum analyzer: 
> 
> 44100 -
> https://drive.google.com/file/d/1nVfxIga7l10AOh1g75qEAfSf8etkGaxR/view?usp=drivesdk
> 
> 96000 -
> https://drive.google.com/file/d/1nePV7BLnVcNyZPxKgG43xrzZTj-5s7mu/view?usp=drivesdk
> 
> There's an audio example here:
> https://soundcloud.com/st-csound/table-arps
> 
> The first half rendered at 44100, the second at 96000 and then downsampled to 44100.
> 
> 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

Date2022-11-04 11:36
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Interesting results rendering wgpluck2 at sr 96000 vs 44100
That is because wgpluck uses a filter whose cutoff frequency is fixed at a 1/4 sampling rate (this is based on the Karplus-Strong model) and so it will change
with the sampling rate.

I am saying this without looking at the code, but I would expect it to be the case.
========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 4 Nov 2022, at 11:12, Josh Moore  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.
> 
> It may have something to do with the way noise would behave if there was no lpf between the noise impulse and the comb filter/delay line, but this is just a wild guess.
> 
> Sent from my iPad
> 
>> On Oct 31, 2022, at 9:12 PM, Scott Daughtrey  wrote:
>> 
>> First off, apologies if this is well known (I'm a newbie... ) but I stumbled on to this and thought others might find it interesting or useful.
>> 
>> For irrelevant reasons I tried using the wgpluck2 opcode at a sr of 96000. With many of my other csd files that use traditional synthesis as opposed to physical modelling opcodes I found a higher sampling rate to have little to no effect, but with wgpluck, and possibly with the other pluck opcodes, haven't tested them yet, the difference was significant. Perhaps a predictable result from the Karpus-Strong algorithm (my math abilities are pretty limited)?
>> 
>> Where at 44100, & 48000 there is a significant rolloff after 1kHz, at 96000 it's far less dramatic. The timbre contains many high freq overtones. When rendered at 96000 and downsampled in an editor afterwards the result is still quite noticeable.
>> 
>> While I wouldn't define the result as better or worse, it's obviously subjective and contextual, it does seem to offer a different dimension for expression when using the opcode(s).
>> 
>> I haven't personally noticed any undesirable artifacts as a result of rendering at 96000 but I'd be curious to know if others find/hear issues.
>> 
>> Some (crappy looking) screenshots from a spectrum analyzer:
>> 
>> 44100 -
>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1nVfxIga7l10AOh1g75qEAfSf8etkGaxR%2Fview%3Fusp%3Ddrivesdk&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cf11756d5d2084cc3d81908dabe559839%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638031572072234829%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=lxsCohPdBxpWLZ753eCUQNKkYnoQ56ifASIZa9If5E4%3D&reserved=0
>> 
>> 96000 -
>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1nePV7BLnVcNyZPxKgG43xrzZTj-5s7mu%2Fview%3Fusp%3Ddrivesdk&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cf11756d5d2084cc3d81908dabe559839%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638031572072234829%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ESYa%2FtsCWYHIHjI5MLhgl21zVk4ryV3od5PoPYOYgkE%3D&reserved=0
>> 
>> There's an audio example here:
>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsoundcloud.com%2Fst-csound%2Ftable-arps&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cf11756d5d2084cc3d81908dabe559839%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638031572072234829%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=gC7pQuaT%2BVJcqtJaAmmbknwwVd2QM6jANehnn%2Fd6roE%3D&reserved=0
>> 
>> The first half rendered at 44100, the second at 96000 and then downsampled to 44100.
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cf11756d5d2084cc3d81908dabe559839%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638031572072234829%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=raGmWG55xh1hbV8VGdeZf2wDKBjx9%2FcR%2FnPGybRTI%2BE%3D&reserved=0
>> Send bugs reports to
>>       https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cf11756d5d2084cc3d81908dabe559839%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638031572072234829%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=UO65sW%2FjYSzeDFKGYpjE6v6756baH7Er3%2BpAl2xPOR8%3D&reserved=0
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cf11756d5d2084cc3d81908dabe559839%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638031572072234829%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=raGmWG55xh1hbV8VGdeZf2wDKBjx9%2FcR%2FnPGybRTI%2BE%3D&reserved=0
> Send bugs reports to
>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cf11756d5d2084cc3d81908dabe559839%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638031572072234829%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=UO65sW%2FjYSzeDFKGYpjE6v6756baH7Er3%2BpAl2xPOR8%3D&reserved=0
> 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

Date2022-11-05 00:14
FromJosh Moore
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Interesting results rendering wgpluck2 at sr 96000 vs 44100
Yeah victor this makes perfect sense

Sent from my iPad

> On Nov 4, 2022, at 4:36 AM, Victor Lazzarini  wrote:
> 
> That is because wgpluck uses a filter whose cutoff frequency is fixed at a 1/4 sampling rate (this is based on the Karplus-Strong model) and so it will change
> with the sampling rate.
> 
> I am saying this without looking at the code, but I would expect it to be the case.
> ========================
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
> 
>> On 4 Nov 2022, at 11:12, Josh Moore  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.
>> 
>> It may have something to do with the way noise would behave if there was no lpf between the noise impulse and the comb filter/delay line, but this is just a wild guess.
>> 
>> Sent from my iPad
>> 
>>>> On Oct 31, 2022, at 9:12 PM, Scott Daughtrey  wrote:
>>> 
>>> First off, apologies if this is well known (I'm a newbie... ) but I stumbled on to this and thought others might find it interesting or useful.
>>> 
>>> For irrelevant reasons I tried using the wgpluck2 opcode at a sr of 96000. With many of my other csd files that use traditional synthesis as opposed to physical modelling opcodes I found a higher sampling rate to have little to no effect, but with wgpluck, and possibly with the other pluck opcodes, haven't tested them yet, the difference was significant. Perhaps a predictable result from the Karpus-Strong algorithm (my math abilities are pretty limited)?
>>> 
>>> Where at 44100, & 48000 there is a significant rolloff after 1kHz, at 96000 it's far less dramatic. The timbre contains many high freq overtones. When rendered at 96000 and downsampled in an editor afterwards the result is still quite noticeable.
>>> 
>>> While I wouldn't define the result as better or worse, it's obviously subjective and contextual, it does seem to offer a different dimension for expression when using the opcode(s).
>>> 
>>> I haven't personally noticed any undesirable artifacts as a result of rendering at 96000 but I'd be curious to know if others find/hear issues.
>>> 
>>> Some (crappy looking) screenshots from a spectrum analyzer:
>>> 
>>> 44100 -
>>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1nVfxIga7l10AOh1g75qEAfSf8etkGaxR%2Fview%3Fusp%3Ddrivesdk&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cf11756d5d2084cc3d81908dabe559839%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638031572072234829%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=lxsCohPdBxpWLZ753eCUQNKkYnoQ56ifASIZa9If5E4%3D&reserved=0
>>> 
>>> 96000 -
>>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1nePV7BLnVcNyZPxKgG43xrzZTj-5s7mu%2Fview%3Fusp%3Ddrivesdk&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cf11756d5d2084cc3d81908dabe559839%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638031572072234829%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ESYa%2FtsCWYHIHjI5MLhgl21zVk4ryV3od5PoPYOYgkE%3D&reserved=0
>>> 
>>> There's an audio example here:
>>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsoundcloud.com%2Fst-csound%2Ftable-arps&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cf11756d5d2084cc3d81908dabe559839%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638031572072234829%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=gC7pQuaT%2BVJcqtJaAmmbknwwVd2QM6jANehnn%2Fd6roE%3D&reserved=0
>>> 
>>> The first half rendered at 44100, the second at 96000 and then downsampled to 44100.
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cf11756d5d2084cc3d81908dabe559839%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638031572072234829%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=raGmWG55xh1hbV8VGdeZf2wDKBjx9%2FcR%2FnPGybRTI%2BE%3D&reserved=0
>>> Send bugs reports to
>>>      https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cf11756d5d2084cc3d81908dabe559839%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638031572072234829%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=UO65sW%2FjYSzeDFKGYpjE6v6756baH7Er3%2BpAl2xPOR8%3D&reserved=0
>>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cf11756d5d2084cc3d81908dabe559839%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638031572072234829%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=raGmWG55xh1hbV8VGdeZf2wDKBjx9%2FcR%2FnPGybRTI%2BE%3D&reserved=0
>> Send bugs reports to
>>       https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cf11756d5d2084cc3d81908dabe559839%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638031572072234829%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=UO65sW%2FjYSzeDFKGYpjE6v6756baH7Er3%2BpAl2xPOR8%3D&reserved=0
>> 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