Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: What's the highest quality sawtooth in Csound?

Date2010-10-03 23:56
From"Partev Barr Sarkissian"
Subject[Csnd] Re: Re: What's the highest quality sawtooth in Csound?
ALso, there's the fundamental frequency I select in the Score file 
that has to be considered. A 25-Hz or 30-Hz will alias differently
than a 6.3-kHz wave.

I'll just filter and shape it all to heck til I get my Sawtooth shaped
the way I like it. Add and LFO, delay, and some other effects and the 
fun really starts. Using just what I have here so far would be way
too bland.


-Partev


============================================================================


--- Victor.Lazzarini@nuim.ie wrote:

From: Victor Lazzarini 
To: csound@lists.bath.ac.uk
Subject: [Csnd] Re: Re: Re: Re: Re: What's the highest quality sawtooth in Csound?
Date: Sun, 03 Oct 2010 09:30:31 +0100

vco2 is the easiest way of doing this.
On 3 Oct 2010, at 08:49, Andres Cabrera wrote:

> Hi,
>
> Not really, because it's already aliased when it is created. Band
> limited oscillators do sound a little better than table based
> oscillators, but if the table is large and there is interpolation,
> it's harder to tell the difference.
>
> Cheers,
> Andrés
>
> On Sun, Oct 3, 2010 at 8:28 AM, Greg Schroeder  
>  wrote:
>> Couldn't one just increase the size of the table and or filter out  
>> the
>> aliasing frequencies?
>> Just sayin . . .
>> Greg
>>
>> On Sun, Oct 3, 2010 at 5:27 AM, Michael Mossey > > wrote:
>>>
>>>
>>> On 10/2/2010 4:32 PM, Partev Barr Sarkissian wrote:
>>>>
>>>> I have a Bi-Polar Pure Tone Sawtooth Wave:
>>>>
>>>> In my Score file---
>>>>
>>>> table  beats  size   GEN  harmonics/ amplitudes
>>>> f#       0    1024    7     1    1024    -1    ; 3-Sawtooth Wave
>>>>
>>>>
>>>
>>> Doesn't this cause aliasing? My understanding is that your  
>>> straight-line
>>> sawtooth contains harmonics that are potentially above the Nyquist  
>>> depending
>>> on the frequency of the sawtooth playback. Am I wrong?
>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>           https://sourceforge.net/tracker/? 
>>> group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe
>>> csound"
>>>
>>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/? 
>> group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>>
>
>
>
> -- 
>
>
> Andrés
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





_____________________________________________________________
Netscape.  Just the Net You Need.
Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-10-04 16:18
FromAaron Krister Johnson
Subject[Csnd] Re: Re: Re: What's the highest quality sawtooth in Csound?
Hi Partev,

It doesn't quite work to filter an already aliased signal. Hence the need for a band-limited oscillator.

The alias/foldover of the signal happens BEFORE the filter, so the artifact frequencies will be there before it enters the filter chain. Once those freqs are present, there is little to be done, including filtering. So, again, the best thing to do is to not create a dirty signal to begin with.

One should either:

1) implement a rich waveform as a sum of sines that doesn't go above Nyquist.
or
2) don't worry about the details and just use vco2. This was mentioned I think by Victor L. and others already.

I prefer the latter, for ease :)

Why is there GEN7, etc, then? Well, I suppose it's still useful for LFO modulation and enveloping....

AKJ

On Sun, Oct 3, 2010 at 5:56 PM, Partev Barr Sarkissian <encino_man@netscape.com> wrote:
ALso, there's the fundamental frequency I select in the Score file
that has to be considered. A 25-Hz or 30-Hz will alias differently
than a 6.3-kHz wave.

I'll just filter and shape it all to heck til I get my Sawtooth shaped
the way I like it. Add and LFO, delay, and some other effects and the
fun really starts. Using just what I have here so far would be way
too bland.


-Partev


============================================================================


--- Victor.Lazzarini@nuim.ie wrote:

From: Victor Lazzarini <Victor.Lazzarini@nuim.ie>
Subject: [Csnd] Re: Re: Re: Re: Re: What's the highest quality sawtooth in Csound?
Date: Sun, 03 Oct 2010 09:30:31 +0100

