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

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

Sortie en png limitée à la partie utile


From: Vincent Gay
Subject: Sortie en png limitée à la partie utile
Date: Mon, 1 Aug 2022 10:13:53 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

Bonjour,

pour illustrer mon blog (ou mes posts dans cette liste)  j'aimerai que mes sorties en png soient découpée juste à la partie utile ( + une marge de quelques millimètres). J'ai trouvé quelques indication ici :
https://lilypond.org/doc/v2.23/Documentation/usage/luatex#other-programs

Je modifie mon fichier en conséquence (ci-dessous) mais que je le compile avec Frescobaldi (avec les options qui vont bien) ou en ligne de commande la sortie reste en A4.
Si je veux voir un fichier eps (juste en enlevant le --png comme précisé dans la doc) j'obtiens un fichier... pdf ! Toujours en A4

Qu'y a-t-il que je n'ai pas compris ?

Merci d'avance

ma ligne de commande :
~/bin/lilypond-2.23.11/bin/lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts --png GridWithRhythmII.ly

mon code :
\version "2.23.11"
#(set-global-staff-size 18)
#(ly:set-option 'eps-box-padding 3.000000)

\paper {
  indent = 0
  ragged-right = ##f
  system-system-spacing =
  #'((basic-distance . 0)
     (minimum-distance . 20)
     (padding . 0)
     (stretchability . 0))
  line-width = 160\mm
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
  line-width = 160\mm - 2.0 * 10.16\mm
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
  oddFooterMarkup=##f
  oddHeaderMarkup=##f
}

\layout {
  \context {
    \RhythmicStaff
    \override VerticalAxisGroup.staff-affinity = #DOWN
    \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
    #'((basic-distance . 0)
       (minimum-distance . 8.5 )
       (padding . 0)
       (stretchability . 0))
    \RemoveAllEmptyStaves
    \improvisationOn
    \override StaffSymbol.line-count = 0
    \remove Time_signature_engraver
    \remove Bar_engraver
  }
}

grille = \chordmode {
  \override Score.RehearsalMark.self-alignment-X = #LEFT
  \mark \markup \box Intro
  \repeat volta 2 { \repeat unfold 2 { f1:9+5+ bes:13/d } } \break \bar "||"
  \mark \markup \fontsize #-1 { \box Head \raise #1 \with-color #red \musicglyph "scripts.segno" }
  \repeat unfold 2 { f1:9+5+ bes:13/d } \break
  ges2:6.9 e:7 es1 b2:7 f:7 bes1:m \break
}

GridRhythm = { s1* 8 \repeat unfold 2 { r4 c4 4. 8~ 1 }}

\new ChordGridScore <<
  \new RhythmicStaff \magnifyMusic 0.66 \GridRhythm
  \new ChordGrid \grille
>>

-- 
Vincent Gay
Envoyé depuis mon saxo-phone :)
https://myrealbook.vintherine.org/ - http://photos.vintherine.org/

reply via email to

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