Member-only story
How To Make a Piano App in Flutter
Exploring MIDI and the beauty of making music

From the moment we are born up until we grow old, music surrounds us. It is the universal language of mankind.
But many of us don’t have a fancy instrument or a naturally gifted voice. We are restricted to only clicking with others’ feelings instead of expressing our own through music. We feel that it’s intimidating to create something more than a simple foot-tapping beat.
In reality, making music is easier than it looks. You don’t even need to have a musical ear to start.
In this tutorial, you will learn how to create your own virtual instrument.
Our aim is to not only create it but to also understand how it works.
What Is MIDI?
MIDI, which stands for “Musical Instrument Digital Interface,” is a system that allows electronic musical instruments and computers to send instructions to each other.
Since we are programmers, we can think of MIDI as a simplified programming language having only the NOTE ON
and NOTE OFF
statements.
Structure of a MIDI message
A MIDI message is a plain three-byte binary number.