From: Graham Percival Date: Sat, 20 Jan 2007 19:49:46 +0000 (-0800) Subject: Example of populating auto-LSR with snippets. X-Git-Tag: release/2.11.13-1~13^2~5 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=33aea9c0d161f3ed0166bef403b6daf52d74847a;p=lilypond.git Example of populating auto-LSR with snippets. --- diff --git a/input/lsr/advanced/Alternating-beam-directions.ly b/input/lsr/advanced/Alternating-beam-directions.ly new file mode 100644 index 0000000000..1298e8fb32 --- /dev/null +++ b/input/lsr/advanced/Alternating-beam-directions.ly @@ -0,0 +1,31 @@ +\version "2.10.12" + +\header { texidoc = " +

The eighth notes may be seemingly attached to different + beams, and the corresponding notes connected by ties. + Such a situation may occur, for example, in the cello suites. +" } + +wipeNote = { + \once \override NoteHead #'transparent = ##t + \once \override Stem #'transparent = ##t +} +\layout { raggedright = ##t } + + +\relative c''<< { + c8[~ + \wipeNote + c8 + c8~ + \wipeNote + c + c]~ + \wipeNote + c\noBeam +}\\ + { s8 c8 [ s c s c] } + + +>> + diff --git a/input/lsr/trick/Adding-ambiti-per-voice.ly b/input/lsr/trick/Adding-ambiti-per-voice.ly new file mode 100644 index 0000000000..58d3f28bf1 --- /dev/null +++ b/input/lsr/trick/Adding-ambiti-per-voice.ly @@ -0,0 +1,22 @@ +\version "2.10.12" + +\header { texidoc = " +

Ambits can be added per voice. In that case, the +ambitus must be moved manually to prevent collisions. +" } + +\new Staff << + \new Voice \with { + \consists "Ambitus_engraver" + } \relative c'' { + \voiceOne + c4 a d e f2 + } + \new Voice \with { + \consists "Ambitus_engraver" + } \relative c' { + \voiceTwo + es4 f g as b2 + } +>> + diff --git a/input/lsr/trick/Caesura-railtracks-with-fermata.ly b/input/lsr/trick/Caesura-railtracks-with-fermata.ly new file mode 100644 index 0000000000..d466facfb6 --- /dev/null +++ b/input/lsr/trick/Caesura-railtracks-with-fermata.ly @@ -0,0 +1,25 @@ +\version "2.10.12" + +\header { texidoc = " +A caesura is sometimes denoted with a double \"railtracks\" breath mark with a fermata sign positioned over the top of the railtracks. This snippet should present an optically pleasing combination of railtracks and a fermata. + +It works for lilypond 2.5 and above. +" } + +{ + \context Voice { + c''2. + % use some scheme code to construct the symbol + \override BreathingSign #'text = #(markup #:line + (#:musicglyph "scripts.caesura" + #:translate (cons -1.75 1.6) + #:musicglyph "scripts.ufermata" + )) + \breathe c''4 + % set the breathe mark back to normal + \revert BreathingSign #'text + c''2. \breathe c''4 + \bar "|." + } +} + diff --git a/input/lsr/trick/Tramlines-and-Feta-font-caesurae.ly b/input/lsr/trick/Tramlines-and-Feta-font-caesurae.ly new file mode 100644 index 0000000000..6d8fb0af80 --- /dev/null +++ b/input/lsr/trick/Tramlines-and-Feta-font-caesurae.ly @@ -0,0 +1,66 @@ +\version "2.10.12" + +\header { texidoc = " +This snippet shows a way to insert available Feta font symbols as caesurae and ways to create tramlines. Normally a caesura is indicated by a pair of oblique lines lying through the top line of the staff, also called a fetura, tramlines, railroad tracks, or a cut-off. LilyPond provides several alternatives. A stylized version of tramlines is called caesura. The normal tramline form, here called fetura, is not in the Feta font set, but can be constructed using the / character. +" } + +\version "2.8.4" +%{ This snippet shows a way to insert available Feta font symbols as caesurae + and ways to create tramlines. Normally a caesura is indicated by a pair of + oblique lines lying through the top line of the staff, also called a fetura, + tramlines, railroad tracks, or a cut-off. LilyPond provides several + alternatives. A stylized version of tramlines is called caesura. The normal + tramline form, here called fetura, is not in the Feta font set, but can be + constructed using the / character.%} + \relative c'' { +\time 3/4 +e4 d e + % default +e_\markup { "default - breathe" } + \breathe d e | + % rcomma + % by default, \breathe uses the rcomma, just as if saying: + \override BreathingSign #'text = + #(make-musicglyph-markup "scripts.rcomma") +e_\markup rcomma \breathe d e | + % lcomma + \override BreathingSign #'text = + #(make-musicglyph-markup "scripts.lcomma") +e_\markup lcomma \breathe d e | + % rvarcomma + \override BreathingSign #'text = + #(make-musicglyph-markup "scripts.rvarcomma") +e_\markup rvarcomma \breathe d e | \break + % lvarcomma + \override BreathingSign #'text = + #(make-musicglyph-markup "scripts.lvarcomma") +e_\markup lvarcomma \breathe d e | + % upbow or wedge + \override BreathingSign #'text = + #(make-musicglyph-markup "scripts.upbow") +e_\markup upbow \breathe d e | + % caesura + \override BreathingSign #'text = + #(make-musicglyph-markup "scripts.caesura") +e_\markup caesura \breathe d e | + % fetura, tramlines, or railroad tracks +<<{ +\hideNotes a16 a a a a4 a \unHideNotes +}\\{ + \once\override TextScript #'extra-offset = #'(4.0 . -2.7) +e^\markup {\fontsize #2 {\bold "/" \hspace #-1.4 \bold "/"}} +d_\markup { \hspace #-10 "fetura" } e | +}>> + \once\override TextScript #'font-name = #"cmb10" + \once\override TextScript #'extra-offset = #'(4.0 . -2.2) +e^\markup {\magnify #1.3 { "/" \hspace #-1.5 "/"}} + \once \override Score.SeparationItem #'padding = #4 +d_\markup { \hspace #-10 "fetura" } e | + +e d e \bar "||" + }%end relative + \layout{ +indent = 0.00\in + }%end layout + +