Il 05/01/2010 11:10, Mark Knoop ha scritto:
What about using a Makefile for the project which preprocesses the
included files (with sed for example) to comment out the midi block. It
could then uncomment the block again after compilation.
This seems the smartest solution.
Unfortunately, I'm a completely newbie with this kind of stuff.
Can you give me some hint?
I've decided to put all the \midi block on a single line, to make things
easier.
I should just tell sed to put a % in front of \midi
I'm doing a first try with a single file..
I've found this command which works almost as expected:
sed s/\midi/%\midi/ $"file.ly"
The problem is that it comments also this line:
\set Staff.%midiInstrument = #"acoustic guitar (steel)"
How can avoid that?
Thanks for help!
Federico