[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: substitution for numerator
From: |
Jan-Peter Voigt |
Subject: |
Re: substitution for numerator |
Date: |
Mon, 19 Sep 2011 09:00:15 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Lightning/1.0b2 Thunderbird/3.1.13 |
Hello Stefan,
you probably have to code the scaled note in scheme:
--snip--
numerator = #(define-music-function (parser location x) (integer?)
(make-music 'EventChord
'elements
(list
(make-music 'NoteEvent
'duration (ly:make-duration 0 0 3 x)
'pitch (ly:make-pitch 0 0 0))
)))
\displayMusic \relative c' {
\numerator #4 c4
}
--snip--
But you will get the same result, if you use the times-command:\times
2/3 { c1 }
This will set the numerator and denominator in the duration. And if you
want to hide the tuplet bracket and number, you can do so with:
\once \override TupletBracket #'stencil = ##f
\once \override TupletNumber #'stencil = ##f
But this is probably not the source of your question. What is your goal?
Cheers,
Jan-Peter
Am 18.09.2011 11:01, schrieb Stefan Thomas:
numerator = #(define-music-function (parser location x) (number?)
#{ % in der folgenden Zeile Lilypondcode eingeben
c1*$x/3
#})
themusic = {
\numerator #4
}