Hi Andreas,
Try: \once\set Staff.whichBar = "||"
See enclosed, HTH.
Cheers,
Pierre
Le mar. 21 juil. 2020 à 11:37, Andreas Stenberg <[email protected]>
a écrit :
> Hi!
>
> Working on an semi-diplomatoric edition on a late 16-th centhury piece I
> have run in to a problem with bars.
>
> This time I have opted , not to use the mensurestricht layout but, to
> use "!" bar as the default barline setting \set Timing.defaultBarType
> ="!" in \global.
>
> The original partbook-print does not, of course, have any regular
> baring. Double barlines (or some times singel prolonged barlines) are
> used to mark:
>
> Sections in the piece and or where a repeat should start.
>
> In the orginal these lines are not allways printed in the same place in
> the different parts. At times only one voice have such a marking.
>
> Where the doublebar doesn't concide with the regular editorial "!" bars
> this is not a problem. Inserting the \bar "||" in the voice where it is
> in the orig. and hiding it in other voices is a god work around hack.
>
> The problem comes when a \bar "||" in one only voice concides with the
> regular "!" baring in the other voices.
>
> I would like to have the doublebar show in one voice and the reguar "!"
> bars in the others without having to muck around with the timing (This
> is not a question about different timing / barlengts in different voices).
>
> Example:
>
>
> \version "2.20.0"
>
> \include "deutsch.ly"
>
> %% Decima parte.
>
> globalX = {
>
> \override Staff.TimeSignature.style = #'mensural
>
> \key c \major
>
> \set Timing.defaultBarType ="!"
> }
>
>
>
> %% PDF p.73.
>
> sopranoOneX = \relative c' {
>
> \globalX
>
> \time 4/4
>
> \set Score.tempoHideNote = ##t
>
> \tempo 2 =120
>
> % Music follows here.
>
> \slurDashed
>
> \set Timing.measureLength = #(ly:make-moment 8/4)
>
> d'1 e2 c2
>
> h2. h4 h4 h4 c4 d4
>
> e2. e4 d4 \once \override Staff.BarLine.transparent =##t g,4 a4 h4
> %% need to get regular "!" bar here
>
> }
>
>
>
>
> %% PDF p.174.
>
> sopranoTwoX = \relative c' {
>
> \globalX
>
> \slurDashed
>
> % Music follows here.
>
> h'1 g2 a2
>
> gis2. gis4 gis4 gis4 a4 h4
>
> c2. c4 h4 \bar "||" h4 c4 d4 %% need to get regular "!" bar here
>
> }
>
> %% PDF p.278.
>
> bassX = \relative c {
>
> \clef "bass"
>
> \globalX
>
> \slurDashed
>
> % Music follows here.
>
> g1 c2 a2
>
> e'2. e4 e4 e4 a4 g4
>
> c,2. c4 g2*1/2 \once \override Staff.BarLine.transparent =##t s4 r2
> \bar "||" %% hack to have no bar in midle of the "bar" and "||" bar at
> the end of it in this bar.
>
>
> }
>
>
>
>
> sopranoOneVerseX = \lyricmode {
>
> % Lyrics follow here.
>
> \set stanza = "10."
>
> Più lar -- ga~à po -- ve -- ri -- se Ro -- ma veg -- ge -- mi,
>
> Non cer -- chi~al
>
> }
>
>
> sopranoTwoVerseX = \lyricmode {
>
> % Lyrics follow here.
>
> \set stanza = "10."
>
> Più lar -- ga~à po -- ve -- ri -- se Ro -- ma veg -- ge -- mi,
>
> Non cer -- chi~al
>
> }
>
>
> bassVerseX = \lyricmode {
>
> % Lyrics follow here.
>
> \set stanza = "10."
>
> Più lar -- ga~à po -- ve -- ri -- se Ro -- ma veg -- ge -- mi,
>
> }
>
>
>
> choirPartX = \new ChoirStaff <<
>
> \new Staff \with {
>
> midiInstrument = "choir aahs"
>
> instrumentName = "S. I"
>
> \consists "Ambitus_engraver"
>
> } { \sopranoOneX }
>
> \addlyrics { \sopranoOneVerseX }
>
> \new Staff \with {
>
> midiInstrument = "choir aahs"
>
> instrumentName = "S. II"
>
> \consists "Ambitus_engraver"
>
> } { \sopranoTwoX }
>
> \addlyrics { \sopranoTwoVerseX }
>
> \new Staff \with {
>
> midiInstrument = "choir aahs"
>
> instrumentName = "B."
>
> \consists "Ambitus_engraver"
>
> } { \bassX }
>
> \addlyrics { \bassVerseX }
>
> >>
>
>
>
>
>
> \score {
>
>
> <<
>
> \choirPartX
>
> >>
>
> \layout { }
> \header {
>
> dedication = ##f
>
> title = ##f
>
> subtitle = ##f
>
> composer = ##f
>
> piece = "Decima parte."
>
> % Remove default LilyPond tagline
>
> tagline = ##f
> }
> }
>
> Ys Andreas Stenberg
>
>
>
\version "2.20.0"
\include "deutsch.ly"
%% Decima parte.
globalX = {
\override Staff.TimeSignature.style = #'mensural
\key c \major
\set Timing.defaultBarType ="!"
}
%% PDF p.73.
sopranoOneX = \relative c' {
\globalX
\time 4/4
\set Score.tempoHideNote = ##t
\tempo 2 =120
% Music follows here.
\slurDashed
\set Timing.measureLength = #(ly:make-moment 8/4)
d'1 e2 c2
h2. h4 h4 h4 c4 d4
e2. e4 d4 %\once \override Staff.BarLine.transparent =##t
g,4 a4 h4
%% need to get regular "!" bar here
}
%% PDF p.174.
sopranoTwoX = \relative c' {
\globalX
\slurDashed
% Music follows here.
h'1 g2 a2
gis2. gis4 gis4 gis4 a4 h4
c2. c4 h4 h4 c4 d4 %% need to get regular "!" bar here
}
%% PDF p.278.
bassX = \relative c {
\clef "bass"
\globalX
\slurDashed
% Music follows here.
g1 c2 a2
e'2. e4 e4 e4 a4 g4
c,2. c4 g2*1/2 %\once \override Staff.BarLine.transparent =##t
s4 r2
\once\set Staff.whichBar = "||"
%% hack to have no bar in midle of the "bar" and "||" bar at the end of it in this bar.
}
sopranoOneVerseX = \lyricmode {
% Lyrics follow here.
\set stanza = "10."
Più lar -- ga~à po -- ve -- ri -- se Ro -- ma veg -- ge -- mi,
Non cer -- chi~al
}
sopranoTwoVerseX = \lyricmode {
% Lyrics follow here.
\set stanza = "10."
Più lar -- ga~à po -- ve -- ri -- se Ro -- ma veg -- ge -- mi,
Non cer -- chi~al
}
bassVerseX = \lyricmode {
% Lyrics follow here.
\set stanza = "10."
Più lar -- ga~à po -- ve -- ri -- se Ro -- ma veg -- ge -- mi,
}
choirPartX = \new ChoirStaff <<
\new Staff \with {
midiInstrument = "choir aahs"
instrumentName = "S. I"
\consists "Ambitus_engraver"
} { \sopranoOneX }
\addlyrics { \sopranoOneVerseX }
\new Staff \with {
midiInstrument = "choir aahs"
instrumentName = "S. II"
\consists "Ambitus_engraver"
} { \sopranoTwoX }
\addlyrics { \sopranoTwoVerseX }
\new Staff \with {
midiInstrument = "choir aahs"
instrumentName = "B."
\consists "Ambitus_engraver"
} { \bassX }
\addlyrics { \bassVerseX }
>>
\score {
<<
\choirPartX
>>
\layout { }
\header {
dedication = ##f
title = ##f
subtitle = ##f
composer = ##f
piece = "Decima parte."
% Remove default LilyPond tagline
tagline = ##f
}
}