Re: Appending coda on last line
2013/12/21 Thomas Morley > There are several comments in the code, ask if anything isn't clear. > There are so many things I don't understand. Fortunately I understood some little things so that I was able to integrate it in the whole score. e.g. I realized that it helps to split the staff definition completely for layout and midi. The default output of Frescobaldi is convenient in the first stage, but merging \with blocks may make it more difficult. Finally I completed this song and I can give it away as a christmas surprise. You saved my day. > HTH, > A lot! Best regards Helge ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Appending coda on last line
2013/12/21 Thomas Morley > which version do you use? > Could you provide a minimal exmple of your score-setup? > I.e.: > > I have a complete example. I tried to make it as small as possible. But therere are 120 lines. Probably this makes it easier to show my idea. At least it's complete and compileable. It uses an included file based on your mail from last year. There is one additional question. In the lyrics I would like to have stanzas. But not in the coda part. I tried to find a solution to have in the first measure of my example two lines of text, as this is suggested but commented out. Any idea or hint? Best Regards Helge \version "2.16.0" \language "deutsch" \include "codahelper.ily" global = { \key es \major \time 12/8 } tenorVoice = \relative c'' { \global \repeat volta 2 { b8 a b c b c d4.r | \mark\markup {\small "D.S. " \musicglyph #"scripts.segno" " al " \musicglyph #"scripts.coda"} } \space #10 \key es \major \mark \markup { \musicglyph #"scripts.coda" } b4. b c d | es1. \bar "|." } verseTenorVoice = \lyricmode { % stanza 1 % ha -- ben wir ei -- nes er -- kannt: | % stanza 2 wir a -- ber hal -- ten zu -- samm': | % coda größ -- te Schatz den's | gibt. } baritonVoice = \relative c' { \global \repeat volta 2 { d8 d d es es es d4. r | } \space #10 \key es \major << { g4. g as as | g1. } \new Voice { \voiceTwo es4. es es f | b,1. } >> } verseBaritonVoice = \lyricmode { % stanza 1 % ha -- ben wir ei -- nes er -- kannt | % stanza 2 wir a -- ber hal -- ten zu -- samm': | % coda größ -- te Schatz den's | gibt. } bassVoice = \relative c { \global \repeat volta 2 { b'8 b b a8 a a b4. b, | } \space #10 \key es \major b'4. g f b, | es1. \bar "|." } verseBassVoice = \lyricmode { \skip 1 \skip 1 \skip 1 \skip 1 \skip 1 \skip 1 \skip 1 Ein | größ -- te Schatz den's | gibt. } right = \relative c' { \global 4.| \space #10 \key es \major \braceBar #46 4. q | 1. \bar "|." } left = \relative c { \global b4. f b b | \space #10 \key es \major b'4. g f b, | es1. \bar "|." } tenorVoicePart = \new Staff { \tenorVoice } \addlyrics { \verseTenorVoice } baritonVoicePart = \new Staff { \baritonVoice } \addlyrics { \verseBaritonVoice } bassVoicePart = \new Staff { \clef bass \bassVoice } \addlyrics { \verseBassVoice } pianoPart = \new PianoStaff << \new Staff = "right" \right \new Staff = "left" { \clef bass \left } >> \score { << \tenorVoicePart \baritonVoicePart \bassVoicePart \pianoPart >> \layout { } } codahelper.ily Description: Binary data ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Appending coda on last line
2013/12/21 Helge Kruse : > Thomas Morley googlemail.com> writes: > >> some time ago I wrote the snippet below. It's a little bit hackish and >> would need some redesign/improvement for which I currently do not have >> the time. >> But for now it should work. >> > > Thomas, this is a long time ago. But I just need something similar now, only > with a little change. Now I have a SATB+piano score where I would need two > things > > - all staves should be connected by a vertical line. > - the SATB should get a bracket instead a brace. > > where the first would be nice but not really necessary. > > I tried to extend your snippet with a new definition for bracketBar as a copy > of your braceBar. I replaced all brace with bracket, hoping Lilypond will know > this. But Lilypond complains > "Unbound variable: make-left-bracket-markup" > > Where did you get make-left-brace-markup from? > Could you extend your snippet for a usage as described? > > Best Regards > Helge Hi Helge, which version do you use? Could you provide a minimal exmple of your score-setup? I.e.: \score { ??? } I'll try to have a look then. Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Appending coda on last line
Helge Kruse writes: > Thomas Morley googlemail.com> writes: > >> some time ago I wrote the snippet below. It's a little bit hackish and >> would need some redesign/improvement for which I currently do not have >> the time. >> But for now it should work. >> > > Thomas, this is a long time ago. But I just need something similar now, only > with a little change. Now I have a SATB+piano score where I would need two > things > > - all staves should be connected by a vertical line. > - the SATB should get a bracket instead a brace. > > where the first would be nice but not really necessary. > > I tried to extend your snippet with a new definition for bracketBar as a copy > of your braceBar. I replaced all brace with bracket, hoping Lilypond will > know > this. But Lilypond complains > "Unbound variable: make-left-bracket-markup" > > Where did you get make-left-brace-markup from? That would be one of the functions generated from #(define-markup-command (left-brace layout props ... -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Appending coda on last line
Thomas Morley googlemail.com> writes: > some time ago I wrote the snippet below. It's a little bit hackish and > would need some redesign/improvement for which I currently do not have > the time. > But for now it should work. > Thomas, this is a long time ago. But I just need something similar now, only with a little change. Now I have a SATB+piano score where I would need two things - all staves should be connected by a vertical line. - the SATB should get a bracket instead a brace. where the first would be nice but not really necessary. I tried to extend your snippet with a new definition for bracketBar as a copy of your braceBar. I replaced all brace with bracket, hoping Lilypond will know this. But Lilypond complains "Unbound variable: make-left-bracket-markup" Where did you get make-left-brace-markup from? Could you extend your snippet for a usage as described? Best Regards Helge ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Appending coda on last line
2012/5/19 Helge Kruse : > I have a score with "da capo al coda". And the coda is exactly one measure. > Therefore I don't want to put the coda on a new line. But it should be a gap > between the last measure of the main part and the coda. Additionally I would > like to indicate that the last measure _is_ the coda. > > I have written the measures, but I failed to put them on one line. Can you > help me? > > Helge Hi Helge, some time ago I wrote the snippet below. It's a little bit hackish and would need some redesign/improvement for which I currently do not have the time. But for now it should work. \version "2.15.36" rochadeAlpha = { \override Score.BreakAlignment #'break-align-orders = #(make-vector 3 '(left-edge ambitus breathing-sign staff-bar clef key-cancellation key-signature time-signature custos)) \once \override Score.TimeSignature #'space-alist = #'( (first-note fixed-space . 2.0) (right-edge extra-space . 0.5) (staff-bar minimum-space . 2.5)) \once \override Score.KeySignature #'space-alist = #'( (time-signature extra-space . 1.15) (first-note fixed-space . 1.0) (right-edge extra-space . 0.5) (staff-bar minimum-space . 2.5)) } move = { \rochadeAlpha \once \override Score.BarLine #'extra-offset = #'(-0.5 . 0) \once \override Score.SpanBar #'extra-offset = #'(-0.5 . 0) \once \override Score.Clef #'extra-offset = #'(-0.5 . 0) \once \override Score.KeyCancellation #'extra-offset = #'(-0.5 . 0) \once \override Score.KeySignature #'extra-offset = #'(-0.5 . 0) \once \override Score.TimeSignature #'extra-offset = #'(-0.5 . 0) } onceTextLengthOn = { \once\override TextScript #'extra-spacing-width = #'(0 . 0) \once\override TextScript #'extra-spacing-height = #'(-inf.0 . +inf.0) } staffStop = { \onceTextLengthOn \stopStaff \cadenzaOn } staffStart = { \once\override Score.BarNumber #'break-visibility = #'#(#f #t #t) \startStaff \cadenzaOff \set Staff.forceClef = ##t } braceBar = #(define-music-function (parser location braceExt)(number?) (define ((braceBarLine markup) grob) (ly:stencil-combine-at-edge (ly:bar-line::print grob) X LEFT (grob-interpret-markup grob markup) 0.4)) (define braceMarkup (make-line-markup (list (make-with-dimensions-markup '(0 . 0) '(0 . 0) (make-translate-markup ;(cons 0 ext) (cons 0 (+ 0.2 (/ braceExt -10))) (make-left-brace-markup (+ braceExt 20))) #{ \once\override Score.BarLine #'hair-thickness = #'1.6 \once \override Staff.BarLine #'stencil = #(braceBarLine braceMarkup) \bar "|" \move \once\override Score.RehearsalMark #'self-alignment-X = #LEFT #}) space = #(define-music-function (parser location width) (number?) #{ \noBreak \staffStop \onceTextLengthOn s1*1/100-\markup \with-dimensions #(cons 0 width) #'(0 . 0) \null \once \override Score.Clef #'font-size = #'2 \staffStart \noBreak #}) % Test AHrppartA = \relative c'{ << { c'8 d e a c, b16 a r8\fermata e'16 d^\markup{D.C.} } \\ { c16 a d a e' a, a' a, e8 d } >> | % 37 \bar "||" \key a \major \space #8 \braceBar #60 \mark\markup "Coda" \key a \major \clef treble b'16 cis d b cis a b gis 2\arpeggio\fermata \bar "|." } AHrppartB = \relative c{ \clef bass << { e'8 d c b a[ gis] } \\ { 2 e4 } >> 8\fermata r \key a \major \space #8 \clef bass \key a \major d8 fis cis e' a,16 e cis e a,4\fermata } \score { << \context PianoStaff << \set PianoStaff.instrumentName="Piano" \context Staff = AHrppartA\AHrppartA \context Staff = AHrppartB\AHrppartB >> >> } HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Appending coda on last line
I have a score with "da capo al coda". And the coda is exactly one measure. Therefore I don't want to put the coda on a new line. But it should be a gap between the last measure of the main part and the coda. Additionally I would like to indicate that the last measure _is_ the coda. I have written the measures, but I failed to put them on one line. Can you help me? Helge \version "2.15.38" AHrppartA = \relative c'{ << { c'8 d e a c, b16 a r8\fermata e'16 d^\markup{D.C.} } \\ { c16 a d a e' a, a' a, e8 d } >> | % 37 \bar "||" \key a \major } AHrppartB = \relative c{ \clef bass << { e'8 d c b a[ gis] } \\ { 2 e4 } >> 8\fermata r \key a \major } \score { << \context PianoStaff << \set PianoStaff.instrumentName="Piano" \context Staff = AHrppartA\AHrppartA \context Staff = AHrppartB\AHrppartB >> >> } BHrppartA =\relative c' { \key a \major \clef treble b'16 cis d b cis a b gis 2\arpeggio\fermata \bar "|." } BHrppartB =\relative c { \key a \major \clef bass d8 fis cis e' a,16 e cis e a,4\fermata } \score { << \context PianoStaff << \set PianoStaff.instrumentName="Piano" \context Staff = BHrppartA\BHrppartA \context Staff = BHrppartB\BHrppartB >> >> } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user