lilypond-devel
[Top][All Lists]
Advanced

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

Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)


From: Paul Morris
Subject: Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)
Date: Sat, 24 May 2014 14:26:49 -0700 (PDT)

Thomas Morley-2 wrote
> Maybe a step in this direction:
> 
> \version "2.19.6"
> 
> appear =
> #(define-music-function (parser location mrkp item)
>    (markup? symbol-list-or-music?)
>    (let ((stil (lambda (item)
>                  (grob-interpret-markup item mrkp))))
>      #{ \tweak stencil #stil #item #}))

Assuming we would want to support stencils as well as markups, we'd need a
new type predicate: 

markup-or-stencil?

And if it is to be as flexible as a \tweak, then it should also support
procedures (i.e. that return a stencil).  So we'd need: 

markup-or-stencil-or-procedure?

A stencil or procedure could just be passed through unmodified to the
\tweak, while a markup would be converted to a stencil first.  (Would there
be a way to get procedures that return a markup to work?  I don't think
so...)

http://lilypond.org/doc/v2.18/Documentation/notation/predefined-type-predicates

Cheers,
-Paul



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Re-Issue-3918-Add-alternatingTimeSignatures-issue-97110045-tp162462p162742.html
Sent from the Dev mailing list archive at Nabble.com.



reply via email to

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