lilypond-user
[Top][All Lists]
Advanced

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

Re: markup functions


From: David Kastrup
Subject: Re: markup functions
Date: Sat, 18 Feb 2017 16:04:06 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Rob Torop <address@hidden> writes:

> I have a bunch of repeated things like this
>
>            d f \mark \markup \italic \magnify #0.7 "(tenor & trp.)"  r16
>
> where I put a little instruction over the melody
>
> I'd like to have a little function to call instead of \mark \markup \italic
> \magnify #0.7 "blah", with the "blah" as a parameter.
>
> So I tried this
>
> #(define-markup-command  (instruct layout props text )    (markup?)
>    (intepret-markup layout  props
>        #{
>             \markup \italic \magnify #0.7 #text
>        #}))
>
> and then put this in my code
>
> d f \mark \instruct "(tenor & trp.)"  r16
>
>
> But it doesn't like it!

d f \mark \markup \instruct ...

> I am sure this is very easy, and maybe I should be using a music-function
> instead of the markup command definition.

Music function sounds like a good idea.

-- 
David Kastrup



reply via email to

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