DJ Feli Fel
Pick a key and a mode. It writes a four-bar chord progression, then a melody that follows the rules.
CI
GV
Amvi
FIV
The harmony
Each mode has a handful of progressions that suit it, like I–V–vi–IV in major or i–VI–III–VII in minor. Chords are triads stacked from the scale, so their quality (major, minor, diminished) falls out of the mode.
The melody
Strong beats land on the nearest chord tone. Between them the line moves by step, leaps a third now and then, and rests once in a while. The last bar settles on the root of its chord.
The sound
Everything is synthesized live with the Web Audio API: a triangle lead, a sine bass, and a kick and hi-hat made from an oscillator and a burst of noise. No samples.