" }
% 7sus4 denoted with ^7 wahh
-chExceptionMusic = {
- <c f g bes>1-\markup { \super "7" "wahh" }}
+chExceptionMusic = {
+ <c f g bes>1-\markup { \super "7" "wahh" }
+}
- % add to existing exceptions.
+% add to existing exceptions.
chExceptions = #(append
- (sequential-music-to-chord-exceptions chExceptionMusic #t)
- ignatzekExceptions)
+ (sequential-music-to-chord-exceptions chExceptionMusic #t)
+ ignatzekExceptions)
theMusic = \chordmode {
- c:7sus4 c:dim7/+f
- \set chordNameExceptions = #chExceptions
- c:7sus4 c:dim7/+f
+ c:7sus4 c:dim7/+f
+ \set chordNameExceptions = #chExceptions
+ c:7sus4 c:dim7/+f
}
-\layout { ragged-right = ##t }
+\layout {
+ ragged-right = ##t
+}
<< \context ChordNames \theMusic
\context Voice \theMusic
" }
\chords {
- c:7+
- \set majorSevenSymbol = \markup { "j7" }
- c:7+
+ c:7+
+ \set majorSevenSymbol = \markup { "j7" }
+ c:7+
}
<c d e f>4\laissezVibrer r
\override LaissezVibrerTieColumn #'tie-configuration
- = #'((-7 . -1)
- (-5 . -1)
- (-3 . 1)
- (-1 . 1))
+ = #'((-7 . -1)
+ (-5 . -1)
+ (-3 . 1)
+ (-1 . 1))
<c d e f>4\laissezVibrer r
}
Clusters are a device to denote that a complete range of notes is to be played.
" }
-\layout { ragged-right = ##t }
+\layout {
+ ragged-right = ##t
+}
fragment = \relative c' {
c4 f4 <e d'>4
By setting @{markFormatter@} we may choose a different style of mark printing. Also, marks can be specified manually, with a markup argument.
" }
-\paper { ragged-right = ##t }
+\paper {
+ ragged-right = ##t
+}
\relative c''{
\set Score.markFormatter = #format-mark-numbers
c1 | \mark \default
c1 | \mark \default
\set Score.markFormatter
- = #(lambda (mark context)
- (make-box-markup (format-mark-numbers mark context)))
+ = #(lambda (mark context)
+ (make-box-markup (format-mark-numbers mark context)))
c1 | \mark \default
\set Score.markFormatter
- = #(lambda (mark context)
- (make-circle-markup (format-mark-numbers mark context)))
+ = #(lambda (mark context)
+ (make-circle-markup (format-mark-numbers mark context)))
c1 | \mark \default
}
The @{\tag@} command marks music expressions with a name. These tagged expressions can be filtered out later. This mechanism can be used to make different versions of the same music. In this example, the top stave displays the music expression with all tags included. The bottom two staves are filtered: the part has cue notes and fingerings, but the score has not.
" }
-\layout { ragged-right= ##t }
+\layout {
+ ragged-right= ##t
+}
common =
\relative c'' {
-
c1
\relative c' <<
\tag #'part <<
}
-
\simultaneous {
\new Staff {
\set Staff.instrumentName = #"both"
By setting @{voltaOnThisStaff@}, repeats can be put also over other staves than the topmost one in a score.
" }
-\layout { ragged-right = ##t }
-vmus = { \repeat volta 2 c1 \alternative { d e } }
+\layout {
+ ragged-right = ##t
+}
+
+vmus = {
+ \repeat volta 2 c1 \alternative { d e }
+}
\relative c'' <<
\new StaffGroup <<
\paper {
#(define write-page-layout #t)
}
+
bla = \new Staff {
c1 c1
\break
#(newline)
#(ly:progress "Contents of: '~a'" (ly:gulp-file tweakFileName))
-
Proportional notation can be created by setting @{proportionalNotationDuration@}. Notes will be spaced proportional to the distance for the given duration.
" }
-\paper { ragged-right = ##t }
+\paper {
+ ragged-right = ##t
+}
\relative c''
<<
\set Score.proportionalNotationDuration = #(ly:make-moment 1 16)
- \new Staff { c8[ c c c c c] c4 c2 r2 }
- \new Staff { c2 \times 2/3 { c8 c c } c4 c1 }
+ \new Staff { c8[ c c c c c] c4 c2 r2 }
+ \new Staff { c2 \times 2/3 { c8 c c } c4 c1 }
>>
\new StaffGroup <<
\new Staff {
c1\break
- c\break c\break
+ c\break
+ c\break
+ }
+ \new Staff {
+ c1 c c
}
- \new Staff { c1 c c }
\new PianoStaff <<
\new Voice {
\set PianoStaff.instrumentName = #"piano"
c1_"normal"
\overrideProperty
- #"Score.NonMusicalPaperColumn"
- #'line-break-system-details
- #'((fixed-alignment-extra-space . 15))
+ #"Score.NonMusicalPaperColumn"
+ #'line-break-system-details
+ #'((fixed-alignment-extra-space . 15))
c_"fixed-aligment-extra-space"
\overrideProperty
- #"Score.NonMusicalPaperColumn"
- #'line-break-system-details
- #'((alignment-extra-space . 15))
+ #"Score.NonMusicalPaperColumn"
+ #'line-break-system-details
+ #'((alignment-extra-space . 15))
c_"aligment-extra-space"
}
{ c1 c c }
\paper {
#(define write-page-layout #t)
}
+
bla = \new Staff {
c1 c1
\break
#(newline)
#(ly:progress "Contents of: '~a'" (ly:gulp-file tweakFileName))
-
#(set-global-staff-size 11)
-\book {
- \score {
- \relative c'' \new PianoStaff <<
- \new Voice {
- c1_"followed by default spacing"\break
- c\break
+ \book {
+ \score {
+ \relative c'' \new PianoStaff <<
+ \new Voice {
+ c1_"followed by default spacing"
+ \break
+ c
+ \break
- \overrideProperty
- #"Score.NonMusicalPaperColumn"
- #'line-break-system-details
- #'((Y-extent . (-30 . 10)))
- c_"Big bounding box (property Y-extent)"\break
+ \overrideProperty
+ #"Score.NonMusicalPaperColumn"
+ #'line-break-system-details
+ #'((Y-extent . (-30 . 10)))
+ c_"Big bounding box (property Y-extent)"
+ \break
- \overrideProperty
- #"Score.NonMusicalPaperColumn"
- #'line-break-system-details
- #'((refpoint-Y-extent . (-37 . -10)))
- c_\markup {
- \column {
- "Refpoints further apart (property refpoint-Y-extent)."
- "Stretchable space runs between refpoints"
- }
- }
-
- \break
-
- \overrideProperty
- #"Score.NonMusicalPaperColumn"
- #'line-break-system-details
- #'((next-padding . 10))
+ \overrideProperty
+ #"Score.NonMusicalPaperColumn"
+ #'line-break-system-details
+ #'((refpoint-Y-extent . (-37 . -10)))
+ c_\markup {
+ \column {
+ "Refpoints further apart (property refpoint-Y-extent)."
+ "Stretchable space runs between refpoints" } }
+ \break
- c_"Followed by padding, ie unstretchable space. (property next-padding)" \break
- \overrideProperty
- #"Score.NonMusicalPaperColumn"
- #'line-break-system-details
- #'((next-space . 20))
- c_"Followed by stretchable space (property next-space)"\break
- c\break
- \overrideProperty
- #"Score.NonMusicalPaperColumn" #'line-break-system-details
- #'((bottom-space . 25.0))
- c_"25 staff space to the bottom of the page. (property bottom-space)"\break
+ \overrideProperty
+ #"Score.NonMusicalPaperColumn"
+ #'line-break-system-details
+ #'((next-padding . 10))
+ c_"Followed by padding, ie unstretchable space (property next-padding)."
+ \break
+ \overrideProperty
+ #"Score.NonMusicalPaperColumn"
+ #'line-break-system-details
+ #'((next-space . 20))
+ c_"Followed by stretchable space (property next-space)"
+ \break
+ c
+ \break
+ \overrideProperty
+ #"Score.NonMusicalPaperColumn"
+ #'line-break-system-details
+ #'((bottom-space . 25.0))
+ c_"25 staff space to the bottom of the page (property bottom-space)."
+ \break
}
- { c1 c c c c c c c }
- >>
- }
- \paper {
- ragged-last-bottom = ##f
- annotate-spacing = ##t
- between-system-space = 1.0
- #(set! text-font-defaults
- (acons
- 'font-size 6
- text-font-defaults)
-
- )
+ { c1 c c c c c c c }
+ >>
+ }
+
+ \paper {
+ ragged-last-bottom = ##f
+ annotate-spacing = ##t
+ between-system-space = 1.0
+ #(set! text-font-defaults
+ (acons
+ 'font-size 6
+ text-font-defaults))
}
}
Proportional notation can be created by setting @{proportionalNotationDuration@}. Notes will be spaced proportional to the distance for the given duration.
" }
-\paper { ragged-right = ##t }
+\paper {
+ ragged-right = ##t
+}
\relative c''
<<
\set Score.proportionalNotationDuration = #(ly:make-moment 1 16)
- \new Staff { c8[ c c c c c] c4 c2 r2 }
- \new Staff { c2 \times 2/3 { c8 c c } c4 c1 }
+ \new Staff { c8[ c c c c c] c4 c2 r2 }
+ \new Staff { c2 \times 2/3 { c8 c c } c4 c1 }
>>
The vertical positions of staff lines may be specified individually, by setting the @{line-positions@} property of the StaffSymbol.
" }
-\new Staff \relative c' {
+\new Staff \relative c' {
\override Staff.StaffSymbol #'line-positions = #'(-7 -2 0 3 9)
g c f b e a
}
The default font families for text can be overridden with @{make-pango-font-tree@}
" }
-\paper {
+\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.
- %}
+ run
+ lilypond -dshow-available-fonts blabla
+ to show all fonts available in the process log.
+ %}
- #(define fonts
+ #(define fonts
(make-pango-font-tree "Times New Roman"
"Nimbus Sans"
"Luxi Mono"
-;; "Helvetica"
-;; "Courier"
+;; "Helvetica"
+;; "Courier"
(/ myStaffSize 20)))
}
\relative {
- c'^\markup { roman: foo \bold bla \italic bar \italic \bold baz }
+ c'^\markup {
+ roman: foo \bold bla \italic bar \italic \bold baz
+ }
c'_\markup {
\override #'(font-family . sans)
{
" }
\layout {
- ragged-right = ##t
- \context {
- \Voice
- \consists Ambitus_engraver
- }
+ ragged-right = ##t
+ \context {
+ \Voice
+ \consists Ambitus_engraver
+ }
}
\relative
<<
- \new Staff { \time 2/4 c4 f' }
- \new Staff \relative {
- \time 2/4
- \key d \major
- cis as'
- }
+ \new Staff {
+ \time 2/4 c4 f'
+ }
+ \new Staff \relative {
+ \time 2/4
+ \key d \major
+ cis as'
+ }
>>
\autoBeamOff
c2( d4) e8[ c b c] f4
}
- \lyricsto "bla" \new Lyrics { bla ab blob blob }
- \lyricsto "bla" \new Lyrics {
+ \lyricsto "bla" \new Lyrics {
+ bla ab blob blob
+ }
+ \lyricsto "bla" \new Lyrics {
bla
\set ignoreMelismata = ##t
blob
}
- \lyricsto "bla" \new Lyrics {
+ \lyricsto "bla" \new Lyrics {
nes ted lyrics voice with more words than no tes
}
>>