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:23:33 +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 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
--
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]