From bfda82df7a637eeaaff45cb04e4dac70e142dd07 Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Sat, 29 Dec 2007 14:35:59 -0800 Subject: [PATCH] LSR: update. --- .../changing-the-default-text-font-family.ly | 44 +++++++ ...e-fragments-above-the-staff,-as-markups.ly | 33 ++++++ input/lsr/expressive/glissando-contempary.ly | 20 ++++ ...y-customized-polymetric-time-signatures.ly | 38 ++++++ input/lsr/pitches/glissando-contempary.ly | 20 ++++ ...itioning-segno-and-coda-with-line-break.ly | 109 ++++++++++++++++++ ...e-fragments-above-the-staff,-as-markups.ly | 33 ++++++ .../changing-the-default-text-font-family.ly | 44 +++++++ ...to-put-ties-between-syllables-in-lyrics.ly | 10 ++ 9 files changed, 351 insertions(+) create mode 100644 input/lsr/editorial/changing-the-default-text-font-family.ly create mode 100644 input/lsr/editorial/inserting-score-fragments-above-the-staff,-as-markups.ly create mode 100644 input/lsr/expressive/glissando-contempary.ly create mode 100644 input/lsr/percussion/heavily-customized-polymetric-time-signatures.ly create mode 100644 input/lsr/pitches/glissando-contempary.ly create mode 100644 input/lsr/repeats/positioning-segno-and-coda-with-line-break.ly create mode 100644 input/lsr/staff/inserting-score-fragments-above-the-staff,-as-markups.ly create mode 100644 input/lsr/text/changing-the-default-text-font-family.ly create mode 100644 input/lsr/text/how-to-put-ties-between-syllables-in-lyrics.ly diff --git a/input/lsr/editorial/changing-the-default-text-font-family.ly b/input/lsr/editorial/changing-the-default-text-font-family.ly new file mode 100644 index 0000000000..794a994a64 --- /dev/null +++ b/input/lsr/editorial/changing-the-default-text-font-family.ly @@ -0,0 +1,44 @@ +%% Do not edit this file; it is auto-generated from LSR! +\version "2.11.35" + +\header { texidoc = " +The default font families for text can be overridden with +@code{make-pango-font-tree}. +" } + +\paper { + % change for other default global staff size. + myStaffSize = #20 + %{ + run + lilypond -dshow-available-fonts blabla + to show all fonts available in the process log. + %} + + #(define fonts + (make-pango-font-tree "Times New Roman" + "Nimbus Sans" + "Luxi Mono" +;; "Helvetica" +;; "Courier" + (/ myStaffSize 20))) +} + +\relative { + c'^\markup { + roman: foo \bold bla \italic bar \italic \bold baz + } + c'_\markup { + \override #'(font-family . sans) + { + sans: foo \bold bla \italic bar \italic \bold baz + } + } + c'^\markup { + \override #'(font-family . typewriter) + { + mono: foo \bold bla \italic bar \italic \bold baz + } + } +} + diff --git a/input/lsr/editorial/inserting-score-fragments-above-the-staff,-as-markups.ly b/input/lsr/editorial/inserting-score-fragments-above-the-staff,-as-markups.ly new file mode 100644 index 0000000000..7293f7a5d5 --- /dev/null +++ b/input/lsr/editorial/inserting-score-fragments-above-the-staff,-as-markups.ly @@ -0,0 +1,33 @@ +%% Do not edit this file; it is auto-generated from LSR! +\version "2.11.35" + +\header { texidoc = " +The \\markup command is quite versatile. In this snippet, it contains a +\\score bloc instead of texts or marks. +" } + +tuning = \markup { + \score { + \new Staff \with { + \remove Time_signature_engraver + } { + \clef bass 1 + } + \layout { ragged-right = ##t } + } +} + + +\header { + title = "Solo Cello Suites" + subtitle = "Suite IV" + subsubtitle = \markup { "Originalstimmung:" \tuning } +} + +\relative { + \time 4/8 + \times 2/3 { c'8 d e } \times 2/3 {c d e} + \times 2/3 { c8 d e } \times 2/3 {c d e} + g8 a8 g8 a + g8 a8 g8 a +} diff --git a/input/lsr/expressive/glissando-contempary.ly b/input/lsr/expressive/glissando-contempary.ly new file mode 100644 index 0000000000..9671942f33 --- /dev/null +++ b/input/lsr/expressive/glissando-contempary.ly @@ -0,0 +1,20 @@ +%% Do not edit this file; it is auto-generated from LSR! +\version "2.11.35" + +\header { texidoc = " +Use a glissando without final note. Contemporary glissando ! +" } + +\relative c'' { + \override Glissando #'style = #'zigzag + \time 3/4 + c4 c + \cadenzaOn c\glissando \hideNotes c,, \unHideNotes \cadenzaOff + \bar "|" + } + +\addlyrics { Use cadenzaOn glissando hideNotes } +\addlyrics { unHideNotes cadenzaOff, skip_and_\bar \skip 4 } +\layout{raggedright = ##t} +\header { tagline="" } + diff --git a/input/lsr/percussion/heavily-customized-polymetric-time-signatures.ly b/input/lsr/percussion/heavily-customized-polymetric-time-signatures.ly new file mode 100644 index 0000000000..8f3963d725 --- /dev/null +++ b/input/lsr/percussion/heavily-customized-polymetric-time-signatures.ly @@ -0,0 +1,38 @@ +%% Do not edit this file; it is auto-generated from LSR! +\version "2.11.35" + +\header { texidoc = " +Though the set-time-signature thing was not the most essential here, it +has been included to show the beat of this piece (which is a template +of a real balkan song!). +" } + +#(define (compound-time one two three four five six seven eight nine ten num) + (markup #:override '(baseline-skip . 0) #:number + (#:line ((#:column (one num)) #:vcenter "+" (#:column (two num)) #:vcenter "+" (#:column (three num)) #:vcenter "+" (#:column (four num)) #:vcenter "+" (#:column (five num)) #:vcenter "+" (#:column (six num)) #:vcenter "+" (#:column (seven num)) #:vcenter "+" (#:column (eight num)) #:vcenter "+" (#:column (nine num)) #:vcenter "+" (#:column (ten num)))))) + + +melody = +{ \relative c'' { + \set Staff.instrumentName = "Bb Sop." + \key g \major \time 25/8 + \override Staff.TimeSignature #'stencil = #ly:text-interface::print + \override Staff.TimeSignature #'text = #(compound-time "3" "2" "2" "3" "2" "2" "2" "3" "2" "2" "8" ) + c8[ c c] d4 c8[ c] b[ c b] a4 g fis8[ e d c] b'[ c d] e4-^ fis8[ g] | \break + c,4. d4 c4 d4. c4 d c2 d4. e4-^ d4 | + c4. d4 c4 d4. c4 d c2 d4. e4-^ d4 | \break + c4. d4 c4 d4. c4 d c2 d4. e4-^ d4 | + c4. d4 c4 d4. c4 d c2 d4. e4-^ d4 | \break } +} +drum = { + \new DrumStaff \drummode + { + \bar "|:" bd4. ^\markup { "Drums" } sn4 bd \bar ":" sn4. bd4 sn \bar ":" + bd sn bd4. sn4 bd \bar ":|" + } +} + +{ + \melody + \drum +} diff --git a/input/lsr/pitches/glissando-contempary.ly b/input/lsr/pitches/glissando-contempary.ly new file mode 100644 index 0000000000..9671942f33 --- /dev/null +++ b/input/lsr/pitches/glissando-contempary.ly @@ -0,0 +1,20 @@ +%% Do not edit this file; it is auto-generated from LSR! +\version "2.11.35" + +\header { texidoc = " +Use a glissando without final note. Contemporary glissando ! +" } + +\relative c'' { + \override Glissando #'style = #'zigzag + \time 3/4 + c4 c + \cadenzaOn c\glissando \hideNotes c,, \unHideNotes \cadenzaOff + \bar "|" + } + +\addlyrics { Use cadenzaOn glissando hideNotes } +\addlyrics { unHideNotes cadenzaOff, skip_and_\bar \skip 4 } +\layout{raggedright = ##t} +\header { tagline="" } + diff --git a/input/lsr/repeats/positioning-segno-and-coda-with-line-break.ly b/input/lsr/repeats/positioning-segno-and-coda-with-line-break.ly new file mode 100644 index 0000000000..4e769b1a1a --- /dev/null +++ b/input/lsr/repeats/positioning-segno-and-coda-with-line-break.ly @@ -0,0 +1,109 @@ +%% Do not edit this file; it is auto-generated from LSR! +\version "2.11.35" + +\header { texidoc = " +If you want to place an exiting segno sign and add text like \"D.S. al +Coda\" next to it where usually the staff lines are you can use this +snippet. The coda will resume in a new line. Theres a variation +documented in this snippet, where the coda will remain on the same +line. +" } + +{ + \clef treble + \key g \major + \time 4/4 + \relative c'' { + \repeat unfold 2 { + | c4 c c c + } + + % Set segno sign as rehearsal mark and adjust size if needed + % \once \override Score.RehearsalMark #'font-size = #3 + \mark \markup { \musicglyph #"scripts.segno" } + \repeat unfold 2 { + | c4 c c c + } + + % Set coda sign as rehearsal mark and adjust size if needed + \once \override Score.RehearsalMark #'font-size = #4 + \mark \markup { \musicglyph #"scripts.coda" } + \repeat unfold 2 { + | c4 c c c + } + + % Should Coda be on anew line? + % Coda NOT on new line: use \nobreak + % Coda on new line: DON'T use \nobreak + % \noBreak + + \bar "||" + + % Set segno sign as rehearsal mark and adjust size if needed + \once \override Score.RehearsalMark #'break-visibility = #begin-of-line-invisible + % \once \override Score.RehearsalMark #'font-size = #3 + \mark \markup { \musicglyph #"scripts.segno" } + + % Here begins the trickery! + % \cadenzaOn will suppress the bar count and \stopStaff removes the staff lines. + \cadenzaOn + \stopStaff + % Some examples of possible text-displays + + % text line-aligned + % ================== + % Move text to the desired position + % \once \override TextScript #'extra-offset = #'( 2 . -3.5 ) + % | s1*0^\markup { D.S. al Coda } } + + % text center-aligned + % ==================== + % Move text to the desired position + % \once \override TextScript #'extra-offset = #'( 6 . -5.0 ) + % | s1*0^\markup { \center-align { D.S. "al Coda" } } + + % text and symbols center-aligned + % =============================== + % Move text to the desired position and tweak spacing for optimum text alignment + \once \override TextScript #'extra-offset = #'( 8 . -5.5 ) + \once \override TextScript #'word-space = #1.5 + | s1*0^\markup { \center-align { "D.S. al Coda" \line { \musicglyph #"scripts.coda" \musicglyph #"scripts.tenuto" \musicglyph #"scripts.coda"} } } + + % Increasing the unfold counter will expand the staff-free space + \repeat unfold 4 { + s4 s4 s4 s4 + \bar "" + } + % Resume bar count and show staff lines again + \startStaff + \cadenzaOff + + % Should Coda be on new line? + % Coda NOT on new line: DON'T use \break + % Coda on new line: use \break + \break + + % Show up, you clef and key! + \once \override Staff.KeySignature #'break-visibility = #end-of-line-invisible + \once \override Staff.Clef #'break-visibility = #end-of-line-invisible + + % Set coda sign as rehearsal mark and adjust size and position + + % Put the coda sign ontop of the (treble-)clef dependend on coda's line-position + + % Coda NOT on new line, use this: + % \once \override Score.RehearsalMark #'extra-offset = #'( -2 . 1.75 ) + + % Coda on new line, use this: + \once \override Score.RehearsalMark #'extra-offset = #'( -8.42 . 1.75 ) + + \once \override Score.RehearsalMark #'font-size = #5 + \mark \markup { \musicglyph #"scripts.coda" } + + % The coda + \repeat unfold 5 { + | c4 c c c + } + \bar"|." + } +} diff --git a/input/lsr/staff/inserting-score-fragments-above-the-staff,-as-markups.ly b/input/lsr/staff/inserting-score-fragments-above-the-staff,-as-markups.ly new file mode 100644 index 0000000000..7293f7a5d5 --- /dev/null +++ b/input/lsr/staff/inserting-score-fragments-above-the-staff,-as-markups.ly @@ -0,0 +1,33 @@ +%% Do not edit this file; it is auto-generated from LSR! +\version "2.11.35" + +\header { texidoc = " +The \\markup command is quite versatile. In this snippet, it contains a +\\score bloc instead of texts or marks. +" } + +tuning = \markup { + \score { + \new Staff \with { + \remove Time_signature_engraver + } { + \clef bass 1 + } + \layout { ragged-right = ##t } + } +} + + +\header { + title = "Solo Cello Suites" + subtitle = "Suite IV" + subsubtitle = \markup { "Originalstimmung:" \tuning } +} + +\relative { + \time 4/8 + \times 2/3 { c'8 d e } \times 2/3 {c d e} + \times 2/3 { c8 d e } \times 2/3 {c d e} + g8 a8 g8 a + g8 a8 g8 a +} diff --git a/input/lsr/text/changing-the-default-text-font-family.ly b/input/lsr/text/changing-the-default-text-font-family.ly new file mode 100644 index 0000000000..794a994a64 --- /dev/null +++ b/input/lsr/text/changing-the-default-text-font-family.ly @@ -0,0 +1,44 @@ +%% Do not edit this file; it is auto-generated from LSR! +\version "2.11.35" + +\header { texidoc = " +The default font families for text can be overridden with +@code{make-pango-font-tree}. +" } + +\paper { + % change for other default global staff size. + myStaffSize = #20 + %{ + run + lilypond -dshow-available-fonts blabla + to show all fonts available in the process log. + %} + + #(define fonts + (make-pango-font-tree "Times New Roman" + "Nimbus Sans" + "Luxi Mono" +;; "Helvetica" +;; "Courier" + (/ myStaffSize 20))) +} + +\relative { + c'^\markup { + roman: foo \bold bla \italic bar \italic \bold baz + } + c'_\markup { + \override #'(font-family . sans) + { + sans: foo \bold bla \italic bar \italic \bold baz + } + } + c'^\markup { + \override #'(font-family . typewriter) + { + mono: foo \bold bla \italic bar \italic \bold baz + } + } +} + diff --git a/input/lsr/text/how-to-put-ties-between-syllables-in-lyrics.ly b/input/lsr/text/how-to-put-ties-between-syllables-in-lyrics.ly new file mode 100644 index 0000000000..9c1073b3cd --- /dev/null +++ b/input/lsr/text/how-to-put-ties-between-syllables-in-lyrics.ly @@ -0,0 +1,10 @@ +%% Do not edit this file; it is auto-generated from LSR! +\version "2.11.35" + +\header { texidoc = " +This can be achieved by separating those syllables by tildes. +" } + +\lyrics { + wa~o~a +} -- 2.39.5