I had a look on preprocessors... but it's complicated to publish a source
containing such a trick
on the other hand, the learning curve of the scheme functions is tough (a
nice way to say I don't understand a word ^^)
That's why I'm looking for tips :)
I could work from any example of a function doing "almost" the same thing.
But looking at the doc, I have one chapter for music functions and another
one for markup functions... and none for both-at-the-same-time
Yota
On 2/5/07, Mats Bengtsson <[EMAIL PROTECTED]> wrote:
The easiest solution is probably to use an external preprocessor, like M4
(if you search the mailing list archives you can also find hints on other
similar preprocessors to do purely textual replacements in the file.
There,
you can also find comments on why the main authors of LilyPond don't
want to include such functionality within LilyPond).
Another solution is outlined in section "Building complicated functions"
in the manual.
/Mats
yota moteuchi wrote:
> Bonjour,
>
> I'm trying to write a NICE lilypond function to do properly what I
> could do with a simple find and replace in the text
>
> where
> \pizz
>
> would become :
> ^\markup {\italic pizz.}
> \set Staff.midiInstrument = "pizzicato strings"
>
> I tried some make-markup stuffs but... how to insert a \set property
> into them...
>
> I would need some tips to do that
>
> merci ^^
> ------------------------------------------------------------------------
>
> _______________________________________________
> lilypond-user mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user