I built a music sequencer with artificial neurons. The first result sounded as though the drums, bass and melody had agreed to meet, then gone to different studios. That was useful feedback.
The working Python prototype, NeuroPulse, now makes three short electronic sketches. You can hear them below. The important detail is that the neurons do not write the whole song: I wrote the musical hooks and gave the network a smaller, more useful job.
Hear the three NeuroPulse demos
These are direct WAV renders from the prototype, made with the same starting seed and a SoundFont. They are sketches rather than finished releases. Press play before reading the explanation; the explanation has fewer drums.
A steady house groove with a written call-and-response melody.
A faster pulse, a repeated bass figure and a rising synth hook.
Slow pads and a few chime notes, with no drum part.
From a fruit fly to artificial neurons
In my earlier fruit fly music experiment, a program used reconstructed neural wiring from a fly brain as part of a larger composition system. NeuroPulse takes a different route: I designed a small network of artificial neurons and its connections myself. It uses no fruit fly data and no trained text-to-music model.
Each neuron has a job such as kick, bass, chord or lead. A connection can encourage or suppress another neuron after a short delay. The model is deliberately simple. It is inspired by neural behavior, not a simulation of a complete brain.
How a simulated neuron becomes a musical event
NeuroPulse uses a simplified leaky integrate-and-fire model. Input raises a neuron's activity; some activity fades; crossing a threshold produces a spike. The neuron resets and waits briefly before it can fire again. This basic threshold-and-reset idea is described in the open Neuronal Dynamics textbook.
| Part | What it does in NeuroPulse |
|---|---|
| Bias and threshold | Set how readily a neuron fires. |
| Leak and recovery | Let activity fade and prevent immediate repeat firing. |
| Connection weight | Encourage or suppress another neuron. |
| Connection delay | Move that influence to a later sixteenth-note step. |
| Random seed | Make a run reproducible when the settings stay the same. |
The program calculates spikes on a sixteenth-note grid. It then places any allowed neural accents inside an arrangement. A spike is an event in the software; it is not a recorded biological nerve signal.
Why the neurons don't write the hook
My first version let the network influence too many musical events. It made notes, but a collection of notes is not automatically a piece anyone wants to replay. The network was remarkably consistent about proving that point.
So I wrote a short repeating hook, chord loop and main groove for each style. The neurons now make bounded decisions at phrase endings: a drum or hi-hat fill in the dance sketches, or an extra quiet chime in Ambient. The result starts with its strongest section instead of waiting through an intro. It also makes the experiment easier to hear: the musical foundation stays stable while the accents can change.
| Written by me | Influenced by the network |
|---|---|
| Chord changes, bass notes and lead hooks | Whether selected phrase-ending accents appear |
| Main kick, snare and hi-hat patterns | Timing relationships between simulated neurons |
| Three distinct style presets | Small variations when settings or the random seed change |
Calling these tracks “composed by artificial neurons” would give the neurons far too much credit. They have not complained about the correction.
What the prototype can do now
The compact desktop editor lets me change tempo, length, seed, sounds, neuron settings and connection weights or delays. I can save a preset, render one style, or create all three. The output is one WAV per style. MIDI is only a temporary step before the SoundFont renderer produces the audio file.
There is also an optional plasticity setting: connection weights can shift within fixed limits according to recent spike timing. That is an experiment with changing relationships, not evidence that the program learns taste. It does not score its own songs, train on recordings or remember improvements after a render. In the demos above, plasticity was off.
NeuroPulse is currently a Python prototype, not a browser instrument or a publicly released music tool. It has no live playback or visual wiring editor yet. A seed can make the same setup repeatable, but a convincing song still depends heavily on the authored melody, rhythm, sounds and mix.
What this experiment shows
A small spiking network can be connected to a real music-making workflow. These demos show that the software runs, renders audio and lets neural activity influence constrained musical details. They do not show that neural connections improve music compared with a carefully written pattern or a simpler probability rule. That would need matched listening tests.
For now, the most useful finding is practical: give the network a musical frame, then listen for the moments it adds something worth keeping. Apparently even artificial neurons benefit from a good editor.