JavaScript Jazz Generator

This Javascript application takes in a string input of any chord and generates a jazzy, bebop-style melody using one of multiple common techniques or can even generate a melody based on a random combination of them. It's exremely flexible in the form of input that it can handle. It also plays audio of the generated melody! Type a jazz chord into the form below, then input the key, select style and direction, and click "Get Bebop!"
Ex: "EbMaj7" and "D# Major 7th" will both produce the same notes but the first will show the accidentals as flats
and the second will show them as sharps.



Chord: | Ex: Db Major 7th, Emin7, Ab minmaj9, F aug

Key (Optional): | Ex: D, A minor, Bb major, G#-
Style:
Direction: