Csound Csound-dev Csound-tekno Search About

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

Date2010-10-03 00:32
From"Partev Barr Sarkissian"
Subject[Csnd] Re: What's the highest quality sawtooth in Csound?
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



In my Orch file---
aosc3   oscil   p4, p5, 3           ; Oscillator 3- Sawtooth Wave


I adjust the display to how I like to see it. There is no 
harmonic ripple riding on the signal. After this, it's a matter 
of amps, filters, LFO, and such to make it interesting. Then, 
it's a matter of your system's audio resolution.

I use GEN 7 on many of my waves and functions, GEN 7 for Sine 
wave and a Square wave that uses summed odd harmonics out to 
the 23rd harmonic, and a GEN -12 for a Bessel function.

This Sawtooth is straight forward, simple and clean. 
Does the job very well.


Cheers,
-Partev


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





--- m.develde@gmail.com wrote:

From: Marcel de Velde 
To: csound@lists.bath.ac.uk
Subject: [Csnd] Re: Re: What's the highest quality sawtooth in Csound?
Date: Mon, 27 Sep 2010 06:23:08 +0200

Hi Greg,
Thanks for your help!

There's a few approaches.
Additive:
Go down to the yellow table. Express those values in the ftable as
decimals. If you'd like, observe the pattern for the sawtooth wave's
partial values and enter more values.
http://www.csounds.com/ezine/spectra/
and gen10's manual entry:
http://www.csounds.com/manualOLPC/GEN10.html

Ok so then I call gen10 for every note that's played (make a big new
table for each note) to make the harmonics from the note frequency up
till the nyquist and then use for instance poscil3 to play the note?
Just to be sure I got that right before I go figure out how to do
that (I'm very much a csound programming newbie)

Or just draw a sawtooth wave with straight lines:
http://www.csounds.com/manualOLPC/GEN07.html

That will give me a lot of aliasing. Can't have that for my use.

Those are the two most-obvious ones.
Greg
Use  however  many partials and adjust the size of the table to
whatever
definition of "quality" you'd like.
That's the most precise way I know to make an audio-rate sawtooth
wave.
Greg

Still wondering if the method above will give a better audio quality
than VCO2.
Do you know why or in which way VCO2 gives inferior results?
VCO2 would be way simpler but if it's lacking in quality then I'll do
it the other way..
-Marcel




_____________________________________________________________
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-03 06:27
FromMichael Mossey
Subject[Csnd] Re: Re: What's the highest quality sawtooth in Csound?
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"

Date2010-10-03 08:28
FromGreg Schroeder
Subject[Csnd] Re: Re: Re: What's the highest quality sawtooth in Csound?
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"


Date2010-10-03 08:49
FromAndres Cabrera
Subject[Csnd] Re: Re: Re: Re: What's the highest quality sawtooth in Csound?
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"


Date2010-10-03 09:30
FromVictor Lazzarini
Subject[Csnd] Re: Re: Re: Re: Re: What's the highest quality sawtooth in Csound?
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"