Deutsches Lilypond Forum (Archiv)

Allgemein => Fragen zu Funktionen => Thema gestartet von: Andreas am Freitag, 21. Mai 2010, 08:48

Titel: Problem bei Mensurtakstrichen
Beitrag von: Andreas am Freitag, 21. Mai 2010, 08:48
Hallo,

nach der Anleitung habe ich mittels StaffGroup und
\override BarLine #'transparent = ##tMensurtaktstriche bekommen. Am Ende möchte ich aber einen durchgezogenen Strich, was ich mit
\once\override BarLine #'transparent = ##fversuche, aber leider funktioniert das nicht, die Taktstriche bleiben nur zwischen den Zeilen. Was mache ich falsch? Bei einem anderen Stück (bei dem das Ende mit der Taktgrenze zusammenfällt, d.h. dort gibt es kein Auftakt) hat das analog funktioniert. Meine gesamte Datei ist unten.

Danke für die Hilfe,

Andreas


% This document was generated by Canorus, version 0.7svn
\version "2.10.0"

\header {
title          = \markup {"A round of three country dances in one"}
subtitle       = \markup {"from “Pammelia” No. 74"}
composer       = \markup {"Thomas Ravenscroft (c.1582–c.1635)"}
arranger       = \markup {""}
poet           = \markup {""}
texttranslator = \markup {""}
dedication     = \markup {""}
copyright      = \markup {""}
}

ficta = { \once \set suggestAccidentals = ##t }
cautionary = { \once \override AccidentalSuggestion #'parenthesized = ##t }

% Sopran
ContextZeroVoiceZero = \relative c'' {
\clef "treble" \time 6/4 \key f \major \partial 4 g4 | % bar 1
bes4. c8 d4 d4. e8( fis4) | % bar 2
g2 d4 d2 g,4 | % bar 3
bes4. c8 d4 a2 c4 | % bar 4
bes a2 g g4 | % bar 5
bes4. c8 d4 d4. e8( fis4) | % bar 6
g2 d4 d2 g,4 | % bar 7
bes4. c8 d4 a2 c4 | % bar 8
bes a2 g g4 | % bar 9
bes4. bes8 bes4 c2 c4 | % bar 10
d e2 f es4 | % bar 11
d4. c8 es4 d4. c8 d4 | % bar 12
b c2 b g4 | % bar 13
bes4. bes8 bes4 c2 c4 | % bar 14
d e2 f es4 | % bar 15
d4. c8 es4 d4. c8 d4 | % bar 16
b c2 b
\once\override BarLine #'transparent = ##f \bar "|." % bar 17
}

% TextSopran
TextSopran = \lyricmode {
Now foot it as I do, __ _ Tom boy, Tom, Now foot it as I do, Swi -- then -- a, now foot it as I do, __ _ Tom boy, Tom, now foot it as I do, Swi -- then -- a: And Hick thou must trick it all a -- lone, Till Ro -- bin come leap -- ing in be -- tween -- a. And Hick, thou must trick it all a -- lone, Till Ro -- bin come leap -- ing In be -- tween -- a.
}

% Alt
ContextTwoVoiceZero = \relative c'' {
\clef "treble" \time 6/4 \key f \major \partial 4 g4 | % bar 1
d'2 d4 c2 c4 | % bar 2
d4. c8 bes4 a2 g4 | % bar 3
d'4. es8 d4 c2 es4 | % bar 4
d2. g,2 g4 | % bar 5
d'2 d4 c2 c4 | % bar 6
d4. c8 bes4 a2 g4 | % bar 7
d'4. es8 d4 c2 es4 | % bar 8
d2. g,2 r4 | % bar 9
r1. | % bar 10
r2. c | % bar 11
g2 bes4 a2. | % bar 12
g2 r4 d'2. | % bar 13
g,2 bes4 a2 r4 | % bar 14
g2 r4 c2. | % bar 15
g2 bes4 a2. | % bar 16
g4. g8 \ficta\cautionary e'?4 d2
\once\override BarLine #'transparent = ##f \bar "|." % bar 17
}

% TextAlt
TextAlt = \lyricmode {
The cramp is in ma purse full __ _ score, No mo -- ney will bide there -- in -- a: And if I had some salve there -- _ fore, O light -- ly then would I sing -- a. Hey ho, the cramp -- a. Hey ho, the cramp -- a, hey ho, the cramp -- a, the cramp -- a. _ _ _ _ _ _ _ _ _ _ _ _
}

% Tenor
ContextFourVoiceZero = \relative c' {
\clef "treble_8" \time 6/4 \key f \major \partial 128*32 r4 | % bar 1
g4. a8 bes4 a4. bes8 c4 | % bar 2
bes4. a8 g4 \ficta\cautionary f?2 bes4 | % bar 3
bes2 bes4 c2 c4 | % bar 4
d2. d2 r4 | % bar 5
g,4. a8 bes4 a4. bes8 c4 | % bar 6
bes4. a8 g4 \ficta\cautionary f?2 bes4 | % bar 7
bes2 bes4 c2 c4 | % bar 8
d2. d2 r4 | % bar 9
d4. es8 d4 c4. bes8 a4 | % bar 10
bes4. a8 g4 f4. g8 a4 | % bar 11
bes2 g4 fis4. e8( \ficta\cautionary fis?4) | % bar 12
g2. g2 r4 | % bar 13
d'4. es8 d4 c4. bes8 a4 | % bar 14
bes4. a8 g4 f4. g8 a4 | % bar 15
bes2 g4 fis4. e8( \ficta\cautionary fis?4) | % bar 16
g2. g2
\once\override BarLine #'transparent = ##f \bar "|." % bar 17

}

% TextTenor
TextTenor = \lyricmode {
Ro -- bin Hood, Ro -- bin Hood, said Lit -- tle John, come dance be -- fore the Queen -- a. Ro -- bin Hood, Ro -- bin Hood, said Lit -- tle John, come dance be -- fore the Queen -- a, In a red pet -- ti -- coat and a green jack -- et, A white hose and a __ _ green -- a. In a red pet -- ti -- coat and a green jack -- et, A white hose and a __ _ green -- a.
}

% Bass
ContextSixVoiceZero = \relative c' {
\clef "bass" \time 6/4 \key f \major \partial 128*32 g4 | % bar 1
g2 d4 f4. g8 a4 | % bar 2
g2 g4 d2 g4 | % bar 3
g2 d4 f2 c4 | % bar 4
g' d2 g g4 | % bar 5
g2 d4 f4. g8 a4 | % bar 6
g2 g4 d2 g4 | % bar 7
g2 d4 f2 c4 | % bar 8
g' d2 g g4 | % bar 9
g2 d4 f4. g8 f4 | % bar 10
bes, c2 f c4 | % bar 11
g'4. c,8 g'4 d2 d4 | % bar 12
e c2 g' g4 | % bar 13
g2 d4 f4. g8 f4 | % bar 14
bes, c2 f c4 | % bar 15
g'4. c,8 g'4 d2 d4 | % bar 16
e c2 g'
\once\override BarLine #'transparent = ##f \bar "|." % bar 17

}

