[prev in list] [next in list] [prev in thread] [next in thread]
List: lilypond-user
Subject: Re: Different bartype in different staffs
From: Andreas Stenberg <andreas.stenberg () pp ! inet ! fi>
Date: 2020-07-21 11:04:34
Message-ID: ccc606f5-5c8e-2ee2-81ff-c00e25de403b () pp ! inet ! fi
[Download RAW message or body]
HI Pierre!
Yes, That works!
Thanks!
Andreas.
Pierre Perol-Schneider kirjoitti 21-07-2020 klo 12:52:
> Hi Andreas,
> Try: \once\set Staff.whichBar = "||"
> See enclosed, HTH.
> Cheers,
> Pierre
>
> Le mar. 21 juil. 2020 à 11:37, Andreas Stenberg
> <andreas.stenberg@pp.inet.fi <mailto:andreas.stenberg@pp.inet.fi>> 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 <http://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
>
>
[Attachment #3 (text/html)]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>HI Pierre!</p>
<p>Yes, That works!</p>
<p>Thanks!</p>
<p>Andreas.</p>
<p><br>
</p>
<div class="moz-cite-prefix">Pierre Perol-Schneider kirjoitti
21-07-2020 klo 12:52:<br>
</div>
<blockquote type="cite"
cite="mid:CAPHOTuXdcXp6G93PJPG70J4YhMstgPXZiMS-turKBrxdQA+Psw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi Andreas,</div>
<div>Try: \once\set Staff.whichBar = "||" <br>
</div>
<div>See enclosed, HTH.</div>
<div>Cheers,</div>
<div>Pierre<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Le mar. 21 juil. 2020 à 11:37,
Andreas Stenberg <<a
href="mailto:andreas.stenberg@pp.inet.fi"
moz-do-not-send="true">andreas.stenberg@pp.inet.fi</a>> a
écrit :<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi!<br>
<br>
Working on an semi-diplomatoric edition on a late 16-th
centhury piece I <br>
have run in to a problem with bars.<br>
<br>
This time I have opted , not to use the mensurestricht layout
but, to <br>
use "!" bar as the default barline setting \set
Timing.defaultBarType <br>
="!" in \global.<br>
<br>
The original partbook-print does not, of course, have any
regular <br>
baring. Double barlines (or some times singel prolonged
barlines) are <br>
used to mark:<br>
<br>
Sections in the piece and or where a repeat should start.<br>
<br>
In the orginal these lines are not allways printed in the same
place in <br>
the different parts. At times only one voice have such a
marking.<br>
<br>
Where the doublebar doesn't concide with the regular editorial
"!" bars <br>
this is not a problem. Inserting the \bar "||" in the voice
where it is <br>
in the orig. and hiding it in other voices is a god work
around hack.<br>
<br>
The problem comes when a \bar "||" in one only voice concides
with the <br>
regular "!" baring in the other voices.<br>
<br>
I would like to have the doublebar show in one voice and the
reguar "!" <br>
bars in the others without having to muck around with the
timing (This <br>
is not a question about different timing / barlengts in
different voices).<br>
<br>
Example:<br>
<br>
<br>
\version "2.20.0"<br>
<br>
\include "<a href="http://deutsch.ly" rel="noreferrer"
target="_blank" moz-do-not-send="true">deutsch.ly</a>"<br>
<br>
%% Decima parte.<br>
<br>
globalX = {<br>
<br>
\override Staff.TimeSignature.style = #'mensural<br>
<br>
\key c \major<br>
<br>
\set Timing.defaultBarType ="!"<br>
}<br>
<br>
<br>
<br>
%% PDF p.73.<br>
<br>
sopranoOneX = \relative c' {<br>
<br>
\globalX<br>
<br>
\time 4/4<br>
<br>
\set Score.tempoHideNote = ##t<br>
<br>
\tempo 2 =120<br>
<br>
% Music follows here.<br>
<br>
\slurDashed<br>
<br>
\set Timing.measureLength = #(ly:make-moment 8/4)<br>
<br>
d'1 e2 c2<br>
<br>
h2. h4 h4 h4 c4 d4<br>
<br>
e2. e4 d4 \once \override Staff.BarLine.transparent =##t
g,4 a4 h4 <br>
%% need to get regular "!" bar here<br>
<br>
}<br>
<br>
<br>
<br>
<br>
%% PDF p.174.<br>
<br>
sopranoTwoX = \relative c' {<br>
<br>
\globalX<br>
<br>
\slurDashed<br>
<br>
% Music follows here.<br>
<br>
h'1 g2 a2<br>
<br>
gis2. gis4 gis4 gis4 a4 h4<br>
<br>
c2. c4 h4 \bar "||" h4 c4 d4 %% need to get regular
"!" bar here<br>
<br>
}<br>
<br>
%% PDF p.278.<br>
<br>
bassX = \relative c {<br>
<br>
\clef "bass"<br>
<br>
\globalX<br>
<br>
\slurDashed<br>
<br>
% Music follows here.<br>
<br>
g1 c2 a2<br>
<br>
e'2. e4 e4 e4 a4 g4<br>
<br>
c,2. c4 g2*1/2 \once \override Staff.BarLine.transparent
=##t s4 r2 <br>
\bar "||" %% hack to have no bar in midle of the "bar" and
"||" bar at <br>
the end of it in this bar.<br>
<br>
<br>
}<br>
<br>
<br>
<br>
<br>
sopranoOneVerseX = \lyricmode {<br>
<br>
% Lyrics follow here.<br>
<br>
\set stanza = "10."<br>
<br>
Più lar -- ga~à po -- ve -- ri -- se Ro -- ma veg -- ge --
mi,<br>
<br>
Non cer -- chi~al<br>
<br>
}<br>
<br>
<br>
sopranoTwoVerseX = \lyricmode {<br>
<br>
% Lyrics follow here.<br>
<br>
\set stanza = "10."<br>
<br>
Più lar -- ga~à po -- ve -- ri -- se Ro -- ma veg -- ge --
mi,<br>
<br>
Non cer -- chi~al<br>
<br>
}<br>
<br>
<br>
bassVerseX = \lyricmode {<br>
<br>
% Lyrics follow here.<br>
<br>
\set stanza = "10."<br>
<br>
Più lar -- ga~à po -- ve -- ri -- se Ro -- ma veg -- ge --
mi,<br>
<br>
}<br>
<br>
<br>
<br>
choirPartX = \new ChoirStaff <<<br>
<br>
\new Staff \with {<br>
<br>
midiInstrument = "choir aahs"<br>
<br>
instrumentName = "S. I"<br>
<br>
\consists "Ambitus_engraver"<br>
<br>
} { \sopranoOneX }<br>
<br>
\addlyrics { \sopranoOneVerseX }<br>
<br>
\new Staff \with {<br>
<br>
midiInstrument = "choir aahs"<br>
<br>
instrumentName = "S. II"<br>
<br>
\consists "Ambitus_engraver"<br>
<br>
} { \sopranoTwoX }<br>
<br>
\addlyrics { \sopranoTwoVerseX }<br>
<br>
\new Staff \with {<br>
<br>
midiInstrument = "choir aahs"<br>
<br>
instrumentName = "B."<br>
<br>
\consists "Ambitus_engraver"<br>
<br>
} { \bassX }<br>
<br>
\addlyrics { \bassVerseX }<br>
<br>
>><br>
<br>
<br>
<br>
<br>
<br>
\score {<br>
<br>
<br>
<<<br>
<br>
\choirPartX<br>
<br>
>><br>
<br>
\layout { }<br>
\header {<br>
<br>
dedication = ##f<br>
<br>
title = ##f<br>
<br>
subtitle = ##f<br>
<br>
composer = ##f<br>
<br>
piece = "Decima parte."<br>
<br>
% Remove default LilyPond tagline<br>
<br>
tagline = ##f<br>
}<br>
}<br>
<br>
Ys Andreas Stenberg<br>
<br>
<br>
</blockquote>
</div>
</blockquote>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic