|
From: | Stefan Thomas |
Subject: | Re:substitution for numerator |
Date: | Mon, 19 Sep 2011 20:42:21 +0200 |
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
> }
[Prev in Thread] | Current Thread | [Next in Thread] |