Relaxation Labeling · music you hear

HRLized

A melody is a labeling problem. So the same HRL engine that labels galaxies and genomes now composes two voices at once — a melody and a bass, kept consonant — with rhythm. Press play. A tiny answer to Suno, on one engine.

← the portfolio The HRL Lab Beat the Engine Chess Maestro
melody bass wider block = longer note · shaded = chord tones
mood
tempo 104 bpm
adventurousness 0.5
voice
your progression I–V–vi–IV
key
How it composes. Sixteen beats over your chosen progression (type Roman numerals — I ii iii IV V vi vii — into the box, e.g. one of your own songs' progressions, in any key). Two voices are relaxed in one field: the melody (16 objects) and the bass (16 more), the eight scale pitches as labels. A pairwise smoothness factor rewards stepwise motion in each voice; a per-beat prior pulls the melody toward the bar's chord tones (and the bass toward its root), first/last beats anchored to the tonic; and a cross-voice consonance factor between the aligned melody and bass beats keeps the two in agreement (thirds, fifths, sixths reward; seconds and sevenths suppress). A second relaxation over onset / hold labels gives the melody its rhythm. Then Web Audio plays it. Every 🎲 Generate reseeds the prior — a new tune each time. It's the real engine (hrl_generic), singing in two parts.

🎧 The human original — Manny Glover

The engine relaxes toward music; here's the real thing that inspired it — the human songwriter behind the portfolio. Seed the generator above with one of these songs' progressions to hear the two meet.