Generate NIN-inspired drum, bass, melody, arpeggio, or pad patterns offline
Lock one track and regenerate the others around it on the piano roll
Export finished patterns as .mid files for use in a DAW
Share a session by copying the URL that encodes the pattern in its hash
NIN MIDI Generator is a single HTML file that produces MIDI patterns inspired by the discography of the band Nine Inch Nails. You download one file, open it in a normal web browser like Chrome, Firefox, Edge, or Safari, and the whole tool runs locally inside the page. There is no install step, no server to set up, and no internet connection needed after the file is on your computer. The generator covers 14 NIN albums, from Pretty Hate Machine in 1989 through Ghosts VI: Locusts in 2020. Each album acts as a preset that sets a tempo range, a set of musical scales, a drum density, and a dissonance level, so picking an album steers the sound toward that record's character. You can generate seven kinds of tracks, including drums, bass, melody, arpeggio, pad or chords, and a full pattern that fills every track at once. The page shows an interactive piano roll where notes appear as color coded blocks. You can click to toggle notes on or off, drag to draw, right click to delete, scroll to zoom, and audition drum sounds by clicking pads. Each track can be locked, so you can keep a bassline you like and regenerate only the drums around it. Playback runs through the browser's built in Web Audio system, with three knobs for distortion, delay, and reverb, plus a real time waveform display. Finished patterns can be exported as standard .mid files for use in other music software, or as JSON snapshots that capture the full session including history. Sessions also save automatically to the browser's local storage, and patterns can be shared by copying a URL that encodes the pattern in its hash.
Generated 2026-05-22 · Model: sonnet-4-6 · Verify against the repo before relying on details.