[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Additive time signatures
From: |
Kurt Kroon |
Subject: |
Re: Additive time signatures |
Date: |
Thu, 28 Feb 2008 21:34:10 -0800 |
User-agent: |
Microsoft-Entourage/11.4.0.080122 |
On 2008/02/28 1:30 AM, "Mats Bengtsson" <address@hidden> wrote:
> Kurt Kroon wrote:
>> \version "2.10.33"
>> #(define (compound-time grob one two three num)
>> (interpret-markup
>> (ly:grob-layout grob)
>> '(((baseline-skip . 2)
>> (word-space . 2)
>> (font-family . number)))
>> (markup
>> #:line ( #:column (one) "+" #:column (two num) "+" #:column (three)))))
>>
> Where did you get inspiration to this solution?
I found in the Tips and Tricks for the current stable version:
http://lilypond.org/doc/v2.10/input/test/lily-cd92ad8b64.ly
Then I:
* Added three to the compound-time define block (list?);
* Removed "#:lower 1" (which I correctly interpreted to mean "move this
markup down one staff space") because I wanted the + signs to be in the
numerator; and
* Took a chance that LilyPond wouldn't cough or die when it encountered the
missing "num" in the "denominators" (yes, I know they aren't true fractions,
but whatever) of the first and third time signatures.
Not only did Lily neither cough nor die, she didn't even blink -- 0 errors,
0 warnings.
> The examples I can find in
> LSR and the manual, all set stencil to #ly:text-interface::print and make
> an appropriate markup which they assign to the text property.
> I hope you have seen http://lsr.dsi.unimi.it/LSR/Snippet?id=192
> for example.
Had I known it existed, I probably wouldn't have looked elsewhere for
inspiration ... though I probably would have ground my teeth for all those
eights in the "denominators"
> Even though your solution is very elegant if you know
> what you're doing,
You're too kind -- but the credit belongs with the creator of the Tip that I
mangled ... err ... adapted to my purpose.
> I think the type of solution currently found in
> LSR and documentation may be easier to understand and also easier
> to generalize to other situations where you want to override the default
> layout of a grob.
Most likely, yes.
>
> Try:
> #(override-auto-beam-setting '(end 1 8 8 8) 3 8)
> #(override-auto-beam-setting '(end 1 8 8 8) 5 8)
> \set Staff.beatGrouping = #'(3 2 3)
Thank you, that worked like a charm!
> ...
>
> On the other hand, don't hesitate in general to add new snippets in LSR,
> that's the whole point of LSR.
'Mmm-kay!
Kurt
- GDP glossary question: complex meters, Kurt Kroon, 2008/02/26
- Re: GDP glossary question: complex meters, Valentin Villenave, 2008/02/26
- RE: GDP glossary question: complex meters, Palmer, Ralph, 2008/02/26
- Re: GDP glossary question: complex meters, Kurt Kroon, 2008/02/27
- Additive time signatures (was: GDP ... complex meters), Kurt Kroon, 2008/02/28
- Re: Additive time signatures (was: GDP ... complex meters), Valentin Villenave, 2008/02/28
- Re: Additive time signatures, Joseph Wakeling, 2008/02/28
- Re: Additive time signatures, Mats Bengtsson, 2008/02/28
- Re: Additive time signatures, Joseph Wakeling, 2008/02/28
- Re: Additive time signatures, Hans Aberg, 2008/02/28
- Re: Additive time signatures, Joseph Wakeling, 2008/02/28
- Re: Additive time signatures, Hans Aberg, 2008/02/28
- Re: Additive time signatures, Rune Zedeler, 2008/02/29
- Re: Additive time signatures, Hans Aberg, 2008/02/29
Re: GDP glossary question: complex meters, Anh Hai Trinh, 2008/02/28