Music-spelling is a library for the automatically spelling of pitches and rhythms. It's available from https://github.com/ntrocado/music-spelling. Thank you!