lilypond-user-fr
[Top][All Lists]
Advanced

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

Re: Placement de texte à volonté


From: Jacques Menu
Subject: Re: Placement de texte à volonté
Date: Sun, 4 Jun 2023 17:54:23 +0200

Bonjour Pierre,

Merci d’avoir pris le temps de faire le graphique en plus de cette proposition très intéressante!

Excuse-moi, j’aurais dû préciser ça, extrait de common.mod dans la DTS de MusicXML 3.1 :

The position attributes are based on MuseData print
suggestions. For most elements, any program will compute
a default x and y position. The position attributes let
this be changed two ways.

The default-x and default-y attributes change the
computation of the default position. For most elements,
the origin is changed relative to the left-hand side of
the note or the musical position within the bar (x) and
the top line of the staff (y).
… … …
Since the credit-words and credit-image elements are not
related to a measure, in these cases the default-x and
default-y attributes adjust the origin relative to the
bottom left-hand corner of the specified page.

The relative-x and relative-y attributes change the position
relative to the default position, either as computed by the
individual program, or as overridden by the default-x and
default-y attributes.

Positive x is right, negative x is left; positive y is up,
negative y is down. All units are in tenths of interline
space. For stems, positive relative-y lengthens a stem
while negative relative-y shortens it.
… … …
As elsewhere in the MusicXML format, tenths are the global
tenths defined by the scaling element, not the local tenths
of a staff resized by the staff-size element.

Le 4 juin 2023 à 17:00, Pierre Perol-Schneider <pierre.schneider.paris@gmail.com> a écrit :

Bonjour Jacques, bonjour Martial,
Ci-joint une représentation de ce que je comprends des default-x et default-y.
Ai-je bien compris ?
Si oui on pourrait éventuellement écrire quelque chose comme :

\version "2.24.0"

#(define default-y (* -1 (/ 244 1.9)))
#(define default-x (/ 129 1.4))

\paper {
  left-margin = 30
  top-margin = 20
}

\header {
  title = "Test"
}

\markuplist {
  \with-dimensions-from \null {
    \fontsize #-1
    \translate #(cons 0 default-y)
    \override #'(line-width . 92)
    %\override #`(baseline-skip . ,default-x) % <= ne fonctionne pas
    %\override #(cons 'baseline-skip default-x) % <= ne fonctionne pas
    \wordwrap {
      Source: \italic { Japanese Popular Music: a collection of the popular music of Japan rendered in to the
      staff notation }, by Y. Nagai and K. Kobatake, 2nd ed., Osaka, S. Miki &amp; Co., 1892, pp. 96-97.
      Transcribed into Finale music notation by Tom Potter, 2005.  See http://www.daisyfield.com/music/
      Lyrics added by Karen Tanaka and Michael Good, 2006. See http://www.recordare.com/
    }
  }
}

{ c' }

Rqe 1 : je considère que la transposition des default-x et default-y sont linéaires, ce qui est sans doute faux !

Qu’entend-tu par non-linéaires?
A part un changement d’origine comme vu ci-dessus, ça me paraît bien. Comment as-tu obtenu les nombres 1.9, 1.4 et 92?

Rqe 2 : je ne comprends pas pourquoi je n'arrive plus à utiliser de variables dans le \override (j'ai dû rater un ou plusieurs épisodes depuis la 2.22...)

Silence réseau.

Rqe 3 : je n'ai peut-être rien compris au problème...

Non, je ne pense pas.

Rqe 4 : j'étais trop sûr de moi de te pondre une #(define-markup-list note-de-reference ...) de-la-mort-qui-tue...

Mais je ne vois pas de #(define-markup-list …?

JM



reply via email to

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