Csound Csound-dev Csound-tekno Search About

[Csnd] Preventing aliasing with adsynt

Date2019-05-29 14:33
From"Jeanette C."
Subject[Csnd] Preventing aliasing with adsynt
Hey hey,
I am working on an instrument with live pitch control of an adsynt opcode. 
Aliasing might be an issue.

So far, I have tried to use reinit to set the voice/partial count of adsynt 
(icnt). Even though print statements show the correct number of partials, I 
still have a feeling that there is aliasing, or some other kind of artefact, 
with higher notes.

Does adsynt perhaps not register the change to the i-rate variable? Is there a 
better way to avoid aliasing, without statically setting the partial count 
drastically lower?

Best wishes and thanks,

Jeanette

-- 
  * Website: http://juliencoder.de - for summer is a state of sound
  * SoundCloud: https://soundcloud.com/jeanette_c
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * GitHub: https://github.com/jeanette-c
  * Twitter: https://twitter.com/jeanette_c_s

If there's nothing missing in my life
Then why do these tears come at night <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

Date2019-05-29 16:14
FromAnders Genell
SubjectRe: [Csnd] Preventing aliasing with adsynt
I don't know if it would help, but the adsynt2 opcode does interpolation, which adsynt does not, so perhaps that would be a first step?

Regards,
Anders

On Wed, May 29, 2019 at 3:33 PM Jeanette C. <julien@mail.upb.de> wrote:
Hey hey,
I am working on an instrument with live pitch control of an adsynt opcode.
Aliasing might be an issue.

So far, I have tried to use reinit to set the voice/partial count of adsynt
(icnt). Even though print statements show the correct number of partials, I
still have a feeling that there is aliasing, or some other kind of artefact,
with higher notes.

Does adsynt perhaps not register the change to the i-rate variable? Is there a
better way to avoid aliasing, without statically setting the partial count
drastically lower?

Best wishes and thanks,

Jeanette

--
  * Website: http://juliencoder.de - for summer is a state of sound
  * SoundCloud: https://soundcloud.com/jeanette_c
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * GitHub: https://github.com/jeanette-c
  * Twitter: https://twitter.com/jeanette_c_s

If there's nothing missing in my life
Then why do these tears come at night <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

Date2019-05-29 17:13
From"Jeanette C."
SubjectRe: [Csnd] Preventing aliasing with adsynt
May 29 2019, Anders Genell has written:

> I don't know if it would help, but the adsynt2 opcode does interpolation,
> which adsynt does not, so perhaps that would be a first step?
Thanks Anders, that did improve the quality a bit, even though I already
use a large ftable for my sine with 65536 elements. And CPU performance
isn't that much more.

Best wishes,

Jeanette
...

-- 
  * Website: http://juliencoder.de - for summer is a state of sound
  * SoundCloud: https://soundcloud.com/jeanette_c
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * GitHub: https://github.com/jeanette-c
  * Twitter: https://twitter.com/jeanette_c_s

She's so lucky,
she's a star
But she cry, cry, cries in her lonely heart... <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

Date2019-05-29 19:11
Frombrian@AMSYNTH.COM
SubjectRe: [Csnd] Preventing aliasing with adsynt

FWIW,

additive synthesis doesn't create aliasing. So unless there's more going on, it should be fine.

 

Brian

 

On Wed, 29 May 2019 18:13:52 +0200, Jeanette C. wrote:

May 29 2019, Anders Genell has written:
I don't know if it would help, but the adsynt2 opcode does interpolation, which adsynt does not, so perhaps that would be a first step?
Thanks Anders, that did improve the quality a bit, even though I already
use a large ftable for my sine with 65536 elements. And CPU performance
isn't that much more.

Best wishes,

Jeanette
...

-- 
  * Website: http://juliencoder.de - for summer is a state of sound
  * SoundCloud: https://soundcloud.com/jeanette_c
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * GitHub: https://github.com/jeanette-c
  * Twitter: https://twitter.com/jeanette_c_s

She's so lucky,
she's a star
But she cry, cry, cries in her lonely heart... 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

 

 

