Skip to content

LucasVance/music-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Music Generator

The Big Picture / Chord Chart

I IIm IIIm IV V VIm VIIdim
C Dm Em F G Am Bdim
C# D#m Fm F# G# A#m Cdim
D Em F#m G A Bm C#dim
D# Fm Gm G# A# Cm Ddim
E F#m G#m A B C#m D#dim
F Gm Am A# C Dm Edim
F# G#m A#m B C# D#m Fdim
G Am Bm C D Em F#dim
G# A#m Cm C# D# Fm Gdim
A Bm C#m D E F#m G#dim
A# Cm Dm D# F Gm Adim
B C#m D#m E F# G#m A#dim

Code flowmap

Chord generation

  1. Create empty array of objects (chords) that will store chord progression data
  2. Start with I chord
  3. Generate random number that will correspond to a chord later
  4. Generate random rest time of factors of 2 with a max of 8
  5. Store this in the chords array
  6. Repeat steps 1-4 x many times

Chord synthesization