[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: placement de notes et objets
From: |
Eluze |
Subject: |
Re: placement de notes et objets |
Date: |
Fri, 13 Jan 2012 16:21:46 -0800 (PST) |
Jean-Jacques Gerbaud wrote
>
> je chercher à faire apparaître les "I", "IV", "V", "I" ainsi que les
> notes rondes correspondantes au milieu des mesures.
>
> La solution est certainement toute simple mais encore faut il savoir
> laquelle et mes recherches n'ont pas abouti.
>
> Un petit coup de main ?
>
avec
% (see LSR 768 for details)
textScriptCenterOnNote = \override TextScript #'X-offset = #(lambda (grob)
(let* ((paper-col (ly:grob-parent grob X))
(elts (ly:grob-object paper-col 'elements))
(rhythmic-head
(if (ly:grob-array? elts)
(let loop ((array-idx 0))
(call/cc
(lambda (return)
(let ((array-len (ly:grob-array-length elts)))
(if (< array-idx (1- array-len))
(let ((elt (ly:grob-array-ref elts array-idx)))
(if (grob::has-interface elt
'rhythmic-head-interface)
(return elt)
(loop (1+ array-idx)))))
grob))))
grob)))
(+
(ly:self-alignment-interface::x-aligned-on-self grob)
(interval-center (ly:grob-robust-relative-extent rhythmic-head
rhythmic-head X)))))
et ensuite
\override TextScript #'self-alignment-X = #CENTER
\textScriptCenterOnNote
on parvient à centrer les markup au dessus des notes - pour les mesures?
Eluze
--
View this message in context:
http://lilypond-french-users.1298960.n2.nabble.com/placement-de-notes-et-objets-tp7184847p7186242.html
Sent from the LilyPond French Users mailing list archive at Nabble.com.