lilypond-user
[Top][All Lists]
Advanced

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

Scheme question on strict substitution


From: Trevor Bača
Subject: Scheme question on strict substitution
Date: Tue, 28 Nov 2006 12:40:50 -0600

Hi,

I frequently write

       \tweak #'text #tuplet-number::calc-fraction-text

before tuplets, like this:

       \tweak #'text #tuplet-number::calc-fraction-text
       \times 2/3 {
           c'8 c'8 c'8
       }

What's the best way to abbreviate to something like this?

       \fraction
       \times 2/3 {
           c'8 c'8 c'8
       }

I've tried this music function ...

  fraction = #(define-music-function (parser location) ()
     #{
        \tweak #'text #tuplet-number::calc-fraction-text
     #})

... but get this parse error:

Parsing...
<string>:3:9: error: syntax error, unexpected '}'

        }361.ly:5:0: error: errors found, ignoring music expression

Any suggestions for a good abbreviation?


--
Trevor Bača
address@hidden

reply via email to

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