Hi there,
I need scores in .png format, for that reason I wanted to write the score to .ly file, so that I could compile it as .png file.
But when I evaluate:
s = Session()
violin = s.new_part(“Violin”)
pit=[random.randint(55, 79) for i in range(50)]
for pitch in pit:
violin.play_note(pitch, 1, 0.5)
performance = s.stop_transcribing()
performance.to_score().export_lilypond(“not1.ly”)
I get a lily file like this:
LilyPondFile(comments=[], includes=[], items=[<Block(name=‘header’)>, <Block(name=‘layout’)>, <Block(name=‘paper’)>, <Block(name=‘score’)>], lilypond_language_token=LilyPondLanguageToken(), lilypond_version_token=LilyPondVersionToken(‘2.20.0’))
Is there a problem with export_lilypond method?