Saving the volume in musicxml?

Hi Marc,

Is there a way to save the volume of the notes played in musicxml?

I have some code like this:
s = Session().run_as_server()
s.start_transcribing()
s.fork(…)

performance = s.stop_transcribing()
score = performance.to_score(time_signature=“4/4”)
music_xml = score.to_music_xml()
music_xml.export_to_file(“my_music.xml”)

I can not find anything in the docs.

Thanks for your help.

The reason you didn’t find anything is that it’s not implemented yet! That said, I was planning on pushing out an update fairly soon that allows you to attach dynamics to notes. And I will also look to include the ability to include note velocity hints.

Thanks Marc. I wrote the information with midiutil to a midifile and converted this to mp3.