NeuroPulse: Making Electronic Music with Artificial Neurons

I built a Python music sequencer with simulated neurons. Hear three electronic sketches, then see which parts the network changes and which parts I wrote.

Hear three NeuroPulse demos and see how a Python neuromorphic sequencer uses artificial neuron spikes to add variation to written electronic music hooks.

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.

Deep House

A steady house groove with a written call-and-response melody.

Acid Trance

A faster pulse, a repeated bass figure and a rising synth hook.

Ambient

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.

PartWhat it does in NeuroPulse
Bias and thresholdSet how readily a neuron fires.
Leak and recoveryLet activity fade and prevent immediate repeat firing.
Connection weightEncourage or suppress another neuron.
Connection delayMove that influence to a later sixteenth-note step.
Random seedMake 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 meInfluenced by the network
Chord changes, bass notes and lead hooksWhether selected phrase-ending accents appear
Main kick, snare and hi-hat patternsTiming relationships between simulated neurons
Three distinct style presetsSmall 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.

Questions & Answers

What is a neuromorphic music sequencer?

It is a sequencer that uses a model inspired by neural activity to influence musical events. NeuroPulse simulates simple spiking neurons and uses their activity for selected arrangement variations.

Can artificial neurons make music?

They can trigger or influence musical events, but that alone does not make a convincing composition. In NeuroPulse, I wrote the hooks, harmony and main rhythms; the simulated neurons can add small fills.

Does NeuroPulse use a real brain?

No. NeuroPulse uses a small configurable network of simulated neurons. My separate FlyWire Composer experiment used reconstructed fruit fly brain wiring.

How does NeuroPulse generate rhythms?

Each simulated neuron accumulates input, loses some activity over time and fires after reaching a threshold. The program checks those firing events at selected phrase endings and can add a bounded rhythmic accent.

Does NeuroPulse learn to write better songs?

No. An optional plasticity setting changes connection weights during a render, but it does not evaluate musical quality, train on recordings or retain learning between runs.

What does NeuroPulse export?

The Python prototype renders one WAV file per selected style. Its three current presets are Deep House, Acid Trance and Ambient.

Keywords: neuromorphic music sequencer • neuropulse • spiking neural network music • artificial neurons music • generative electronic music • leaky integrate-and-fire sequencer • algorithmic composition • python music sequencer • synaptic plasticity music