See the Pen Musical Chord Progression Arpeggiator by Jake Albaugh (@jakealbaugh) on CodePen.