SlideShare a Scribd company logo
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 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.
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.
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
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.
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
[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"
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
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
Now plug-in the solved integral
Simplify
Our equation is set. Now we must calculate
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
Now plug-in the solved integral
Simplify
Simplify
Fourier Series of Music by Robert Fustero

More Related Content

What's hot

Pythagorean triples
Pythagorean triplesPythagorean triples
Pythagorean triples
pdteets
 
Archimedes
ArchimedesArchimedes
Archimedes
Doug Leadenham
 
52 pythagorean theorem and square roots
52 pythagorean theorem and square roots52 pythagorean theorem and square roots
52 pythagorean theorem and square roots
alg-ready-review
 
32 approximation, differentiation and integration of power series x
32 approximation, differentiation and integration of power series x32 approximation, differentiation and integration of power series x
32 approximation, differentiation and integration of power series x
math266
 
Programming for engineers in python
Programming for engineers in pythonProgramming for engineers in python
Programming for engineers in python
Hoang Nguyen
 
Volume presentation
Volume presentationVolume presentation
Volume presentation
lsreed
 
Geometry Section 5-6 1112
Geometry Section 5-6 1112Geometry Section 5-6 1112
Geometry Section 5-6 1112
Jimbo Lamb
 
Real numbers
Real numbersReal numbers
Real numbers
Farhan Alam
 
Algebra 2 unit 12
Algebra 2 unit 12Algebra 2 unit 12
Algebra 2 unit 12
Mark Ryder
 
Cubic root using excel
Cubic root using excelCubic root using excel
Cubic root using excel
Akshaya Mishra
 
Q Analogs of the binomial coefficient Congruences of Babbage Wolstenholme and...
Q Analogs of the binomial coefficient Congruences of Babbage Wolstenholme and...Q Analogs of the binomial coefficient Congruences of Babbage Wolstenholme and...
Q Analogs of the binomial coefficient Congruences of Babbage Wolstenholme and...
manojmanoj218596
 
51 basic geometrical shapes and formulas
51 basic geometrical shapes and formulas51 basic geometrical shapes and formulas
51 basic geometrical shapes and formulas
alg-ready-review
 
Geometry Section 4-3
Geometry Section 4-3Geometry Section 4-3
Geometry Section 4-3
Jimbo Lamb
 
Sequence formulas direct and recursive
Sequence formulas direct and recursiveSequence formulas direct and recursive
Sequence formulas direct and recursive
Zohaib Khalid
 

What's hot (14)

Pythagorean triples
Pythagorean triplesPythagorean triples
Pythagorean triples
 
Archimedes
ArchimedesArchimedes
Archimedes
 
52 pythagorean theorem and square roots
52 pythagorean theorem and square roots52 pythagorean theorem and square roots
52 pythagorean theorem and square roots
 
32 approximation, differentiation and integration of power series x
32 approximation, differentiation and integration of power series x32 approximation, differentiation and integration of power series x
32 approximation, differentiation and integration of power series x
 
Programming for engineers in python
Programming for engineers in pythonProgramming for engineers in python
Programming for engineers in python
 
Volume presentation
Volume presentationVolume presentation
Volume presentation
 
Geometry Section 5-6 1112
Geometry Section 5-6 1112Geometry Section 5-6 1112
Geometry Section 5-6 1112
 
Real numbers
Real numbersReal numbers
Real numbers
 
Algebra 2 unit 12
Algebra 2 unit 12Algebra 2 unit 12
Algebra 2 unit 12
 
Cubic root using excel
Cubic root using excelCubic root using excel
Cubic root using excel
 
Q Analogs of the binomial coefficient Congruences of Babbage Wolstenholme and...
Q Analogs of the binomial coefficient Congruences of Babbage Wolstenholme and...Q Analogs of the binomial coefficient Congruences of Babbage Wolstenholme and...
Q Analogs of the binomial coefficient Congruences of Babbage Wolstenholme and...
 
51 basic geometrical shapes and formulas
51 basic geometrical shapes and formulas51 basic geometrical shapes and formulas
51 basic geometrical shapes and formulas
 
Geometry Section 4-3
Geometry Section 4-3Geometry Section 4-3
Geometry Section 4-3
 
Sequence formulas direct and recursive
Sequence formulas direct and recursiveSequence formulas direct and recursive
Sequence formulas direct and recursive
 

Similar to Fourier Series of Music by Robert Fustero

UofL_Math_Club_Talk
UofL_Math_Club_TalkUofL_Math_Club_Talk
UofL_Math_Club_Talk
Matt Hawthorn
 
Newton raphson halley_householder_simpleexplanation
Newton raphson halley_householder_simpleexplanationNewton raphson halley_householder_simpleexplanation
Newton raphson halley_householder_simpleexplanation
muyuubyou
 
2003.0515v1.pdf
2003.0515v1.pdf2003.0515v1.pdf
2003.0515v1.pdf
ShumailaShafique4
 
Fibonacci_Hubble
Fibonacci_HubbleFibonacci_Hubble
Fibonacci_Hubble
Marc King
 
A multiphase lattice Boltzmann model with sharp interfaces
A multiphase lattice Boltzmann model with sharp interfacesA multiphase lattice Boltzmann model with sharp interfaces
A multiphase lattice Boltzmann model with sharp interfaces
Tim Reis
 
Permutations 2020
Permutations 2020Permutations 2020
Permutations 2020
Robert Geofroy
 
3.4 Polynomial Functions and Their Graphs
3.4 Polynomial Functions and Their Graphs3.4 Polynomial Functions and Their Graphs
3.4 Polynomial Functions and Their Graphs
smiller5
 
A Quest for Subexponential Time Parameterized Algorithms for Planar-k-Path: F...
A Quest for Subexponential Time Parameterized Algorithms for Planar-k-Path: F...A Quest for Subexponential Time Parameterized Algorithms for Planar-k-Path: F...
A Quest for Subexponential Time Parameterized Algorithms for Planar-k-Path: F...
cseiitgn
 
506
506506
Group F
Group FGroup F
Group F
enrich_ed
 
Ft3 new
Ft3 newFt3 new
On the dynamics of distillation processes
On the dynamics of distillation processesOn the dynamics of distillation processes
On the dynamics of distillation processes
Josemar Pereira da Silva
 
Pythagorean theorem slide
Pythagorean theorem slidePythagorean theorem slide
Pythagorean theorem slide
41867612
 
Calculus Final Review Joshua Conyers
Calculus Final Review Joshua ConyersCalculus Final Review Joshua Conyers
Calculus Final Review Joshua Conyers
jcon44
 
Instantons in 1D QM
Instantons in 1D QMInstantons in 1D QM
Instantons in 1D QM
Scott Shermer
 
PART II.1 - Modern Physics
PART II.1 - Modern PhysicsPART II.1 - Modern Physics
PART II.1 - Modern Physics
Maurice R. TREMBLAY
 
Amplitude and period
Amplitude and periodAmplitude and period
Amplitude and period
Kathleen Gonzales
 
Calc05_2.ppt
Calc05_2.pptCalc05_2.ppt
Calc05_2.ppt
EricaOrtiz40
 
Proect
ProectProect
Lecture Notes: EEEC6440315 Communication Systems - Time Frequency Analysis -...
Lecture Notes:  EEEC6440315 Communication Systems - Time Frequency Analysis -...Lecture Notes:  EEEC6440315 Communication Systems - Time Frequency Analysis -...
Lecture Notes: EEEC6440315 Communication Systems - Time Frequency Analysis -...
AIMST University
 

Similar to Fourier Series of Music by Robert Fustero (20)

UofL_Math_Club_Talk
UofL_Math_Club_TalkUofL_Math_Club_Talk
UofL_Math_Club_Talk
 
Newton raphson halley_householder_simpleexplanation
Newton raphson halley_householder_simpleexplanationNewton raphson halley_householder_simpleexplanation
Newton raphson halley_householder_simpleexplanation
 
2003.0515v1.pdf
2003.0515v1.pdf2003.0515v1.pdf
2003.0515v1.pdf
 
Fibonacci_Hubble
Fibonacci_HubbleFibonacci_Hubble
Fibonacci_Hubble
 
A multiphase lattice Boltzmann model with sharp interfaces
A multiphase lattice Boltzmann model with sharp interfacesA multiphase lattice Boltzmann model with sharp interfaces
A multiphase lattice Boltzmann model with sharp interfaces
 
Permutations 2020
Permutations 2020Permutations 2020
Permutations 2020
 
3.4 Polynomial Functions and Their Graphs
3.4 Polynomial Functions and Their Graphs3.4 Polynomial Functions and Their Graphs
3.4 Polynomial Functions and Their Graphs
 
A Quest for Subexponential Time Parameterized Algorithms for Planar-k-Path: F...
A Quest for Subexponential Time Parameterized Algorithms for Planar-k-Path: F...A Quest for Subexponential Time Parameterized Algorithms for Planar-k-Path: F...
A Quest for Subexponential Time Parameterized Algorithms for Planar-k-Path: F...
 
506
506506
506
 
Group F
Group FGroup F
Group F
 
Ft3 new
Ft3 newFt3 new
Ft3 new
 
On the dynamics of distillation processes
On the dynamics of distillation processesOn the dynamics of distillation processes
On the dynamics of distillation processes
 
Pythagorean theorem slide
Pythagorean theorem slidePythagorean theorem slide
Pythagorean theorem slide
 
Calculus Final Review Joshua Conyers
Calculus Final Review Joshua ConyersCalculus Final Review Joshua Conyers
Calculus Final Review Joshua Conyers
 
Instantons in 1D QM
Instantons in 1D QMInstantons in 1D QM
Instantons in 1D QM
 
PART II.1 - Modern Physics
PART II.1 - Modern PhysicsPART II.1 - Modern Physics
PART II.1 - Modern Physics
 
Amplitude and period
Amplitude and periodAmplitude and period
Amplitude and period
 
Calc05_2.ppt
Calc05_2.pptCalc05_2.ppt
Calc05_2.ppt
 
Proect
ProectProect
Proect
 
Lecture Notes: EEEC6440315 Communication Systems - Time Frequency Analysis -...
Lecture Notes:  EEEC6440315 Communication Systems - Time Frequency Analysis -...Lecture Notes:  EEEC6440315 Communication Systems - Time Frequency Analysis -...
Lecture Notes: EEEC6440315 Communication Systems - Time Frequency Analysis -...
 

Recently uploaded

Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
nitinpv4ai
 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
TechSoup
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
Nguyen Thanh Tu Collection
 
BPSC-105 important questions for june term end exam
BPSC-105 important questions for june term end examBPSC-105 important questions for june term end exam
BPSC-105 important questions for june term end exam
sonukumargpnirsadhan
 
CIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdfCIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdf
blueshagoo1
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
nitinpv4ai
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
danielkiash986
 
How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17
Celine George
 
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptxContiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Kalna College
 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
Iris Thiele Isip-Tan
 
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxxSimple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
RandolphRadicy
 
220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx
Kalna College
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
David Douglas School District
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Henry Hollis
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
TechSoup
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
 
How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17
Celine George
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
nitinpv4ai
 
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGHKHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
shreyassri1208
 

Recently uploaded (20)

Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
 
BPSC-105 important questions for june term end exam
BPSC-105 important questions for june term end examBPSC-105 important questions for june term end exam
BPSC-105 important questions for june term end exam
 
CIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdfCIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdf
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
 
How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17
 
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptxContiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptx
 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
 
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxxSimple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
 
220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
 
How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
 
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGHKHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
 

Fourier Series of Music by Robert Fustero

  • 1. The Fourier Series of Music Robert Fustero . Where Represents the floor function
  • 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. 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. 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. 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. 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. [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. 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.
  • 10. 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
  • 11. Now plug-in the solved integral Simplify
  • 12.
  • 13. Our equation is set. Now we must calculate
  • 14. 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
  • 15. Now plug-in the solved integral Simplify Simplify