vco2 is the easiest way of doing this.
On 3 Oct 2010, at 08:49, Andres Cabrera wrote:

> Hi,
>
> Not really, because it's already aliased when it is created. Band
> limited oscillators do sound a little better than table based
> oscillators, but if the table is large and there is interpolation,
> it's harder to tell the difference.
>
> Cheers,
> Andrés
>
> On Sun, Oct 3, 2010 at 8:28 AM, Greg Schroeder
> <gmschroeder@gmail.com> wrote:
>> Couldn't one just increase the size of the table and or filter out
>> the
>> aliasing frequencies?
>> Just sayin . . .
>> Greg
>>
>> On Sun, Oct 3, 2010 at 5:27 AM, Michael Mossey <mpm@alumni.caltech.edu
>> > wrote:
>>>
>>>
>>> On 10/2/2010 4:32 PM, Partev Barr Sarkissian wrote:
>>>>
>>>> I have a Bi-Polar Pure Tone Sawtooth Wave:
>>>>
>>>> In my Score file---
>>>>
>>>> table  beats  size   GEN  harmonics/ amplitudes
>>>> f#       0    1024    7     1    1024    -1    ; 3-Sawtooth Wave
>>>>
>>>>
>>>
>>> Doesn't this cause aliasing? My understanding is that your
>>> straight-line
>>> sawtooth contains harmonics that are potentially above the Nyquist
>>> depending
>>> on the frequency of the sawtooth playback. Am I wrong?
>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>           https://sourceforge.net/tracker/?
>>> group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>> "unsubscribe
>>> csound"
>>>
>>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?
>> group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> "unsubscribe csound"
>>
>>
>
>
>
> --
>
>
> Andrés
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





_____________________________________________________________
Netscape.  Just the Net You Need.
Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




--
Aaron Krister Johnson
http://www.akjmusic.com
http://www.untwelve.org


Date2010-10-04 18:09
FromMichael Gogins
Subject[Csnd] Re: Re: Re: Re: What's the highest quality sawtooth in Csound?
with ftgenonce, you could dynamically change the number of partials
used for each of a given number of frequency bands, and re-generate
the wavetable as required, but only if required, during performance.

Regards,
Mike

On Mon, Oct 4, 2010 at 11:18 AM, Aaron Krister Johnson
 wrote:
