Csound Csound-dev Csound-tekno Search About

odd harmonics only, from buzz

Date2016-10-18 02:10
FromMichael Saunders
Subjectodd harmonics only, from buzz
I've gotten around to trying this with buzz (it didn't work with gbuzz).  I'm surprised to find that it doesn't work with buzz either.  Apparently, after a second or two, the two signals go a little out of phase and ae doesn't properly cancel out ao.  Notice how, by the end of the note, the impulses of the two don't align.  Here is my minimal example:

instr 1

icps=2000

knho=int(.5*(44000)/icps)

knhe=int(.25*(44000)/icps)

ao buzz 1, icps, knho, giSine

ae buzz 1, icps*2, knhe, giSine

outs ao,ae

endin


giSine ftgen 0, 0, 2^10+1, 10, 1

i1 0 30

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

Date2016-10-18 06:35
FromVictor Lazzarini
SubjectRe: odd harmonics only, from buzz
yes, buzz can drift slightly out of phase, and this effect needs a phase lock. If you derive the phase from a single source (phasor) and use table lookup, it will work.
With gbuzz, the issue is that the spectra are not flat, so you only get partial cancellation. and it will drift as well.

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

On 18 Oct 2016, at 02:11, Michael Saunders <odradek5@GMAIL.COM> wrote:

I've gotten around to trying this with buzz (it didn't work with gbuzz).  I'm surprised to find that it doesn't work with buzz either.  Apparently, after a second or two, the two signals go a little out of phase and ae doesn't properly cancel out ao.  Notice how, by the end of the note, the impulses of the two don't align.  Here is my minimal example:

instr 1

icps=2000

knho=int(.5*(44000)/icps)

knhe=int(.25*(44000)/icps)

ao buzz 1, icps, knho, giSine

ae buzz 1, icps*2, knhe, giSine

outs ao,ae

endin


giSine ftgen 0, 0, 2^10+1, 10, 1

i1 0 30

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