O slideshow foi denunciado.
Seu SlideShare está sendo baixado. ×

Fourier Series of Music by Robert Fustero

Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
The Fourier Series of Music
Robert Fustero
. Where
Represents the floor function
Introduction. What does an exponential waveform have to do with music and the notes we recognize? I
discovered a mathemati...
Now we have a problem: 3/2 3/2 = 9/8. 9/8 is higher than an octave. The distance from F to G is a Major
2nd. We can reach ...
Anúncio
Anúncio
Anúncio
Carregando em…3
×

Confira estes a seguir

1 de 16 Anúncio

Mais Conteúdo rRelacionado

Semelhante a Fourier Series of Music by Robert Fustero (20)

Anúncio

Mais recentes (20)

Fourier Series of Music by Robert Fustero

  1. 1. The Fourier Series of Music Robert Fustero . Where Represents the floor function
  2. 2. Introduction. What does an exponential waveform have to do with music and the notes we recognize? I discovered a mathematical function that displays a key insight into the unit of musical harmony. The motivation for finding this function was to see if there was a linear way to describe all the ratios in the chromatic scale (Pythagorean tuning). Pythagorean tuning is based on chains of fourths and fifths combined to reach every single note. Abstract. Tuning systems are based on pitch. It’s been found throughout every culture that if you take a string, pluck it, and compare the sound to another string twice its length (with equal tension), those two notes are equal. This is called the octave. Different tuning systems have been around since the time of the Ancient Greeks. The Greeks used two systems of tuning based on ideal integer ratios: Pythagorean and Ptolemaic. The major difference is, Ptolemaic tuning uses simpler ratios, where as Pythagorean tuning uses a chain of fifths and fourths. For example, a Major 3 in Pythagorean would be 81/64 where as in Ptolemaic it’s 5/4. Later music theorists, such as Gioseffo Zarlino[1] during the Renaissance, would prefer the Ptolemaic tuning system. Tuning systems based on ratios are called Just Intonation or Mean Tone Temperaments. The problem with Just Intonation is that the same ratios don’t translate evenly when you move from key to key. They create what are called “wolf intervals” which sound odd to the human ear. The solution was to switch to equal temperament – which divides the octave into 12 parts, all of which are equal on a logarithmic scale with a ratio of the 12th root of 2. The Pythagoreans used a method of tuning called the ‘chain of fifths’, where you multiply the pitch/frequency by a fifth (3/2) until you pass an octave. When you pass an octave, you take that same note, and move it down an octave by multiplying it by another ratio. Every ratio can be generated by a combination of 3/2 and 4/3. (This method is ascribed to an anonymous source in a book by Iacobus de Ispania in the 13th century)[2] For example, we will generate a scale starting from F. F C G D A E B F is called the unison in this case which has a ratio of 1/1. Going up a fifth we are on C. We got here by multiplying 1/1 by 3/2. If we go up another fifth we get to G.
  3. 3. Now we have a problem: 3/2 3/2 = 9/8. 9/8 is higher than an octave. The distance from F to G is a Major 2nd. We can reach this with our ratios going up a fifth and down a forth. In other words, we can multiply 3/2 by the inverse 4/3, ¾, to reach 9/8. (3/2 3/4 =9/8) Now that we’re at G, we can reach D by going up another fifth. The Fifth up from D, is A. We can reach this by going up a fifth and down a fourth twice (from our original note F). Also known as two Major seconds 9/8 9/8 = 81/64. This method of going up a fifth and down a forth can continue forever. Source: http://www.medieval.org/emfaq/harmony/pyth4 A. Notes and intervals derived directly from the tuning --------------------------------------------------------- Tone Interval to f ratio --------------------------------------------------------- f 1 1:1 c' 5 3:2 g M2 9:8 d' M6 27:16 a M3 81:64 e' M7 243:128 b A4 729:512 f' 8 2:1 _________________________________________________________ --------------------------------------------------------- B. Other intervals derived from these scale elements --------------------------------------------------------- Tones Interval Derivations ratio --------------------------------------------------------- e'-f', b-c' m2 8 - M7; 5 - A4 256:243 d'-f', etc. m3 8 - M6; 5 - M3 32:27 g-c', etc. 4 8 - 5; 5 - M2 4:3 a-f' m6 8 - M3; 5 + m2 128:81 g-f' m7 8 - M2; 5 + m3 16:9 The issue is this method of multiplying notes by different combinations of fourths and fifths does go on forever and never returns to 1/1. We will never be able to multiply a combination of fourths and fifths back to the original starting point. The first time we get close is 3^12/2^19 (which equals 1.013643). The next time we get close is 3^53/2^84(which equals 1.0020903). We would have to make a 53 note keyboard spanning 84 octaves if we wanted to get an extremely precise Pythagorean ratio based tuning system. It still wouldn’t be perfect and it isn’t very practical but with the advancements of computers and synthesizers – music with these concepts is already happening.
  4. 4. Now that we understand Pythagorean tuning and the old method of generating notes, it’s time to reexamine the ratios we have. I’ll start from unison and work to an octave going note by note. No clear pattern emerges – so some rearranging needs to be done. Now a pattern is starting to emerge, but there is something else to notice before we go further – every ratio is comprised of powers of 2 and 3. Every pair of ratios with 3^x in the numerator and 3^x denominator always equaled 2. In fact, this can be viewed as one particular case of the equation below where p=3 and q =2. In this python code, you can see how this pattern extends far beyond just beyond the Pythagorean ratios. p=3 q=2 x=0 n=0 limit = 12 while x < limit: #limit can go beyond 12 rat = (p**x)/(q**n) print('3^{}/2^{} = {}'.format(x,n,rat)) n = n+1 rat = ((q**n)/(p**x)) print('2^{}/3^{} = {}'.format(n,x,rat)) x = x+1 if ((p**x)/(q**n)) > 2: n= n+1 3^0/2^0 = 1.0 2^1/3^0 = 2.0 3^1/2^1 = 1.5 2^2/3^1 = 1.3333333333333333 3^2/2^3 = 1.125 2^4/3^2 = 1.7777777777777777 3^3/2^4 = 1.6875 2^5/3^3 = 1.1851851851851851 3^4/2^6 = 1.265625 2^7/3^4 = 1.5802469135802468 3^5/2^7 = 1.8984375 2^8/3^5 = 1.0534979423868314 3^6/2^9 = 1.423828125 2^10/3^6 = 1.4046639231824416 3^7/2^11 = 1.06787109375 2^12/3^7 = 1.8728852309099222 3^8/2^12 = 1.601806640625 2^13/3^8 = 1.2485901539399482 3^9/2^14 = 1.20135498046875 2^15/3^9 = 1.6647868719199308 3^10/2^15 = 1.802032470703125 2^16/3^10 = 1.1098579146132872 3^11/2^17 = 1.3515243530273438 2^18/3^11 = 1.4798105528177163
  5. 5. As you can see – if the ratio 3^x/2^n is greater than 2 – you add 1 to ‘n’ term and the function continues. For this to be a linear function we have to get rid of the ‘if statement’. So the question turns into – what does ‘n’ equal? This Function generates the continuous sequence, . Where For any real number ‘q’ and ‘p’ > 0. This function generates a linear sequence of ratios strictly less than or equal to q, whose terms = q. The upper and lower bound are given by the first pair of ratios (when x=0) For the particular case of q=2 and p=3 where the ‘x’ integer values intersect the function from 0 to 6… This produces a tuple of ratios that describes all the Pythagorean Ratios from the smallest numerator/denominator to the largest.
  6. 6. One thing to notice about this function is that it is periodic. The term consistently divides in such a way that every time x increases by , the exponential resets. The Fourier Series Expansion of with a period of is as follows see graph at https://www.desmos.com/calculator/beiqwrsxqo
  7. 7. [1] Chisholm, Hugh (1911). The Encyclopædia Britannica, Vol.28, p. 961. The Encyclopædia Britannica Company. [2] Schulter, Margo "Pythagorean Tuning and Medieval Polyphony"
  8. 8. The Fourier Series Expansion of The period of this function can be written as To calculate the Fourier Coefficients we must get rid of the Floor Function by finding the equivalent integral over the period – to . From the proof above, this is now trivial to see. Our equation is set. Now we must calculate
  9. 9. We now must do Integration by parts a second time for Appears on both sides of the equation and we can now solve for it
  10. 10. Now plug-in the solved integral Simplify
  11. 11. Our equation is set. Now we must calculate
  12. 12. We now must do Integration by parts a second time for Appears on both sides of the equation and we can now solve for it
  13. 13. Now plug-in the solved integral Simplify Simplify

×