FLYharp

a synthesizer played by the Drosophila visual system
loading the optic lobe…
what you see

Your camera, through 721 ommatidia. Then follow the image down the fly's visual system: each lens shows the same scene as one stage of the optic lobe represents it, live.

The shape down the left edge is the population at each stage of one optic lobe (FlyWire v783): 5,353 photoreceptors squeeze into 1,586 L1/L2 cells, then fan out to 4,687 ON/OFF medulla cells and 6,100 T4/T5. Per column that is 8 → 2 → 6 → 8: the lamina is the waist of the hourglass.

Inside the optic lobe

Every neuron in the model as a ball, the strongest synapses as sticks, lit live by the same simulation that plays the notes. Drag to turn, pinch or scroll to zoom, hover a ball to name it.

loading the network…
depolarisedhyperpolarisedsynapse pushing its target uppushing it downsticks fade toward the cell they drive · layout is schematic: each area is a curved sheet of the eye's 721 columns, cell types in sublayers, the map flipped by each optic chiasm
hyperpolarised · grey · depolarised (relative to a grey screen)pluckhyperpolarisation pluckbright = strung · click a map to string it · hover for what each cell does

Everything the instrument plays goes into a model of the fly's antennae and early auditory network, wired from FlyWire. As with the eye, each lens shows what one stage of the hearing pathway makes of the sound, live. Send the picture back into the eye from the Hearing tab.

picture features

Areas are FlyWire neuropils: each neuron sits where most of its input synapses are. The shape down the left edge is the population at each stage; arrows are the main area-to-area connections, thicker for more synapses, dashed blue where the net effect is inhibition. Each cell's preferred antenna and pitch is inherited from its excitatory inputs through the wiring, and a lens shows its cells' firing laid out by that preference.

The same lens over time: 40 Hz to 1.6 kHz, low at the bottom, time running right to left over 2.4 s, for each antenna.
depolarisationhyperpolarisation (octave down, swells in)bands: each area's pitch range · time runs right → left

Inside the auditory connectome

The ear network from FlyWire at its real place in the brain, seen from the front: Johnston's organ neurons, then three steps inward. Each ball is a neuron, the strongest synapses are sticks, and both light up live as the model hears the instrument. Drag to turn, scroll or pinch to zoom, hover a ball to name it.

loading the auditory network…
Johnston's organ2nd step3rd step4th stepactiveexcitatory driveinhibitory drive

The fly's visual system wired into its auditory system: what the eyes see, the optic lobe plays; what it plays, the antennae hear; and what they hear becomes the next thing the eyes see. Sight and sound in one loop, a synaesthesia built from two connectomes.

A schematic fly head seen from the front, live. Each area glows with its activity (relative to its own recent peak), and the dots running between them carry it on. Left and right are drawn alike: the model has one optic lobe, so both eyes show the same view.
1 the eye sees what the ears hear
2 the ears hear what the eye sees

Slide left to mix the stimulus or camera back in. Instruments and tempo are in the drawer; the lens in Hears sets which stage of hearing the eye is shown. Every change runs round the loop.

What am I hearing?

The network is the connectome-constrained model of the fly optic lobe by Lappalainen et al. (Nature 2024), the best of their 50-model ensemble. It has 45,669 neurons in 65 cell types and 1.45 million synapses, with wiring from the FIB-SEM connectome and unmeasured cell and synapse parameters fit so the network computes optic flow. It runs here in your browser, step by step (20 ms of fly time per step), driven by the stimulus or your camera through the photoreceptors.

Each "string" is a cell type. When its depolarisation in a region of the eye rises past threshold, relative to that type's own response range, it plucks a note. Pitch follows depth in the visual system: retina lowest, lamina, medulla, transmedulla, then the T4/T5 motion detectors highest. Pan follows the region's position on the eye, and loudness the size of the response. Every strung cell type has two strings: one for depolarisation and one for hyperpolarisation. The hyperpolarisation string plays an octave lower, darker, with a reversed envelope that swells in, so light-off and light-on responses sound like each other's shadow. Feedback from the medulla to the lamina is heard as timbre. In the model, about 40% of the synaptic weight onto L1–L5 comes from medulla-resident cells (C2, C3, Lawf and medulla interneurons contacting L-cell terminals). FlyHarp tracks that feedback current in each eye region: net inhibition damps the notes there, and net excitation brightens them. Each area of the visual system is its own instrument family, and each cell type a variant of it. A cell's envelope follows its fitted membrane time constant, so fast cells click and slow cells swell. Because the network has real integration time constants, a flash ripples through the layers over tens of milliseconds; slowing the tempo stretches that ripple into a melody.

The trained network has no gain control of its own. It is linear above threshold, so its responses grow in proportion to light and contrast, and its surrounds subtract rather than divide. The Gain control panel adds two stages that real fly eyes have and the model lacks: photoreceptors that adapt to their own mean light, and divisive normalization of the lamina and medulla by local contrast energy. They are additions to the trained model, not part of it. The Probe panel measures what they do to any cell type.

The eye can be the model's idealized flat lattice or the real one. Real eye places each of the model's columns where a real ommatidium looks, from a micro-CT map of a whole fly head (Zhao et al., Nature 2025): finer along the equator and middle of the eye, coarser at the rim. The wiring stays the same, so the motion detectors' preferred directions bend with the eye, as they do in the fly.

Code and model export: github.com/samuelling/FlyHarp. Model: flyvis (TuragaLab). Eye map: Zhao et al. 2025, github.com/reiserlab/eyemap_T4.

What is this?

FlyHarp is an instrument played by a fruit fly's brain. A model of the fly's eye, wired from its connectome, watches your camera; every time one of its cell types fires, a string plucks. Then the fly's own ears, wired the same way, listen to the music, and what they hear can be shown back to its eyes.

How to play

  1. Allow the camera when asked, then move, wave, or point it at something moving. Nothing leaves your device. No camera? Pick a stimulus instead.
  2. Open the controls with the tab on the right edge (or the Tab key): Stimulus sets what the eye sees, Instrument which instruments each part of the eye plays, Hearing what the ears listen to, Model the science settings.
  3. Slow the tempo to stretch the fly's milliseconds into melodies; try the ensembles for whole new sounds.
  4. Let someone else play it. The Hands tab links FlyHarp to other apps over the internet (Invisible Hands): a CV source can sweep its sliders, and the fly's activity streams back out as control signals.

The three views

What its Connectome Sees
The compound eye, one hexagon per facet (721 of them), and lenses that show the same scene at each stage of the visual system: light, then the lamina's contrast, ON and OFF channels, and the motion detectors. Below: the optic lobe in 3D, every neuron lighting up, and the cascade of notes by area.
What its Connectome Hears
The fly's antennae and early auditory brain listening to the instrument. Pick a picture of what it hears, and a lens for which stage of hearing draws it: from the antenna's ear (Johnston's organ) inward through the AMMC and wedge to the song areas. Below: the auditory network in 3D.
Synthesthesia
The loop closed: the eye sees only what the ears hear, so sight becomes sound becomes sight. A live map of the fly's head shows it all flowing.

What's real, and what's made up

Sources

Visual model: flyvis, Lappalainen et al. 2024 (TuragaLab). Whole-brain wiring and cell types: FlyWire v783, Dorkenwald et al. 2024 and Schlegel et al. 2024. Eye map: Zhao et al. 2025 (reiserlab/eyemap_T4). Code: github.com/samuelling/FlyHarp.