Il 05/01/2010 12:23, Federico Bruni ha scritto:
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?

solved, this is the right command:

sed 's/\\midi/%\\midi/' $"file.ly"

Now the challenge is how to make it work:
* on all the included files present in book.ly
* when I compile book.ly
* and possibly telling to revert the edit after lilypond has finished

This seems much harder, any hint appreciated.

Federico
--
http://gnurag.net/blog/
http://fsfe.org/
http://groups.fsf.org/wiki/LibrePlanetItalia



_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to