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: James Lowe
Subject: Re: blocking midi output of included files
Date: Tue, 05 Jan 2010 11:41:34 +0000
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

I think you can use explicit ^ and $ so look for ^midid$ (or something like that) to explicity select just this string value of "midi".

or you can use ^midi or maybe midi$ on their own - whatever suits.

I'm no expert with sed, but I assume these regular expressions are universal.

James



Federico Bruni wrote:
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




reply via email to

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