際際滷

際際滷Share a Scribd company logo
Fundamentals	
 of	
 western	
 music	
 
theory
Can	
 we	
 learn	
 by	
 creating	
 a	
 code	
 
model?
Note
 Name	
 (C,	
 D,	
 E,	
 F,	
 G,	
 A,	
 B)	
 
 Pitch	
 (1,	
 2,	
 3,	
 4,	
 5,	
 6,	
 7)
Note	
 Model
 Return	
 Note	
 properties	
 based	
 on	
 name	
 
 Input	
 
 Name:	
 C	
 
 Output	
 
 Name	
 :	
 C	
 
 Pitch:	
 1
Note	
 (Accidentals)
 Name	
 	
 
 (C,	
 C#/Db,	
 D,	
 D#/Eb,	
 E,	
 F,	
 F#/Gb,	
 G,	
 G#/Ab,	
 
A,	
 A#/Bb,	
 B,	
 C)	
 
 Pitch	
 	
 
 (1,	
 2,	
 3,	
 4,	
 5,	
 6,	
 7,	
 8,	
 9,	
 10,	
 11,	
 12,	
 1)	
 
 Sharp	
 (increase	
 pitch	
 by	
 1)	
 
 Flat	
 (decrease	
 pitch	
 by	
 1)
Note	
 Model
 Return	
 Note	
 properties	
 after	
 applying	
 
accidental	
 
 Input	
 
 Note:	
 C3	
 
 Action:	
 Sharp	
 
 Output	
 
 Name	
 :	
 C#
5
Note	
 Model
 Return	
 Note	
 properties	
 after	
 applying	
 
accidental	
 
 Input	
 
 Note:	
 E3	
 
 Action:	
 Sharp	
 
 Output	
 
 Note	
 :	
 F3
6
Interval
 Distance	
 between	
 two	
 notes
Interval	
 Exercise
 Return	
 interval	
 name	
 given	
 two	
 notes	
 
 Input	
 
 First	
 Note:	
 C	
 
 Second	
 Note:	
 E	
 
 Output	
 
 Major	
 3	
 
 Input	
 
 First	
 Note:	
 E	
 
 Second	
 Note:	
 G	
 
 Output	
 
 Minor	
 3
Interval
 Melodies	
 (single	
 note)	
 
 Power	
 chords	
 (interval	
 played	
 
simultaneously)
Scales
 Major	
 Scale	
 
 Tone	
 
 Tone	
 
 Semitone	
 
 Tone	
 
 Tone	
 
 Tone	
 
 Semitone
10
Scales
 Major	
 Scale	
 
 1	
 C	
 
 2	
 D	
 
 3	
 E	
 
 4	
 F	
 
 5	
 G	
 
 6	
 A	
 
 7	
 B	
 
 1	
 C 11
SCALES	
 EXERCISE
 Create	
 a	
 scale	
 from	
 	
 a	
 root	
 note	
 
 Ex	
 C	
 
 C,	
 D,	
 E,	
 F,	
 G,	
 A,	
 B
12
Chord
 Three	
 or	
 more	
 notes	
 played	
 simultaneously	
 
 Traditional	
 western	
 harmony	
 
 Chords	
 are	
 constructed	
 on	
 intervals	
 of	
 thirds	
 
 C	
 E	
 G	
 (Major	
 chord)	
 
 C	
 E	
 G#	
 (Augmented	
 chord)	
 
 C	
 E	
 Gb	
 (Diminished	
 chord)	
 
 C	
 Eb	
 G	
 (Minor	
 chord)	
 
 C	
 E	
 G	
 B	
 (Major	
 Seventh	
 chord)	
 
 C	
 E	
 G	
 Bb	
 (Dominant	
 Seventh	
 chord)	
 
 C	
 Eb	
 G	
 Bb	
 (Minor	
 Seventh	
 chord)
Chord	
 Exercise
 Return	
 chord	
 quality	
 name	
 given	
 three	
 notes	
 
 Input	
 
 First	
 Note:	
 C	
 
 Second	
 Note:	
 E	
 
 Third	
 Note:	
 G	
 
 Output	
 
 Major

More Related Content

Learn music theory by creating a code model

  • 1. Fundamentals of western music theory Can we learn by creating a code model?
  • 2. Note Name (C, D, E, F, G, A, B) Pitch (1, 2, 3, 4, 5, 6, 7)
  • 3. Note Model Return Note properties based on name Input Name: C Output Name : C Pitch: 1
  • 4. Note (Accidentals) Name (C, C#/Db, D, D#/Eb, E, F, F#/Gb, G, G#/Ab, A, A#/Bb, B, C) Pitch (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1) Sharp (increase pitch by 1) Flat (decrease pitch by 1)
  • 5. Note Model Return Note properties after applying accidental Input Note: C3 Action: Sharp Output Name : C# 5
  • 6. Note Model Return Note properties after applying accidental Input Note: E3 Action: Sharp Output Note : F3 6
  • 8. Interval Exercise Return interval name given two notes Input First Note: C Second Note: E Output Major 3 Input First Note: E Second Note: G Output Minor 3
  • 9. Interval Melodies (single note) Power chords (interval played simultaneously)
  • 10. Scales Major Scale Tone Tone Semitone Tone Tone Tone Semitone 10
  • 11. Scales Major Scale 1 C 2 D 3 E 4 F 5 G 6 A 7 B 1 C 11
  • 12. SCALES EXERCISE Create a scale from a root note Ex C C, D, E, F, G, A, B 12
  • 13. Chord Three or more notes played simultaneously Traditional western harmony Chords are constructed on intervals of thirds C E G (Major chord) C E G# (Augmented chord) C E Gb (Diminished chord) C Eb G (Minor chord) C E G B (Major Seventh chord) C E G Bb (Dominant Seventh chord) C Eb G Bb (Minor Seventh chord)
  • 14. Chord Exercise Return chord quality name given three notes Input First Note: C Second Note: E Third Note: G Output Major