Tool to extract, analyze, and convert MIDI files into detailed notes, readable scores, and fully usable musical data with accuracy
Midi Notes - dCode
Tag(s) : Music
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
MIDI music actually refers to a MIDI file or a set of musical data encoded using the MIDI (Musical Instrument Digital Interface) protocol. It is not an audio signal, but a sequence of instructions describing musical events: notes, durations, intensities, instruments and tempo.
A MIDI note is a numerical representation of a musical event in the MIDI protocol. It does not contain audio, but instructions intended for a synthesizer.
A MIDI note is defined by several parameters:
— Pitch (note/pitch): encoded by a note number ranging from 0 to 127
Example: 60 often corresponds to C4 / Middle C
— Velocity: attack intensity, ranging from 0 to 127
— MIDI channel: from 1 to 16, used to target an instrument or voice
The duration of a note is not stored directly: it is determined by the time difference between a Note On and a Note Off message.
A MIDI note is therefore a control data, not a sound. The final audio depends on the synthesizer used
A MIDI note extractor is a tool that transforms MIDI data into usable representations in the form of notes.
It can be used to convert a MIDI file into sheet music or to analyze musical structures.
The MIDI protocol encodes information as binary messages transmitted serially, typically using 1 to 3 bytes.
A note is mainly represented by a Note On or Note Off message:
— Status byte: 0x8n (Note Off) or 0x9n (Note On), where n represents the MIDI channel (0 to 15, commonly used notation)
— Data byte 1: note number (0 to 127)
— Data byte 2: velocity (0 to 127)
Example: 903C64 means Note On on channel 0 (often considered channel 1 in user notation), note 60 (C4 / Middle C) (3C in hexadecimal equals 60 in decimal), velocity 100 (64 in hexadecimal equals 100 in decimal)
In the MIDI protocol, channels are used to separate multiple instrument streams. There are 16 channels (numbered 1 to 16, but encoded as 0 to 15).
Drums are fixed to channel 10 in the General MIDI standard; this channel does not contain pitched notes but is used for percussive elements.
The conversion of a MIDI note number is based on Euclidean division by 12:
— The octave corresponds to the quotient (integer part) minus 1
— The note corresponds to the remainder (modulo 12):
| 0 | C | 1 | C# | 2 | D | 3 | D# | 4 | E | 5 | F |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 6 | F# | 7 | G | 8 | G# | 9 | A | 10 | A# | 11 | B |
dCode retains ownership of the "Midi Notes" source code. Any algorithm for the "Midi Notes" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Midi Notes" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Midi Notes" or any other element are not public (except explicit open source licence). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Midi Notes" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source (Creative Commons CC-BY free distribution license).
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Midi Notes on dCode.fr [online website], retrieved on 2026-05-22,