< Back to IRCAM Forum

OMlily: om->lily new options

Hello,

hoping it’s the place to ask about omlily, it’s probably a topic for Karim.
My aim is to generate multiple (hundreds) small music notation samples (staves) generated using OM, as images to be embeded in some svg files to represent graphs (using Morphologie lib).
In this perspective, I’d like to know if, in (or from) omlily, it would be possible:

  • to have other different paper size than A3 or A4 (i’d like small size suchh as A6, A8, A9 or so…) ?
  • to not compile to pdf but keep only .ly format, or to convert to .png ?
  • to not export tempo value(s), nor the composer, nor the title, but just the notes and staves ?

Such options may also be usefull, for instance, to produce some simple music exemples to be inserted in some musicology paper (as png files for instance).

Could these options be easily declared as lily-templates, or should I edit omlily source files (a fork to add new &key optional inputs to om->lily method), or edit directly .ly files using some shellscript of mine ?

Thank’s for your help.
Fred

1 Like

Dear Fred,

These are of course possible. You can start and tweak your templates starting from the templates included in the resources/lily-templates library folder.
Batch processing is also possible, However, in the lilypond preferences’ tab there are just two options of paper size. But this could be expanded to all sizes of course. For the time being it is not a priority, but will do this asap,
Now concerning lilypond output, it outputs of course both formats by default , ie. .ly and .pdf. You can of course tweak the the code’s command line in order to have whatever format you need. (see lilypond help).

Best
K