Projects2025
MNIC
Musical mnemonics generated end to end, from lyrics to a mixed track with vocals and harmony, in 30 to 45 seconds on a laptop.
- With
- Ajibola Ajani, Angelo Farfan
- Stack
- PythonClaude APIBarklibrosapretty_midiFluidSynth

People remember melodies better than lists. MNIC takes a piece of structured knowledge and turns it into a short song with vocals and harmony, so the thing you need to memorise arrives as a tune. We built it at AI@MIT in winter 2025.
The pipeline
Lyrics come from the Claude Sonnet 4 API, constrained to rhythmic rhyme
schemes (AABB, ABAB) or acrostics. The output is a mnemonic.txt plus a JSON
file of metadata that the later stages read.
Vocals are synthesised with Suno’s Bark text-to-speech at 24 kHz, with the lyrics mapped to syllables and the prompt conditioned so the speech has a usable rhythm.
librosa then analyses the vocal track: pyin() for pitch, beat_track() for
tempo, chroma_cqt() for key. Those three numbers drive the accompaniment.
Harmony is a I–IV–V–I progression generated with pretty_midi in the detected key and tempo, rendered through FluidSynth.
The last stage mixes vocals and accompaniment in NumPy, with Muspy for the symbolic side, normalises, and writes a 44.1 kHz file.
A full generation takes 30 to 45 seconds on an M4 MacBook, which is fast enough to use while studying rather than as a batch job.