Skip to content

DataBooth/digital-music

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

digital-music

There are a few Python tools and libraries that can help with digitising scanned music scores and converting them to playable digital formats:

Optical Music Recognition (OMR)

For converting scanned sheet music images to digital formats:

  • SheetVision: An open-source Python library for optical music recognition. It can detect musical elements in scanned scores and output to MIDI format[5]. (SheetVision)[https://github.com/cal-pratt/SheetVision]

  • Audiveris: An open-source OMR system written in Java, but with Python bindings available. It can convert scanned scores to MusicXML format.

Digital Music Formats

Once you have the music in a digital format, you can work with it using:

  • Music21: A powerful Python toolkit for computer-aided musicology. It can parse, analyze, and manipulate symbolic music data in various formats like MusicXML and MIDI[2].

  • Abjad: A Python API for formalized score control. It allows you to build up complex music notation programmatically[2].

  • LilyPond: While not Python-specific, LilyPond is a music engraving program that uses a text-based input format. Python can be used to generate LilyPond files[4].

Audio Playback

To play back the digitised music:

  • FluidSynth: A software synthesiser that can render MIDI files to audio. Python bindings are available.

  • pygame: Has MIDI playback capabilities and can be used for simple audio output.

Integrated Solutions

Some projects aim to provide end-to-end solutions:

  • cadenCV: An optical music recognition system written in Python that can read sheet music and sequence a MIDI file for playback[6].

  • music-sheet-digitisation: A project aiming to digitise music sheets into playable audio files using Python and AI techniques[1].

While there isn't a single comprehensive solution, combining these tools can allow you to go from scanned images to digital notation and audio playback. The process typically involves:

  1. Using OMR to convert scans to a digital format (e.g., MusicXML or MIDI)
  2. Processing and manipulating the digital score with libraries like Music21
  3. Rendering the score to notation (e.g., with LilyPond) or audio (e.g., with FluidSynth)

OMR technology is still evolving, and manual correction may be needed for complex scores.

The accuracy of the digitisation will depend on the quality of the original scans and the complexity of the music notation.

References:

Public Domain sheet music

Some excellent sources for public domain sheet music for testing purposes:

  • Musopen: A non-profit organization that provides free recordings, sheet music, and textbooks without copyright restrictions. You can find a wide variety of classical music scores available for download. Musopen [1].

  • IMSLP (International Music Score Library Project): This is one of the largest collections of public domain music scores. It includes thousands of works by various composers, and you can search by genre, composer, or instrumentation. IMSLP [6].

  • Choral Public Domain Library (CPDL): This site focuses specifically on choral and vocal music in the public domain. It offers a searchable database of scores and MIDI files. [2].

  • Library of Congress: The Library of Congress has numerous digital historical sheet music collections, including various genres and periods. You can explore their collections for public domain music. [2].

  • Sheet Music International: A repository that specializes in free classical sheet music for various instruments and ensembles, including piano, orchestra, and vocal music. [5].

These resources provide a wealth of material that can be used to test your music digitization and playback software effectively.

References:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published