back to list

Calculating Periodicity Buzz

🔗domeofatonement <domeofatonement@...>

6/13/2011 7:40:11 PM

After talking to Mike today I decided to try and find a way to calculate the relative degree of periodicity buzz for linearly stretched triads. Consider the trig identity below:

sin(a*t+c)+sin(b*t+d) = 2*sin(t*(a+b)/2+c/2+d/2)*cos(t*(b-a)/2-c/2+d/2)
Or in layman's terms:
One tone plus another tone is equal to the average frequency of both tones multiplied by the frequency of beating, multiplied by two.

'a' and 'b' represent frequencies
't' is the domain of time
'c' and 'd' are phase shifts

The cosine term of the above identity is an amplitude modulation (a.k.a. beating). It should be obvious that when two tones are added together, there is always a degree of low-frequency beating. I propose that this beating is the cause of periodicity buzz. The more modulation, the stronger the buzz.

Lets start with an example: we will be examining a 1:(pi):(2pi-1) triad. This triad is obviously irrational but it has proportional beating between dyads.

We must determine the amplitude modulation of both proportionally beating dyads, and then add them with their respective phases to determine the beating intensity. If the beating intensities are out of phase, subtractive synthesis will occur.

If all of the notes are in phase, both dyads have a beating frequency of 2*cos(t*(pi-1)/2). Summing both of these beating frequencies together, we get a total amplitude modulation of 4.

Now let us do the same calculation, but with the root note 90 degrees out of phase. The beating of the first dyad is equal to 2*cos(t*(pi-1)/2-pi/4), and the beating of the second dyad is 2*cos(t*(pi-1)/2). Adding these two together gives us 2*sqrt(2+sqrt(2))*cos(t*(pi-1)/2+pi/8), or an amplitude of about 3.69552.

Some other amplitude modulation values:
~When the middle note of the triad is 90 degrees out of phase, A=3.69552
~When the root note of the triad is 180 degrees out of phase, A=1.9616
~When all notes are 120 degrees out of phase from one another, A=0

Notice how when a note is out of phase, the resulting beating frequency is out of phase as well. Because the top and bottom dyads of the triad have that same frequency of beating, they encounter either additive synthesis or subtractive synthesis when their amplitude modulations are added together, depending on the phase. This procedure is in agreement with Mike's hypothesis that triads in phase will have more 'buzz' than triads maximally out of phase. His thread and listening examples can be found here: http://launch.dir.groups.yahoo.com/group/tuning/message/95699?var=1

-Ryan

🔗domeofatonement <domeofatonement@...>

6/14/2011 3:56:54 PM

> Notice how when a note is out of phase, the resulting beating frequency is out of phase as well. Because the top and bottom dyads of the triad have that same frequency of beating, they encounter either additive synthesis or subtractive synthesis when their amplitude modulations are added together, depending on the phase. This procedure is in agreement with Mike's hypothesis that triads in phase will have more 'buzz' than triads maximally out of phase. His thread and listening examples can be found here: http://launch.dir.groups.yahoo.com/group/tuning/message/95699?var=1
>
> -Ryan
>

Also I forgot to mention the simplified formula, below:

If you have three sine waves, with frequencies a, b and c, with phase shifts x, y and z respectively, all across the domain of time t, the formula simplifies to this:

RAM = max < 2*cos((b-a)*t/2-x/2+y/2)+2*cos((c-b)*t/2-y/2+z/2) >

Where the relative amplitude modulation, RAM, is equal to the maximum value of the function. This will always be a number between 0 and 4 for triads. 4 represents maximal amplitude modulation, 0 represents minimal amplitude modulation (0 does not mean absence of beating, however).

If you would like to hear some listening examples, I would suggest you go to Mike's thread which I linked to in my last message.

-Ryan

🔗Mike Battaglia <battaglia01@...>

6/14/2011 4:06:12 PM

Hi Ryan, a few points -

On Mon, Jun 13, 2011 at 10:40 PM, domeofatonement
<domeofatonement@...> wrote:
>
> The cosine term of the above identity is an amplitude modulation (a.k.a. beating). It should be obvious that when two tones are added together, there is always a degree of low-frequency beating. I propose that this beating is the cause of periodicity buzz. The more modulation, the stronger the buzz.

You'll notice that the more modulation, the faster the buzz - but also
quieter. That is, 3/1 buzzes less than 9/8 does, even though 3/1 would
have a greater modulation frequency. Which is the main reason why I
keep saying that critical band interactions are involved - because
there's less interaction as the tones get further apart.

> Now let us do the same calculation, but with the root note 90 degrees out of phase. The beating of the first dyad is equal to 2*cos(t*(pi-1)/2-pi/4), and the beating of the second dyad is 2*cos(t*(pi-1)/2). Adding these two together gives us 2*sqrt(2+sqrt(2))*cos(t*(pi-1)/2+pi/8), or an amplitude of about 3.69552.
>
> Some other amplitude modulation values:
> ~When the middle note of the triad is 90 degrees out of phase, A=3.69552
> ~When the root note of the triad is 180 degrees out of phase, A=1.9616
> ~When all notes are 120 degrees out of phase from one another, A=0