> Hi Partev,
>
> It doesn't quite work to filter an already aliased signal. Hence the need
> for a band-limited oscillator.
>
> The alias/foldover of the signal happens BEFORE the filter, so the artifact
> frequencies will be there before it enters the filter chain. Once those
> freqs are present, there is little to be done, including filtering. So,
> again, the best thing to do is to not create a dirty signal to begin with.
>
> One should either:
>
> 1) implement a rich waveform as a sum of sines that doesn't go above
> Nyquist.
> or
> 2) don't worry about the details and just use vco2. This was mentioned I
> think by Victor L. and others already.
>
> I prefer the latter, for ease :)
>
> Why is there GEN7, etc, then? Well, I suppose it's still useful for LFO
> modulation and enveloping....
>
> AKJ
>
> On Sun, Oct 3, 2010 at 5:56 PM, Partev Barr Sarkissian
>  wrote:
>>
>> ALso, there's the fundamental frequency I select in the Score file
>> that has to be considered. A 25-Hz or 30-Hz will alias differently
>> than a 6.3-kHz wave.
>>
>> I'll just filter and shape it all to heck til I get my Sawtooth shaped
>> the way I like it. Add and LFO, delay, and some other effects and the
>> fun really starts. Using just what I have here so far would be way
>> too bland.
>>
>>
>> -Partev
>>
>>
>>
>> ============================================================================
>>
>>
>> --- Victor.Lazzarini@nuim.ie wrote:
>>
>> From: Victor Lazzarini 
>> To: csound@lists.bath.ac.uk
>> Subject: [Csnd] Re: Re: Re: Re: Re: What's the highest quality sawtooth in
>> Csound?
>> Date: Sun, 03 Oct 2010 09:30:31 +0100
>>
>> vco2 is the easiest way of doing this.
>> On 3 Oct 2010, at 08:49, Andres Cabrera wrote:
>>
>> > Hi,
>> >
>> > Not really, because it's already aliased when it is created. Band
>> > limited oscillators do sound a little better than table based
>> > oscillators, but if the table is large and there is interpolation,
>> > it's harder to tell the difference.
>> >
>> > Cheers,
>> > Andrés
>> >
>> > On Sun, Oct 3, 2010 at 8:28 AM, Greg Schroeder
>> >  wrote:
>> >> Couldn't one just increase the size of the table and or filter out
>> >> the
>> >> aliasing frequencies?
>> >> Just sayin . . .
>> >> Greg
>> >>
>> >> On Sun, Oct 3, 2010 at 5:27 AM, Michael Mossey > >> > wrote:
>> >>>
>> >>>
>> >>> On 10/2/2010 4:32 PM, Partev Barr Sarkissian wrote:
>> >>>>
>> >>>> I have a Bi-Polar Pure Tone Sawtooth Wave:
>> >>>>
>> >>>> In my Score file---
>> >>>>
>> >>>> table  beats  size   GEN  harmonics/ amplitudes
>> >>>> f#       0    1024    7     1    1024    -1    ; 3-Sawtooth Wave
>> >>>>
>> >>>>
>> >>>
>> >>> Doesn't this cause aliasing? My understanding is that your
>> >>> straight-line
>> >>> sawtooth contains harmonics that are potentially above the Nyquist
>> >>> depending
>> >>> on the frequency of the sawtooth playback. Am I wrong?
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> Send bugs reports to the Sourceforge bug tracker
>> >>>           https://sourceforge.net/tracker/?
>> >>> group_id=81968&atid=564599
>> >>> Discussions of bugs and features can be posted here
>> >>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >>> "unsubscribe
>> >>> csound"
>> >>>
>> >>>
>> >>
>> >>
>> >> Send bugs reports to the Sourceforge bug tracker
>> >>            https://sourceforge.net/tracker/?
>> >> group_id=81968&atid=564599
>> >> Discussions of bugs and features can be posted here
>> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >> "unsubscribe csound"
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> >
>> >
>> > Andrés
>> >
>> >
>> > Send bugs reports to the Sourceforge bug tracker
>> >            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> > Discussions of bugs and features can be posted here
>> > To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> > "unsubscribe csound"
>> >
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>>
>>
>>
>> _____________________________________________________________
>> Netscape.  Just the Net You Need.
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
>
> --
> Aaron Krister Johnson
> http://www.akjmusic.com
> http://www.untwelve.org
>
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-10-04 20:27
FromAaron Krister Johnson
Subject[Csnd] Re: Re: Re: Re: Re: What's the highest quality sawtooth in Csound?
This is true, but for 99% of applications, wouldn't vco2 suffice? :)

AKJ

On Mon, Oct 4, 2010 at 12:09 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
with ftgenonce, you could dynamically change the number of partials
used for each of a given number of frequency bands, and re-generate
the wavetable as required, but only if required, during performance.

Regards,
Mike

