[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045)
From: |
Thomas Morley |
Subject: |
Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045) |
Date: |
Sat, 17 May 2014 01:51:51 +0200 |
2014-05-17 0:38 GMT+02:00 Urs Liska <address@hidden>:
> Am 16.05.2014 09:41, schrieb address@hidden:
>>
>> Well, we have \omit already. What if we had
>> \appearance [markup] [grobname or music]
>>
>> Which would basically be the syntactic sugar for overriding the stencil
>> with an appropriate grob-interpret-markup?
>>
>> That way one could just define some markup function for formatting time
>> signatures and use it either in markup contexts or indeed for overriding
>> a time signature.
>
>
> If I understand you correctly this would mean that one would write
>
> \appearance \fractionList #'((6 8)(5 4)) Score.TimeSignature
>
> instead of
>
> \override Score.TimeSignature.stencil = \fractionList #'((6 8)(5 4))
>
> ?
I think David thought of something at the lines of the following function:
appearance =
#(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 #}))
\relative c' {
\appearance
\markup "XY"
Staff.Clef
\appearance
\markup
\override #'(baseline-skip . 0)
\override #'(word-space . 0.2)
\line {
\center-column { \number 3 \number 4 }
\center-column { \number 6 \number 8 }
}
Score.TimeSignature
c1
}
Cheers,
Harm
- Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045), lilyliska, 2014/05/16
- Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045), dak, 2014/05/16
- Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045), Urs Liska, 2014/05/16
- Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045),
Thomas Morley <=
- Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045), Urs Liska, 2014/05/17
- Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045), David Kastrup, 2014/05/17
- Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045), Paul Morris, 2014/05/17
- Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045), David Kastrup, 2014/05/18
- Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045), Paul Morris, 2014/05/18
- Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045), David Kastrup, 2014/05/18
- Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045), Paul Morris, 2014/05/18
- Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045), David Kastrup, 2014/05/18
- Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045), Paul Morris, 2014/05/18
- Re: Issue 3918: Add \alternatingTimeSignatures (issue 97110045), Paul Morris, 2014/05/20