I'm not sure I've followed correctly, but for the last one, are you
saying that if the first one has a phase of 0, the second one has a
phase of 120, and the third one has a phase of 240, that there will be
no buzz?

> Notice how when a note is out of phase, the resulting beating frequency is out of phase as well. Because the top and bottom dyads of the triad have that same frequency of beating, they encounter either additive synthesis or subtractive synthesis when their amplitude modulations are added together, depending on the phase. This procedure is in agreement with Mike's hypothesis that triads in phase will have more 'buzz' than triads maximally out of phase. His thread and listening examples can be found here: http://launch.dir.groups.yahoo.com/group/tuning/message/95699?var=1

I think that we're on the same track, roughly, although I think the
equations above would be tweaked more to consider group delay rather
than phase - but let me see if I've understood what you wrote above
first.

-Mike

🔗domeofatonement <domeofatonement@...>

6/14/2011 4:35:20 PM

--- In tuning@yahoogroups.com, Mike Battaglia <battaglia01@...> wrote:
> I'm not sure I've followed correctly, but for the last one, are you
> saying that if the first one has a phase of 0, the second one has a
> phase of 120, and the third one has a phase of 240, that there will be
> no buzz?

The first has phase -120, the second 0, the third +120; so yes, practically the same as 0, 120, 240. There will still be buzz, but it will be minimized. The formula always returns a value between 0 and 4 for triads, which can be used for comparison purposes but not for finding the absolute amplitude of buzzing.

> I think that we're on the same track, roughly, although I think the
> equations above would be tweaked more to consider group delay rather
> than phase - but let me see if I've understood what you wrote above
> first.
>
> -Mike
>

What exactly is the difference between group delay and phase? Maybe the reason we have a misunderstanding is because I still don't quite understand your periodicity buzz hypothesis. Not to mention that my formula still needs to be fleshed out.

-Ryan

🔗Mike Battaglia <battaglia01@...>

6/17/2011 6:54:39 AM

On Tue, Jun 14, 2011 at 7:35 PM, domeofatonement
<domeofatonement@...> wrote:
>
> --- In tuning@yahoogroups.com, Mike Battaglia <battaglia01@...> wrote:
> > I'm not sure I've followed correctly, but for the last one, are you
> > saying that if the first one has a phase of 0, the second one has a
> > phase of 120, and the third one has a phase of 240, that there will be
> > no buzz?
>
> The first has phase -120, the second 0, the third +120; so yes, practically the same as 0, 120, 240. There will still be buzz, but it will be minimized. The formula always returns a value between 0 and 4 for triads, which can be used for comparison purposes but not for finding the absolute amplitude of buzzing.

So this should still buzz then, because the phases are all in a linear
relationship with one another. It should actually just look like a
time-shifted version of the original waveform. Something like 0, 90,
360 might do the trick better, or 0, 120, 360. Something in which the
phases are in a parabolic relationship with one another. It's also
going to have to do with whether the frequencies in the chord are
separated by a constant difference (like 4:5:6) or if one is lopsided
(like 8:9:11). See below for more about group delay.

> What exactly is the difference between group delay and phase?

Group delay is the first derivative of the phase response of a signal,
where the phase response is that other part of its Fourier transform
that nobody likes to talk about. I could show you the math, but maybe
it's easier to just describe it as - if you take a signal, and you
delay it in time, this delay is going to have the effect on the phase
response of skewing it linearly, meaning - if p(f) was your original
phase response, when you delay it in time, the new phase response will
be p(f) + mf, where m is a number that scales proportionally with how
much you've delayed it. You can see that this mf term is a line, and
so you'll be adding a line to the phase response.

So if you take three sines at phase 0 and at frequency 100, 200, and
300, and you delay them in time, you'll add a line to the phase
response of the whole thing. So you'll end up getting new (unwrapped)
phase responses like 0, pi/2, and pi, or maybe 0, 200, 400, or
whatever it is - the point is that if you connect the dots in the
phase response, you'll get a line.

The main point is that when you try to work backwards, as you're
doing, although the frequencies you've chosen don't all have the
-same- phase, they are all still in this -linear phase- relationship,
so they aren't really shifting relative to one another in the way that
you want. Or, well, they are, but the way you're doing it will make it
so that you magically get the original signal again, shifted in time,
which isn't what you want. You may have heard the phrase "linear
phase" being thrown around for EQs that are advertised as causing no
phase distortion, and this is why - and unfortunately, phase
distortion is what we want to mess with buzz.

If you're not convinced, here are some audio samples:

/tuning/topicId_95522.html#95568

Luckily, the solution is simple: stop dealing with phase and start
looking at group delay. Group delay is the derivative of phase, and
more precisely correlates with what we want here. As I said above, if
you delay a signal, you're going to add mf to it, and m is
proportional to the amount of delay. The derivative of mf is m, and so
by manipulating the derivative of the phase response, you can produce
variable time delays for different frequencies - which is what we
want, so the buzz gets out of sync with one another. I recommend
messing with a parabolic phase response, which means that group delay
is a linear function of frequency. So if you're looking at a triad
with frequencies a, b, and c, and c-b = b-a, make the phase of a be 0,
make the phase of b be something else, and then make the phase of c be
FOUR times that - not two times that. Then you'll see the buzz start
to change depending on how you scale it.

-Mike