MATLAB Sheet Music to Audio

MATLAB Sheet Music to Audio

MATLAB group project converting sheet music into audio using image processing techniques.

bass area
bounds detections
combined area
note detection
treble area

Our group developed a MATLAB application that converts sheet music images into sound. The project combined black-and-white image processing, separation of treble and bass regions, positional note labelling and timing estimation to produce an MP3 file for assessment.

The demonstration used sheet music for Can You Hear the Music from Oppenheimer.

Stack: MATLAB · Focus: Optical music recognition and audio generation

Problem and scope

The task was to turn information represented visually on a musical score into an audio output. This required identifying notes within the image and determining when those notes should play.

We used image geometry as the basis for recognition: note positions within designated regions informed labelling, while spacing along the score informed playback timing.

Processing pipeline

StageApproach
Image preparationConvert the sheet music image into a black-and-white representation
Region separationDivide the image into sections for the treble and bass parts
Note labellingLabel notes according to their position within designated zones or on ledger lines
Timing estimationUse the distance between notes relative to the bar endpoint to estimate when each note should play
Audio outputGenerate sound from the interpreted note information and export an MP3

Separating the treble and bass regions allowed those parts of the score to be handled individually. The note-labelling step accounted for both the designated zones and notes positioned on ledger lines.

Playback timing was estimated from the horizontal spacing of notes relative to the end of the bar. This connected the spatial layout of the sheet music to the sequence of notes in the generated audio.

Demonstration and outcome

The group used the pipeline to convert the demonstration sheet music into an MP3, which was submitted for assessment.

The project brought image preparation, region-based recognition and timing estimation together into a workflow with an audible result. It provided a practical application of image processing in MATLAB, translating visual note information into a different output format.