% TextBass
TextBass = \lyricmode {
Sing af -- ter fel -- lows as you hear me, A toy that sel -- dom is seen -- a. Sing af -- ter, fel -- lows as you hear me, a toy that sel -- dom is seen -- a: Three coun -- try dan -- ces in one to be. A pret -- ty con -- ceit as I ween -- a. Three coun -- try dan -- ces in one to be, A pret -- ty con -- ceit as I wenn -- a. _ _ _
}

\score {
\new StaffGroup <<
\new Staff {
% Sopran
\new Voice = "ContextZeroVoiceZeroVirtual" {  \ContextZeroVoiceZero }
}
% TextSopran
\new Lyrics = "TextSopranVirtual"
\new Staff {
% Alt
\new Voice = "ContextTwoVoiceZeroVirtual" {  \ContextTwoVoiceZero }
}
% TextAlt
\new Lyrics = "TextAltVirtual"
\new Staff {
% Tenor
\new Voice = "ContextFourVoiceZeroVirtual" {  \ContextFourVoiceZero }
}
% TextTenor
\new Lyrics = "TextTenorVirtual"
\new Staff {
% Bass
\new Voice = "ContextSixVoiceZeroVirtual" {  \ContextSixVoiceZero }
}
% TextBass
\new Lyrics = "TextBassVirtual"

% Voice assignment:
\set Score.melismaBusyProperties = #'()
\context Lyrics = "TextSopranVirtual" { \lyricsto "ContextZeroVoiceZeroVirtual" \TextSopran }
\context Lyrics = "TextAltVirtual" { \lyricsto "ContextTwoVoiceZeroVirtual" \TextAlt }
\context Lyrics = "TextTenorVirtual" { \lyricsto "ContextFourVoiceZeroVirtual" \TextTenor }
\context Lyrics = "TextBassVirtual" { \lyricsto "ContextSixVoiceZeroVirtual" \TextBass }
>>
\layout {
\context {%
\Score
% no bar lines in staves or lyrics
\override BarLine #'transparent = ##t
}
\context {
\Voice
% show ambitus for each voice
\consists Ambitus_engraver
}
}
}

% To adjust the points size of notes and fonts, it can be done like this:
#(set-global-staff-size 19.0)

% Some examples to adjust the page size:
% \paper { #(set-paper-size "a3") }
% \paper { #(set-paper-size "a4" 'landscape) }
% But to move the music on the page this needs to be done:
% \paper{
% paper-width = 16\cm
% line-width = 12\cm
% left-margin = 2\cm
% top-margin = 3\cm
% bottom-margin = 3\cm
% ragged-last-bottom = ##t
% }

% Don't display "Music engraving by LilyPond version"
\header {
tagline = ##f
}
Titel: Re:Problem bei Mensurtakstrichen
Beitrag von: RobUr am Freitag, 21. Mai 2010, 09:03
Den richtigen Context ansprechen:
\once \override Staff.BarLine #'transparent = ##f

Grüße, Robert
Titel: Re:Problem bei Mensurtakstrichen
Beitrag von: Andreas am Freitag, 21. Mai 2010, 10:06
Danke für die schnelle Antwort, jetzt geht's.

Andreas