Date2019-05-29 19:15
From"Jeanette C."
SubjectRe: [Csnd] Preventing aliasing with adsynt
May 29 2019, brian@AMSYNTH.COM has written:
> FWIW,
>
> additive synthesis doesn't create aliasing. So unless
> there's more going on, it should be fine.
That's what I thought, but I wasn't sure if csound adsynt would try to
stop/mute oscillators above the Nyquist frequency. It might have been
the interpolation issue after all.
>
> Brian
>
> On Wed, 29 May 2019
> 18:13:52 +0200, Jeanette C. wrote:
>
>> May 29 2019, Anders Genell has
> written:
>>
>>> I don't know if it would help, but the adsynt2 opcode
> does interpolation, which adsynt does not, so perhaps that would be a
> first step?
>>
>> Thanks Anders, that did improve the quality a bit, even
> though I already
>> use a large ftable for my sine with 65536 elements.
> And CPU performance
>> isn't that much more.
>>
>> Best wishes,
>>
>>
> Jeanette
>> ...
>>
>> --
>> * Website: http://juliencoder.de [1] - for
> summer is a state of sound
>> * SoundCloud:
> https://soundcloud.com/jeanette_c [2]
>> * Youtube:
> https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g [3]
>> * GitHub:
> https://github.com/jeanette-c [4]
>> * Twitter:
> https://twitter.com/jeanette_c_s [5]
>>
>> She's so lucky,
>> she's a
> star
>> But she cry, cry, cries in her lonely heart...
> Csound@listserv.heanet.ie
>>
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND [6]
>> Send bugs reports
> to
>> https://github.com/csound/csound/issues [7]
>> Discussions of bugs
> and features can be posted here
>
>
>
> Links:
> ------
> [1]
> http://juliencoder.de
> [2] https://soundcloud.com/jeanette_c
> [3]
> https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
> [4]
> https://github.com/jeanette-c
> [5] https://twitter.com/jeanette_c_s
> [6]
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> [7]
> https://github.com/csound/csound/issues
>
> 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
>

-- 
  * Website: http://juliencoder.de - for summer is a state of sound
  * SoundCloud: https://soundcloud.com/jeanette_c
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * GitHub: https://github.com/jeanette-c
  * Twitter: https://twitter.com/jeanette_c_s

She's so lucky,
she's a star
But she cry, cry, cries in her lonely heart... <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

Date2019-05-29 19:21
Frombrian@AMSYNTH.COM
SubjectRe: [Csnd] Preventing aliasing with adsynt

When using filters, setting the cutoff max to (sr)/2 will prevent going into aliasing. Really cool!

I'm currently exploring additive synthesis on a PC that's about 15 years old. Over 20 sine waves and I start to get xruns (audio glitches). So I might need to use banks of sine oscillators to simplify things. It's an option, but then you lose some control of individual sine waves, since they are controlled as banks.

 

On Wed, 29 May 2019 20:15:13 +0200, Jeanette C. wrote:

May 29 2019, brian@AMSYNTH.COMhas written:
FWIW, additive synthesis doesn't create aliasing. So unless there's more going on, it should be fine.
That's what I thought, but I wasn't sure if csound adsynt would try to
stop/mute oscillators above the Nyquist frequency. It might have been
the interpolation issue after all.
Brian On Wed, 29 May 2019 18:13:52 +0200, Jeanette C. wrote:
May 29 2019, Anders Genell has
written:
I don't know if it would help, but the adsynt2 opcode
does interpolation, which adsynt does not, so perhaps that would be a first step?
Thanks Anders, that did improve the quality a bit, even
though I already
use a large ftable for my sine with 65536 elements.
And CPU performance
isn't that much more. Best wishes,
Jeanette
... -- * Website: http://juliencoder.de [1] - for
summer is a state of sound
* SoundCloud:
https://soundcloud.com/jeanette_c[2]
* Youtube:
https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g[3]
* GitHub:
https://github.com/jeanette-c[4]
* Twitter:
https://twitter.com/jeanette_c_s[5]
She's so lucky, she's a
star
But she cry, cry, cries in her lonely heart...
Csound@listserv.heanet.iehttps://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND[6]
Send bugs reports
to
https://github.com/csound/csound/issues [7] Discussions of bugs
and features can be posted here Links: ------ [1] http://juliencoder.de [2] https://soundcloud.com/jeanette_c [3] https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g [4] https://github.com/jeanette-c [5] https://twitter.com/jeanette_c_s [6] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND [7] https://github.com/csound/csound/issues 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
-- 
  * Website: http://juliencoder.de - for summer is a state of sound
  * SoundCloud: https://soundcloud.com/jeanette_c
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * GitHub: https://github.com/jeanette-c
  * Twitter: https://twitter.com/jeanette_c_s

She's so lucky,
she's a star
But she cry, cry, cries in her lonely heart... 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

 

 

Date2019-06-01 06:54
Frompablozoani
SubjectRe: [Csnd] Preventing aliasing with adsynt
Hi,
Did you tried to setup the sampling rate to 96 kHz?
I do it when i dont want to use any band limited opcodes, and also might
help a little with latency.
It is not the perfect solution but maybe helps.

Regards



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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