lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: blocking midi output of included files


From: Federico Bruni
Subject: Re: blocking midi output of included files
Date: Tue, 05 Jan 2010 12:49:50 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.1.5) Gecko/20091130 Thunderbird/3.0

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]