The Bol Processor can turn a recording (an audio file such as .wav, .mp3, .ogg, .flac, .m4a or .aiff) into a score written in its own notation (polymetric expressions). The score can then be played with any instrument of the Bol Processor, changed by hand, or used as material for grammars.
This page takes as an example a live performance of Liszt's La Campanella, transcribed into the data project -da.La_Campanella_Greiss of the examples.
The transcription works in two steps. First, a neural network trained on piano recordings listens to the audio and writes down the notes it hears, with their strength and the sustain pedal, as a MIDI file. Then the converter described on the page Importing MIDI files turns this MIDI file into a score, has the Bol Processor play it, and checks that it sounds like the original. The first step is designed for solo piano: see Recordings of other instruments.
What you need
Recordings are transcribed by the AI agent of the Bol Processor (Claude Code, with your own Claude subscription). The Import MIDI or MusicXML file button of data pages doesn't accept audio files, because the audio step needs tools that are not installed with the Bol Processor:
- Python 3, as for the import of MIDI files;
- the audio tools: the piano transcription model of Qiuqiang Kong and his colleagues at ByteDance (“High-resolution piano transcription with pedals by regressing onset and offset times”, 2021, trained on the MAESTRO collection of recordings of piano competitions), the libraries it needs (PyTorch, numpy), and librosa, which finds the beats in the audio. That's about 1 GB, downloaded once. The agent asks you before installing them. They go into the folder
AI_Claude/.transcribe, which updates of the Bol Processor don't touch.
Everything then runs on your computer: the recording is not sent anywhere. Listening to a recording takes about half its duration, then writing and checking the score takes a few minutes: less than 5 minutes for the 6 minutes of La Campanella on a recent Mac.
Transcribing a recording, step by step
- Put the audio file somewhere on your computer, for instance in your Music or Downloads folder.
- Click 🤖 Ask my AI agent on the home page of the Bol Processor (or on a data page), and type your request in your own words, for example:
Transcribe the recording Downloads/Liszt-La_Campanella-Greiss.ogg into a new project named La_Campanella - The first time, the agent tells you that the audio tools are missing and asks whether to install them. Answer yes and wait a few minutes.
- The agent transcribes the recording, writes the score in several versions, plays each of them with the Bol Processor and keeps the most faithful. It then tells you how faithful it is (see The result) and names the new project: a data file -da.La_Campanella and its settings -se.La_Campanella in the
ctestsfolder of your workspace, next to the examples. It never overwrites a file. - Open the data page and click PLAY, or ask the agent to play it.
You can also ask the agent to do something with the result: write it with a steady tempo, play it with Csound or SuperCollider instruments, extract a passage, or use it as material for a grammar.
Without the agent, the same program can be run in a terminal, from the bolprocessor folder: once python3 AI_Claude/.claude/skills/bp-transcribe/scripts/bptranscribe.py --setup-audio, then python3 AI_Claude/.claude/skills/bp-transcribe/scripts/bptranscribe.py FILE --name NAME. On Windows, type py instead of python3.
Only transcribe music you are entitled to use: your own recordings, or recordings in the public domain or under a free licence, such as the one below.
Example: La Campanella
The recording is a live performance of Liszt's La Campanella by Romuald Greiss on a piano built by Budynowicz in 1850, in the public domain on Wikimedia Commons: Liszt-La_Campanella-Greiss.ogg (6 minutes 12 seconds). It is a difficult case: very fast passages, wide leaps of the right hand, trills, a free tempo, the sustain pedal almost all the time, and an old piano in a hall with some reverberation.
From the audio to notes
The transcription model found 5164 notes and 510 changes of the sustain pedal (pressed or released), each note with its velocity (the strength of the key stroke, 1 to 127). Librosa found the beats of the performance in the audio.
The notes come out in G minor: the high note repeated all through the piece is D, and the final chord is G–B♭–D (written G, A#, D in the score). The model names the nearest key of a piano tuned to today's pitch (A = 440 Hz): it doesn't know the pitch to which the instrument was tuned. To hear the piece a semitone higher, put _transpose(1) before the first line of the score.
General knowledge about a piece can help to read a transcription, or to guide the AI agent, but it can also lead to errors. La Campanella is known to be in G♯ minor. Asked to “correct” the transcription accordingly, the agent would have moved every note of a performance that really sounds in G minor: this recording was made on an old piano tuned to a different diapason. Likewise, the metre of the printed music, tried as a guide, did not help to follow this performance (see Limitations). What is measured in the recording comes first; knowledge gives hypotheses, to be checked against the measurements.
From notes to a score
A pianist doesn't play like a metronome. The converter follows the performer, as for a MIDI file played by a person: it finds the beats, and writes each group of two beats with its own tempo (_tempo()), so that the score stays in step with the performance from beginning to end. It tries the beats found in the audio, and beats found from the notes themselves with several periods (390 to 650 ms here), because the result depends much on the exact period. Each version is played by the Bol Processor and compared with the notes of the recording.
The best beats, and those of the recording, are then used again to write versions with more structure, one of which is kept if it is as faithful as the best version:
- Notes held by the pedal. When a key is released while the sustain pedal is down, the note goes on sounding until the pedal is released: the moment the finger left the key can't be heard. The converter makes such a note last until the next note, as long as the pedal is held. The sound is the same, but the notes now follow each other in lines and chords, instead of being separated by tiny rests and tied across bars. This applies to recordings and to MIDI files that use the sustain pedal.
- Regular divisions of the beat. Each beat is divided into 2, 3, 4, 5, 6, 8 or 12 equal parts, the simplest division that fits all its notes within 45 ms. Five notes played almost evenly in one beat are written as a quintuplet,
{1, A B C D E}. Before, each note took the simple fraction nearest to it, so that four notes played almost evenly came out as 1/4, 1/3, 1/6… They are now written{1, A B C D}: four notes in one beat. When this makes the timing less faithful (see Limitations), the version without it is kept: this happened with La Campanella, whose score uses the beats of the recording and keeps the notes where they were played. - Velocities averaged over groups. The velocities given by the model are estimates: a pattern played evenly comes out with small random differences, which gave a
_vel()before almost every note. Consecutive notes of a voice whose velocities differ by no more than ±8 from their mean now share that mean, and a single_vel()is written for the group. The value shared by most voices of a line is written once before it:_vel(71) {1, …}applies to all its fields and to the following lines, until another one. A chord whose notes are much stronger than one another, such as a melody note above its accompaniment, keeps the velocity of each note. This is done by default for recordings only (MIDI files played on a keyboard have real velocities), and can be changed by asking the agent, for instance “average the velocities within ±12”, or “keep every velocity”.
Why not _volume(), which could set the loudness of whole passages? It changes the volume of the MIDI channel (controller 7), which applies at once to all the notes sounding at that moment, including those held by the pedal, so that a decaying chord would suddenly get louder or softer. And on a piano, the velocity also changes the timbre: a note struck hard is brighter, not only louder. Velocities are therefore kept, but averaged.
For example, two beats of a trill on D♯7 and D7, before and after. Before, the trill was written as two voices, one for each note, with a _vel() before every note, and seven notes of a descending chromatic scale went on in other voices, tied from the previous line (&C7…) and padded with rests. These seven notes were released while the pedal was down: they now end at the next note, before this line, and the trill is a single line with two velocities:
_tempo(17/10) {2, _vel(72) {9/16,D#7} 1/16 _vel(65) {5/16,D#7} _vel(69) {11/48,D#7} _vel(79) {13/48,D#7} _vel(78) {11/48,D#7} _vel(81) {1/3,D#7}, _vel(72) {1/3,&D7} _vel(65) {5/12,D7} _vel(70) {5/16,D7} _vel(69) {13/48,D7} _vel(81) {11/48,D7} _vel(84) {13/48,D7} _vel(80) {1/6,D7}, _vel(62) {2,&C#7&}, _vel(77) {7/6,&C7} 5/6, _vel(91) {7/6,&B6} 5/6, _vel(87) {7/6,&A#6} 5/6, _vel(71) {7/6,&A6} 5/6, _vel(81) {7/6,&G#6} 5/6, _vel(82) {7/6,&G6} 5/6}
_tempo(17/10) {2, _vel(72) {1/3,D#7} {7/24,D7} _legato(20) {1/8,D#7} _legato(0) {1/3,D7 D#7} _legato(20) {1/12,D7} _legato(0) {1/6,D#7} _legato(20) {1/12,D7} _legato(0) {1/6,D#7} _vel(82) _legato(20) {1/12,D7} _legato(0) {1/3,D#7 D7}}
Each line is one or two beats ({1, …} or {2, …}), with its tempo; fields separated by commas are voices played together; & ties a note across lines; a fraction alone is a rest; _switchon(64,1) and _switchoff(64,1) press and release the sustain pedal.
The result
The agent plays the score with the Bol Processor (to a MIDI file) and compares it note by note with the notes heard by the model. The first version of -da.La_Campanella_Greiss, made on 30 November 2026 with the same beats, is compared here with the current one:
| 30 November | Now | |
|---|---|---|
| Size of the score | 145 KB | 97 KB |
_vel() | 6545 | 2386 |
Ties (&) | 3184 | 1746 |
| Lines (tempo marks) | 329 (329) | 378 (329) |
| Notes found in the replay | 5162 of 5164 | 5164 of 5164 |
| Onsets within 30 ms | 95.5 % | 96.3 % |
| Ends of the sound within 30 ms | 88.8 % | 86.9 % |
| Pedal changes | 504 of 510 | 504 of 510 |
| Mean difference of velocity | 0 | 2.7 |
“Onsets within 30 ms” means that the note starts less than 30 thousandths of a second away from where the pianist played it, a difference no one can hear in a fast passage (the Bol Processor places notes on a grid of 10 ms). The “end of the sound” is the end of the note, or the release of the pedal if the pedal was holding it: the moment the key was released no longer counts, since it can't be heard.
The score is a third smaller, with a third of the _vel() and about half the ties, and it is as faithful: its onsets are slightly closer, its ends of sound slightly less close. It has more lines because long groups of beats are now cut into bars of one beat where fewer notes cross them.
Remember what this score is: a faithful record of this performance, including its tempo changes (a tempo mark every two beats), not Liszt's score. It has no measures, no key signature, and the voices are the lines that the converter could follow, not those of the printed music. It is also a record of what the model heard: in fast or loud passages it may miss a note or add one from the resonance of the instrument. Listen to it and compare with the recording.
Recordings of other instruments
The model was trained on piano only, and it hears every instrument as if it were a piano. To measure what this means, the same piece (a minuet produced by -gr.Mozart, 751 notes in 78 seconds, two voices) was played by several instruments of the Bol Processor's Csound orchestras 0-default.orc and Beethoven.orc, recorded as audio files, and transcribed:
| Instrument | Notes found | Notes written that are right |
|---|---|---|
| Piano (recordings of a Yamaha grand, Salamander samples) | 99.9 % | 98.8 % |
| Synthetic brass | 75 % | 89 % |
| Synthetic bowed string | 52 % | 97 % |
| Flute (recordings, University of Iowa samples) | 29 % | 97 % |
| Violin (recordings, University of Iowa samples) | 24 % | 81 % |
| Synthetic plucked string | 17 % | 87 % |
“Notes found” is the share of the 751 notes that the model wrote at the right pitch, starting within 50 ms of the right time; “notes written that are right” is the share of the notes it wrote that are in the music. With the piano, a single note was missed. With the other instruments, most of what the model writes is right, but it leaves out most of the notes: those whose sound doesn't start and decay like a piano's. The synthetic brass, whose attack is sharp, does best, but 50 of its notes were also written an octave away. In every case, including the piano, the model took the reverberation for the sustain pedal and added 28 to 64 pedal changes that nobody played.
These recordings are much easier than real ones: no noise, no other instrument, a steady pitch, and the same notes for each instrument. So, to answer the question:
- Solo piano, including old pianos, live recordings and the sustain pedal: yes.
- Another instrument alone (harpsichord, guitar, harp, flute, violin, voice…): no, not reliably. A large part of the notes is missing, even from a clean recording. Instruments whose pitch slides or shakes (vibrato) are written, at best, as a series of separate notes.
- Several instruments, or piano with a voice or an orchestra: no. Everything is written as a single piano part, with many missing and false notes.
For such recordings, use a transcription program made for them that writes a MIDI file, then bring this file into the Bol Processor with the button Import MIDI or MusicXML file of a data page, checking “played by a person” (see Importing MIDI files). Some of these programs transcribe any single instrument, including the bends of its pitch, which the Bol Processor imports as _pitchbend(); others first separate the instruments of a mix into tracks. None has been tested with the Bol Processor yet, and the result should be checked by listening. The AI agent can help you find and install one.
Limitations
- The notes, their velocities and the pedal are what the model heard. Its velocities are estimates, and it may miss notes in fast or loud passages, or add notes coming from the resonance of the piano, from noise, or from a hall with a long reverberation, which may also be taken for the pedal.
- Only the sustain pedal is heard. The soft pedal (una corda) and the sostenuto pedal are not transcribed.
- No measures, key signature or time signature are recovered: the score reproduces the timing of the performance, with a tempo every two beats. With La Campanella, beats of about 0.62 s, found in the performance, put 97 % of the onsets within 30 ms. Beats of 0.93, 0.47 and 0.31 s, tried because the piece is said to be in 6/8 (a hypothesis from general knowledge, see From the audio to notes), put only 78 to 90 % of them.
- Fast ornaments (trills, chromatic runs) keep fine divisions of the beat, such as 1/12, because their notes don't fit simpler ones.
- Over a long piece, regular divisions of the beat sometimes make the dates of the Bol Processor drift by 20 to 30 ms, as fine fractions add small errors. The converter sees it when it compares the versions, and then keeps the notes where they were played.
