Csound Csound-dev Csound-tekno Search About

Aliasing w/linseg

Date2017-02-22 17:02
FromSam Smalley
SubjectAliasing w/linseg
Hi Csounders,

For some reason when I use linseg to create an amplitude envelope for, as an example, a sine wave, I hear some pretty nasty artifacts. I've turned 'dither' on in preferences, and played around with ksmps in the header... It's still pretty bad. Linseg (and it's variants), and to a much lesser degree expseg (and it's variants) are creating artifacts on basically all audible sounds when I use those opcodes to envelope amplitude. Even at quick ramp times the artifacts still show up. I will include a very simple .csd to demonstrate. 

Perhaps my header is wrong... although I use the default header template, so I'm wondering if this is a preferences issue and not an opcode issue. 

Thanks,
Sam






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-02-22 17:07
FromRory Walsh
SubjectRe: Aliasing w/linseg
Change it to a-rate instead of k-rate. Always use a-rate if you want the best control resolution. 

On 22 February 2017 at 17:02, Sam Smalley <ssmalley@berklee.edu> wrote:
Hi Csounders,

For some reason when I use linseg to create an amplitude envelope for, as an example, a sine wave, I hear some pretty nasty artifacts. I've turned 'dither' on in preferences, and played around with ksmps in the header... It's still pretty bad. Linseg (and it's variants), and to a much lesser degree expseg (and it's variants) are creating artifacts on basically all audible sounds when I use those opcodes to envelope amplitude. Even at quick ramp times the artifacts still show up. I will include a very simple .csd to demonstrate.

Perhaps my header is wrong... although I use the default header template, so I'm wondering if this is a preferences issue and not an opcode issue.

Thanks,
Sam






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

Date2017-02-22 17:08
FromSamuel Smalley
SubjectRe: Aliasing w/linseg
Thanks!

On Wed, Feb 22, 2017 at 12:07 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
Change it to a-rate instead of k-rate. Always use a-rate if you want the best control resolution. 

On 22 February 2017 at 17:02, Sam Smalley <ssmalley@berklee.edu> wrote:
Hi Csounders,

For some reason when I use linseg to create an amplitude envelope for, as an example, a sine wave, I hear some pretty nasty artifacts. I've turned 'dither' on in preferences, and played around with ksmps in the header... It's still pretty bad. Linseg (and it's variants), and to a much lesser degree expseg (and it's variants) are creating artifacts on basically all audible sounds when I use those opcodes to envelope amplitude. Even at quick ramp times the artifacts still show up. I will include a very simple .csd to demonstrate.

Perhaps my header is wrong... although I use the default header template, so I'm wondering if this is a preferences issue and not an opcode issue.

Thanks,
Sam






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