[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Basic Scheme Markdown Function
From: |
Valentin Petzel |
Subject: |
Re: Basic Scheme Markdown Function |
Date: |
Sun, 08 Dec 2024 02:50:38 +0100 |
Am Freitag, 6. Dezember 2024, 15:40:53 MEZ schrieb Steph Phillips:
> Hi all, this one's probably a simple solution, but I'm a little fuzzy on
> how to implement custom Scheme functions still.
>
> I'm working on a musical theater score, and there are lots of instrument
> changes formatted like this:
>
> changeBbClar = ^\markup {
> \general-align #X #-0.7
> \bold
> \override #'(box-padding . 0.5) \box
> "Bb Clarinet"
> }
>
> My end goal is a function where I can define the name of the instrument
> and the x-alignment - something like
>
> \InstrumentChange "Bb Clarinet" #-0.7
>
> Thanks a ton,
> ~Steph
Hi Steph,
in this particular case it might be useful to create an engraver which
automatically annotates changes in instrument name. This not only gives you
the regular overriding interface for changing things, it also gives you a lot
of possibilities for the formatting of the style in question. See the appended
file for how this can be done.
Cheers,
Valentin
instrument-change.ly
Description: Text Data
signature.asc
Description: This is a digitally signed message part.