On Mon, Oct 4, 2010 at 11:18 AM, Aaron Krister Johnson
<aaron@akjmusic.com> wrote:
> Hi Partev,
>
> It doesn't quite work to filter an already aliased signal. Hence the need
> for a band-limited oscillator.
>
> The alias/foldover of the signal happens BEFORE the filter, so the artifact
> frequencies will be there before it enters the filter chain. Once those
> freqs are present, there is little to be done, including filtering. So,
> again, the best thing to do is to not create a dirty signal to begin with.
>
> One should either:
>
> 1) implement a rich waveform as a sum of sines that doesn't go above
> Nyquist.
> or
> 2) don't worry about the details and just use vco2. This was mentioned I
> think by Victor L. and others already.
>
> I prefer the latter, for ease :)
>
> Why is there GEN7, etc, then? Well, I suppose it's still useful for LFO
> modulation and enveloping....
>
> AKJ
>
> On Sun, Oct 3, 2010 at 5:56 PM, Partev Barr Sarkissian
> <encino_man@netscape.com> wrote:
>>
>> ALso, there's the fundamental frequency I select in the Score file
>> that has to be considered. A 25-Hz or 30-Hz will alias differently
>> than a 6.3-kHz wave.
>>
>> I'll just filter and shape it all to heck til I get my Sawtooth shaped
>> the way I like it. Add and LFO, delay, and some other effects and the
>> fun really starts. Using just what I have here so far would be way
>> too bland.
>>
>>
>> -Partev
>>
>>
>>
>> ============================================================================
>>
>>
>> --- Victor.Lazzarini@nuim.ie wrote:
>>
>> From: Victor Lazzarini <Victor.Lazzarini@nuim.ie>
>> To: csound@lists.bath.ac.uk
>> Subject: [Csnd] Re: Re: Re: Re: Re: What's the highest quality sawtooth in
>> Csound?
>> Date: Sun, 03 Oct 2010 09:30:31 +0100
>>
>> vco2 is the easiest way of doing this.
>> On 3 Oct 2010, at 08:49, Andres Cabrera wrote:
>>
>> > Hi,
>> >
>> > Not really, because it's already aliased when it is created. Band
>> > limited oscillators do sound a little better than table based
>> > oscillators, but if the table is large and there is interpolation,
>> > it's harder to tell the difference.
>> >
>> > Cheers,
>> > Andrés
>> >
>> > On Sun, Oct 3, 2010 at 8:28 AM, Greg Schroeder
>> > <gmschroeder@gmail.com> wrote:
>> >> Couldn't one just increase the size of the table and or filter out
>> >> the
>> >> aliasing frequencies?
>> >> Just sayin . . .
>> >> Greg
>> >>
>> >> On Sun, Oct 3, 2010 at 5:27 AM, Michael Mossey <mpm@alumni.caltech.edu
>> >> > wrote:
>> >>>
>> >>>
>> >>> On 10/2/2010 4:32 PM, Partev Barr Sarkissian wrote:
>> >>>>
>> >>>> I have a Bi-Polar Pure Tone Sawtooth Wave:
>> >>>>
>> >>>> In my Score file---
>> >>>>
>> >>>> table  beats  size   GEN  harmonics/ amplitudes
>> >>>> f#       0    1024    7     1    1024    -1    ; 3-Sawtooth Wave
>> >>>>
>> >>>>
>> >>>
>> >>> Doesn't this cause aliasing? My understanding is that your
>> >>> straight-line
>> >>> sawtooth contains harmonics that are potentially above the Nyquist
>> >>> depending
>> >>> on the frequency of the sawtooth playback. Am I wrong?
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> Send bugs reports to the Sourceforge bug tracker
>> >>>           https://sourceforge.net/tracker/?
>> >>> group_id=81968&atid=564599
>> >>> Discussions of bugs and features can be posted here
>> >>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >>> "unsubscribe
>> >>> csound"
>> >>>
>> >>>
>> >>
>> >>
>> >> Send bugs reports to the Sourceforge bug tracker
>> >>            https://sourceforge.net/tracker/?
>> >> group_id=81968&atid=564599
>> >> Discussions of bugs and features can be posted here
>> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >> "unsubscribe csound"
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> >
>> >
>> > Andrés
>> >
>> >
>> > Send bugs reports to the Sourceforge bug tracker
>> >            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> > Discussions of bugs and features can be posted here
>> > To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> > "unsubscribe csound"
>> >
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>>
>>
>>
>> _____________________________________________________________
>> Netscape.  Just the Net You Need.
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
>
> --
> Aaron Krister Johnson
> http://www.akjmusic.com
> http://www.untwelve.org
>
>



--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




--
Aaron Krister Johnson
http://www.akjmusic.com
http://www.untwelve.org


Date2010-10-04 20:50
FromMichael Gogins
Subject[Csnd] Re: Re: Re: Re: Re: Re: What's the highest quality sawtooth in Csound?

I think so...

MKG from cell phone

On Oct 4, 2010 3:27 PM, "Aaron Krister Johnson" <aaron@akjmusic.com> wrote:

This is true, but for 99% of applications, wouldn't vco2 suffice? :)

AKJ



On Mon, Oct 4, 2010 at 12:09 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
>
> with ftgenon...