creating a matrix of notes and chords