Csound Csound-dev Csound-tekno Search About

[Csnd] Compensating for aliasing in wavetable playback

Date2017-11-08 15:13
From"Jeanette C."
Subject[Csnd] Compensating for aliasing in wavetable playback
Hey hey,
what would be my best approach to compensate for aliasing, when playing back 
wavetables (using table3 or similar) at much higher frequencies than the 
original frequency of the table at generation time.

Example: a wavetable generated/sampled around 1Hz, converted to an ftable of 
65536 samples. At lower frequencies, this sounds great. But around 300-400Hz 
aliasing becomes obvious.

One method would be to limit the frequency content during creation, which I'd 
like to avoid, if at all possible.

If done in a UDO, a higher samplerate could be used locally and a filter could 
be applied. But I worry about the extra CPU usage of that.

It all depends on the alternatives. Any help is appreciated.

Best wishes,

Jeanette

--------
* website: http://juliencoder.de - for summer is a state of sound
* SoundCloud: https://soundcloud.com/jeanette_c

Don't worry, you're gonna be alright,
But Cinderella's got to go <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

Date2017-11-08 15:29
FromVictor Lazzarini
SubjectRe: [Csnd] Compensating for aliasing in wavetable playback
you could use vco2 and vco2init to initialise the table for it.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 8 Nov 2017, at 15:13, Jeanette C. <julien@MAIL.UPB.DE> wrote:

Hey hey,
what would be my best approach to compensate for aliasing, when playing back wavetables (using table3 or similar) at much higher frequencies than the original frequency of the table at generation time.

Example: a wavetable generated/sampled around 1Hz, converted to an ftable of 65536 samples. At lower frequencies, this sounds great. But around 300-400Hz aliasing becomes obvious.

One method would be to limit the frequency content during creation, which I'd like to avoid, if at all possible.

If done in a UDO, a higher samplerate could be used locally and a filter could be applied. But I worry about the extra CPU usage of that.

It all depends on the alternatives. Any help is appreciated.

Best wishes,

Jeanette

--------
* website: http://juliencoder.de - for summer is a state of sound
* SoundCloud: https://soundcloud.com/jeanette_c

Don't worry, you're gonna be alright,
But Cinderella's got to go <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

Date2017-11-08 15:42
From"Jeanette C."
SubjectRe: [Csnd] Compensating for aliasing in wavetable playback
Nov 8 2017, Victor Lazzarini has written:

> you could use vco2 and vco2init to initialise the table for it.
Unfortunately, this isn't possible, due to further operations required,
such as phase modulation and morphing/blending multiple tables.
...

Best wishes,

Jeanette

--------
* website: http://juliencoder.de - for summer is a state of sound
* SoundCloud: https://soundcloud.com/jeanette_c

Don't worry, you're gonna be alright,
But Cinderella's got to go <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