How Electronic Accordions Generate MIDI Data

Electronic accordions bridge acoustic playing techniques with digital synthesis by translating physical mechanical movements into standard MIDI protocol. This article explains how onboard microcontrollers process key contacts across the treble keyboard, interpret complex button matrices on the bass and chord board, and convert bellows air pressure into continuous controller data, routing distinct musical elements across dedicated MIDI channels in real time.

Treble Keyboard Detection

The treble side of an electronic accordion, whether arranged as a piano keyboard or a chromatic button layout, functions similarly to a standard MIDI controller. Underneath each key or button sits a sensor assembly, typically consisting of dual-contact rubber switches, optical sensors, or magnetic Hall-effect sensors.

When a player presses a key, the sensor detects the action. In dual-contact systems, the microcontroller measures the precise microsecond interval between the engagement of the first and second contact. This timing determines the velocity (how hard or fast the key was struck). The internal processor instantly translates this physical motion into standard MIDI Note-On commands with the corresponding note number and velocity value (0–127), transmitting the data primarily over MIDI Channel 1. Releasing the key sends a Note-Off command.

Bass and Chord Board Processing

The left-hand mechanism is considerably more complex due to the traditional Stradella or Free Bass mechanical layouts. The bass board contains dozens of tightly spaced buttons categorized into fundamental bass notes, counter-bass notes, and preset chord rows (major, minor, seventh, and diminished).

Instead of individual wires for every button, the bass board utilizes a matrix scanning circuit. The onboard microcontroller continuously pulses rows and reads columns to identify which switches are closed:

Because the system separates bass notes and chord notes onto distinct MIDI channels, performers can assign completely different virtual instruments to each section—such as an acoustic upright bass on the fundamental notes and a rhythm guitar or brass section on the chords.

Bellows Dynamics and Expression

A critical component of accordion performance is bellows control, which governs dynamics, volume, and articulation. Electronic accordions replace acoustic airflow over reeds with an internal differential pressure transducer or barometric sensor located inside the bellows chamber.

As the musician expands or compresses the bellows, the sensor measures changes in air pressure relative to the outside atmosphere. The microcontroller samples this pressure continuously and converts the physical resistance into MIDI Continuous Controller (CC) messages. Most commonly, this data is mapped to:

Because pressure is tracked independently of key strikes, players can initiate a note quietly and crescendo by pulling harder, accurately mirroring the acoustic instrument.

Data Merging and Transmission

The internal central processing unit collects data streams concurrently from the treble keybed, the bass/chord matrix, and the bellows pressure sensor. It merges these inputs into a single, synchronized serial MIDI stream.

This data is then formatted for real-time transmission through traditional 5-pin DIN MIDI ports, USB-MIDI interfaces, or low-latency wireless Bluetooth MIDI modules. This architecture enables the performer to independently drive sound modules, software synthesizers, and digital audio workstations across multiple channels simultaneously.