lilypond-user
[Top][All Lists]
Advanced

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

music functions and markups


From: Han-Wen Nienhuys
Subject: music functions and markups
Date: Sun, 10 Oct 2004 12:17:49 +0200

address@hidden writes:
> Hello
> 
> I would like to define a music function taking a markup as an
> argument.
> Currently, I'm doing:
> 
>   foo = #(def-music-function (location markp music) (markup? ly:music?)
>            ...)
>   \foo #(markup ...)
>        { c' d' e' f' }
> 
> Is there a way to be able to write, eg:
> 
>   \foo \markup { ... }
>        { c' d' e' f' }
> 
> or a clue on how it could be implemented? If that is not easy,

Check out parser.yy and lexer.yy, you would have to add

  %token <scm> MUSIC_FUNCTION_MARKUP 

in the appropriate places.

-- 

 Han-Wen Nienhuys   |   address@hidden   |   http://www.xs4all.nl/~hanwen 





reply via email to

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