David's public blog

Today, I release a command line utility to handle transformations and processing of music scores without opening them.

I have been working with digitalization of trumpet resources, and that generates A LOT of files, and sometimes we need to modify and analyze them in bulk using scripts. Of course we can create python scripts for everything… But instead I decided to create a command line tool to do that work in a more isolated manner. It is called notare and can be installed with Python using pip. It works well on Windows/Linux/Mac (but I am only placing some Windows examples below)

Here are some links:

You can install it:

pip install notare

And you should be ready to run. Here are some of the functionalities:

And of course some examples of how to use. Check the links for more information:

Windows:

#Display the score in the browser/print it
type tests\data\BrahWiMeSample.musicxml | notare show 
type tests\data\BrahWiMeSample.musicxml | notare show --print

#Extract different measures and parts to create a new file 
type tests\data\MozartPianoSonata.musicxml | notare extract --measures "1-3" | notare show 
type tests\data\MozartPianoSonata.musicxml | notare extract --measures "1,3" | notare show 
type tests\data\MozartPianoSonata.musicxml | notare extract --part-number 0 | notare show #show all parts
type tests\data\MozartPianoSonata.musicxml | notare extract --part-number 1 | notare show
# Show metadata
type tests\data\MozartPianoSonata.musicxml | notare metadata #all metadata
type tests\data\MozartPianoSonata.musicxml | notare metadata --composer
type tests\data\MozartPianoSonata.musicxml | notare metadata --clef --key-signature --composer --title

# Change metadata
type tests\data\c_scale.musicxml | notare set-metadata --composer "J. Doe" | notare metadata --composer

# Analysis of metrics on the score
type tests\data\MozartPianoSonata.musicxml | notare analyze

More functionality is coming

I will keep adding in this post additional functionality!

#Music #Musicxml #Notare #Python