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

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

Re: Supprimer un repère \mark


From: Seventies
Subject: Re: Supprimer un repère \mark
Date: Thu, 6 Nov 2014 14:36:46 -0700 (MST)

Voilà, quelque peu tardivement, un exemple minimum :

\version "2.18.2"
staffI = \new Staff {
  \repeat unfold 8 {c''1}
  \mark \default
  \repeat unfold 10 R1
  \mark \default
  \repeat unfold 10 R1
  \mark \default
  \repeat unfold 8 {c''1}
}

staffII = \new Staff \with {
  \RemoveEmptyStaves
  \consists "Mark_engraver"
  \consists "Metronome_mark_engraver"
  \consists "Staff_collecting_engraver"
}  {
  \repeat unfold 8 {c''1}
  \mark \default
  \repeat unfold 10 c''1
  \mark \default
  \repeat unfold 10 c''1
  \mark \default
  \repeat unfold 8 {c''1}
}

staffIB = \new Staff \with \RemoveEmptyStaves {
  \repeat unfold 8 {c''1}
  \mark \default
  \repeat unfold 10 R1
  \mark \default
  \repeat unfold 10 R1
  \mark \default
  \repeat unfold 8 {c''1}
}

staffIIB = \new Staff \with {
  \RemoveEmptyStaves
  \consists "Mark_engraver"
  \consists "Metronome_mark_engraver"
  \consists "Staff_collecting_engraver"
} {
  \repeat unfold 8 {c''1}
  \mark \default
  \repeat unfold 10 c''1
  \mark \default
  \repeat unfold 10 c''1
  \mark \default
  \repeat unfold 8 {c''1}
}

\score {
  <<
  \staffI
  \staffII
  >>
}

\score {
  <<
  \staffIB
  \staffIIB
  >>
}

Dans le premier cas, tout se passe correctement.
Dans le second cas, un repère est imprimé là où il devrait être absent.

Si je modifie la variable staffIB comme ceci :

staffIB = \new Staff \with \RemoveEmptyStaves {
  \repeat unfold 8 {c''1}
  \mark \default
  \repeat unfold 10 R1
  \override Score.RehearsalMark.stencil = ##f
  \mark \default
  \revert Score.RehearsalMark.stencil
  \repeat unfold 10 R1
  \mark \default
  \repeat unfold 8 {c''1}
}

rien ne change.

Par contre, si on écrit :

staffIB = \new Staff \with \RemoveEmptyStaves {
  \repeat unfold 8 {c''1}
  \mark \default
  \repeat unfold 10 R1
  \mark \default
  \override Score.RehearsalMark.stencil = ##f
  \repeat unfold 10 R1
  \revert Score.RehearsalMark.stencil
  \mark \default
  \repeat unfold 8 {c''1}
}

le repère B disparaît, mais sur les deux portées - c'est normal,
RehearsalMark appartient au contexte Score.

Mais plus bizarre, si je supprime le repère B et que je force le repère C :

staffIB = \new Staff \with \RemoveEmptyStaves {
  \repeat unfold 8 {c''1}
  \mark \default
  \repeat unfold 10 R1
% Repère supprimé
  \repeat unfold 10 R1
  \mark 3 % Forcé à "C"
  \repeat unfold 8 {c''1}
}

j'obtiens le message cité en tête de ce post :

c:/users/papa/appdata/local/temp/frescobaldi-cm4kgv/tmp7hnbuy/document.ly:48:3:
Avertissement : Deux événements mark simultanés, rejet de celui-ci
  
  \mark \default

c:/users/papa/appdata/local/temp/frescobaldi-cm4kgv/tmp7hnbuy/document.ly:33:3:
Avertissement : Événement mark précédent ici
  
  \mark 3






--
View this message in context: 
http://lilypond-french-users.1298960.n2.nabble.com/Supprimer-un-repere-mark-tp7581841p7581866.html
Sent from the LilyPond French Users mailing list archive at Nabble.com.



reply via email to

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