const notes = ['A', 'A#', 'B', 'C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'Ab', 'Bb', 'Cb', 'Db', 'Eb', 'Fb', 'Gb']; const chords = ['', '7', 'm', 'm7', 'maj7', 'dim', 'm7-5']; chords.map(ch => notes.map(n => n+ch)).flat().sort(() => Math.random() - 0.5).join(' ')