Music & Code: Creative Process
How making music and writing code share the same creative DNA.
Two Screens, Same Energy
I have two monitors. One usually has a code editor. The other has a DAW, a DJ set recording, or a YouTube mix playing. These aren't separate worlds — they're the same creative process wearing different clothes.
Patterns All the Way Down
Music is patterns. A four-on-the-floor kick drum is a loop. A chord progression is a data structure. A song arrangement is an algorithm: intro → build → drop → breakdown → build → drop → outro.
Code is the same. Functions repeat. Components compose. State machines transition. When I'm building a UI, I think in rhythm — spacing, repetition, variation, contrast.
The best electronic music producers think like engineers. The best software engineers think like artists.
Deep Work Needs a Soundtrack
I can't code in silence. My brain needs a low-level audio stream to stay in flow. Not podcasts — that's language, and language competes with code. Music, specifically instrumental electronic music, fills the space without stealing attention.
My recognizer has logged 545 unique tracks from my coding sessions. That's not a playlist — it's a map of my creative states:
- •Deep house (Da Africa Deep, Tripolism) → deep focus, architecture work
- •Progressive (&ME, Disclosure) → UI building, visual polish
- •Ambient/melodic (Caribou, Ben Böhmer) → writing, documentation
- •High energy (Alok, CamelPhat) → fixing bugs under deadline
Building the Music Recognizer
I built a tool that listens to my system audio and identifies tracks in real time. It started as a personal itch — I'd hear a great track during a DJ set and forget the name by the time I could search for it.
The tech stack:
- •Python for the core recognizer
- •Shazam's audio fingerprinting algorithm (via ShazamAPI)
- •SQLite for storing recognized tracks
- •Excel export for sharing playlists
- •Tkinter for a minimal GUI
It runs in my system tray. When I hear something good, it's already been identified and saved.
The Creative Loop
Whether I'm writing a function or a melody, the process is identical:
- 01Start with feeling — what's the vibe? What problem am I solving?
- 02Lay the foundation — basic structure, skeleton, rhythm
- 03Layer details — polish, effects, edge cases
- 04Step back — does this feel right? Does it flow?
- 05Iterate — adjust, refine, repeat
Code reviews are mixing sessions. Refactoring is remixing. Deployment is pressing release.
Why This Matters
I'm not saying every developer should make music (though you should try). I'm saying creativity is transferable. The patterns you learn in one domain unlock insights in another.
My music taste shaped my design sense. Dark, minimal, rhythmic. That's why this website looks the way it does — it's the visual equivalent of a late-night deep house set.