Csound Csound-dev Csound-tekno Search About

Re: [Csnd] Band-limited Waveforms

Date2012-11-04 02:02
From"Partev Barr Sarkissian"
SubjectRe: [Csnd] Band-limited Waveforms


",,, because with 0 harmonics you still have a sine wave at the base frequency,
with 1 harmonic you have that plus another an octave higher, with 2 harmonics
you have fundamental+octave+~fifth, etc" ---

 If I recall, in Fourier and DSP, "f" subscript naught (f0) is the base frequency
aka- the Fundamental Frequency, and then there's "a0" which in Fourier and
DSP would be the DC component in a Fourier sum. Victor Lazarrini can probably
clarify that better than I can.

-Partev



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


--- noisesmith@gmail.com wrote:

From: Justin Smith <noisesmith@gmail.com>
To: csound@lists.bath.ac.uk
Subject: Re: [Csnd] Band-limited Waveforms
Date: Sat, 3 Nov 2012 15:18:13 -0700




On Sat, Nov 3, 2012 at 3:14 PM, Jussi Pekonen <jussi.pekonen@gmail.com> wrote:
On Nov 3, 2012, at 23:59 , Christopher Saunders wrote:

> I've verified this equation using
>
>       num_harmonics = (sr/2)/ Hz_fundamental
>
>       Hz_of_highest_harmonic  = Hz_fundamental + Hz_fundamental*(num_harmonics)
>
> and I get a Hz_of_highest_harmonic < (sr/2) every time
>
>
>
> However, when cast to an (int)...
>
>       num_harmonics = (sr/2)/ Hz_fundamental
>
>       Hz_of_highest_harmonic  = Hz_fundamental + Hz_fundamental*(int(num_harmonics))
>
>
> ... Hz_of_highest_harmonic is often off by +1/-1.
>
> is there a way to round to the nearest whole number?

Actually the frequency of the highest harmonic should be int(num_harmonics)*Hz_fundamental. Maybe that causes that offset?

no, because with 0 harmonics you still have a sine wave at the base frequency, with 1 harmonic you have that plus another an octave higher, with 2 harmonics you have fundamental+octave+~fifth, etc.
 

On Nov 3, 2012, at 23:59 , Christopher Saunders wrote:

> Anywhere online or in print where I can study these algorithms?

Mostly in print. I collected a list of all publications dealing with this topic to a website last year:

http://www.acoustics.hut.fi/~jpekonen/Papers/fa2011/

That list haven't been updated since I left Aalto University. There are several papers that have been published this year that are obviously missing from that list.

On Nov 3, 2012, at 23:59 , Christopher Saunders wrote:

> Re: VCO opcode
>
> do the waveforms generated by vco contain harmonics up to the Nyquist for every fundamental or are they static tables?

Maybe someone who is more familiar with the VCO opcode could answer this? zappfinger?

Cheers,
Jussi Pekonen
Jussi.Pekonen@gmail.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"



 

Netscape.  Just the Net You Need.

Date2012-11-05 01:00
Frommatt ingalls
SubjectRe: [Csnd] Band-limited Waveforms
musicdsp.org has a bunch of bandlimited code

http://www.musicdsp.org/archive.php?classid=1#12

Date2012-11-05 02:46
FromRob Walton
SubjectRe: [Csnd] Band-limited Waveforms
Any sites like musicdsp which are regularly updated? The latest code seems to be from 2 years ago... and the latest "news" seems to be from the days of 56k modems. Not that I'm complaining as I use musicdsp all the time and it's an excellent resource. It would be nice to have something more up to date though.

On 5 November 2012 01:00, matt ingalls <matt@sonomatics.com> wrote:
musicdsp.org has a bunch of bandlimited code

http://www.musicdsp.org/archive.php?classid=1#12


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"