[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scheme question on strict substitution
From: |
stk |
Subject: |
Re: Scheme question on strict substitution |
Date: |
Tue, 28 Nov 2006 22:34:47 -0500 (EST) |
Hello,
Does it work just to define this macro at the top level
fraction = \tweak #'text #tuplet-number::calc-fraction-text
and then later in the music to write
\fraction
\times 2/3 {
c'8 c'8 c'8
}
Does LilyPond swallow that?
-- Tom
-------------------------------------------------
Trevor Baca wrote:
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
- Scheme question on strict substitution, Trevor Bača, 2006/11/28
- Re: Scheme question on strict substitution,
stk <=
- Re: Scheme question on strict substitution, Werner LEMBERG, 2006/11/29
- Re: Scheme question on strict substitution, Mats Bengtsson, 2006/11/29
- Re: Scheme question on strict substitution, stk, 2006/11/30
- Re: Scheme question on strict substitution, Mats Bengtsson, 2006/11/30
- Re: Scheme question on strict substitution, stk, 2006/11/30
- Re: Scheme question on strict substitution, Mats Bengtsson, 2006/11/30