\version "2.18.2" #(set-global-staff-size 20) % un-comment the next line to remove Lilypond tagline: % \header { tagline="" } \paper { print-all-headers = ##t % allow per-score headers % un-comment the next line for A5: % #(set-default-paper-size "a5" ) % un-comment the next line for no page numbers: % print-page-number = ##f % un-comment the next 3 lines for a binding edge: % two-sided = ##t % inner-margin = 20\mm % outer-margin = 10\mm % un-comment the next line for a more space-saving header layout: % scoreTitleMarkup = \markup { \center-column { \fill-line { \magnify #1.5 { \bold { \fromproperty #'header:dedication } } \magnify #1.5 { \bold { \fromproperty #'header:title } } \fromproperty #'header:composer } \fill-line { \fromproperty #'header:instrument \fromproperty #'header:subtitle \smaller{\fromproperty #'header:subsubtitle } } } } } \score { << \override Score.BarNumber #'break-visibility = #end-of-line-invisible \set Score.barNumberVisibility = #(every-nth-bar-number-visible 5) % === BEGIN JIANPU STAFF === \new RhythmicStaff \with { % Get rid of the stave but not the barlines. % This changes between Lilypond versions. % \remove Staff_symbol_engraver \consists "Accidental_engraver" % worked pre-2.18, but 2.18 results in missing barlines (adding Barline_engraver won't help). \override StaffSymbol #'line-count = #0 % tested in 2.15.40, 2.16.2, 2.18.0 and 2.18.2 \override BarLine #'bar-extent = #'(-2 . 2) % LilyPond 2.18: please make barlines as high as the time signature even though we're on a RhythmicStaff (2.16 and 2.15 don't need this although its presence doesn't hurt; Issue 3685 seems to indicate they'll fix it post-2.18) } { \new Voice="jianpu" { \override Staff.TimeSignature #'style = #'numbered \override Staff.Stem #'transparent = ##t \override Beam #'transparent = ##f % (needed for LilyPond 2.18 or the above switch will also hide beams) \override Stem #'direction = #DOWN \override Stem #'length-fraction = #0.5 \override Beam #'beam-thickness = #0.1 \override Beam #'length-fraction = #0.5 \override Voice.Rest #'style = #'neomensural % this size tends to line up better (we'll override the appearance) \override Accidental #'font-size = #-4 \override Tie #'staff-position = #2.5 \override TupletBracket #'bracket-visibility = ##t \tupletUp #(define (note-one grob grob-origin context) (if (grob::has-interface grob 'note-head-interface) (begin (ly:grob-set-property! grob 'stencil (grob-interpret-markup grob (make-lower-markup 0.5 (make-bold-markup "1"))))))) \set stemLeftBeamCount = #0 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-one c'8[ \mp #(define (note-three grob grob-origin context) (if (grob::has-interface grob 'note-head-interface) (begin (ly:grob-set-property! grob 'stencil (grob-interpret-markup grob (make-lower-markup 0.5 (make-bold-markup "3"))))))) \set stemLeftBeamCount = #1 \set stemRightBeamCount = #2 \applyOutput #'Voice #note-three e'16 #(define (note-five grob grob-origin context) (if (grob::has-interface grob 'note-head-interface) (begin (ly:grob-set-property! grob 'stencil (grob-interpret-markup grob (make-lower-markup 0.5 (make-bold-markup "5"))))))) \set stemLeftBeamCount = #2 \set stemRightBeamCount = #2 \applyOutput #'Voice #note-five g'16] \set stemLeftBeamCount = #0 \set stemRightBeamCount = #2 \applyOutput #'Voice #note-one c''16[^. \set stemLeftBeamCount = #2 \set stemRightBeamCount = #2 \applyOutput #'Voice #note-three e''16^. #(define (note-two grob grob-origin context) (if (grob::has-interface grob 'note-head-interface) (begin (ly:grob-set-property! grob 'stencil (grob-interpret-markup grob (make-lower-markup 0.5 (make-bold-markup "2"))))))) \set stemLeftBeamCount = #2 \set stemRightBeamCount = #2 \applyOutput #'Voice #note-two d''16^. #(define (note-seven grob grob-origin context) (if (grob::has-interface grob 'note-head-interface) (begin (ly:grob-set-property! grob 'stencil (grob-interpret-markup grob (make-lower-markup 0.5 (make-bold-markup "7"))))))) \set stemLeftBeamCount = #2 \set stemRightBeamCount = #2 \applyOutput #'Voice #note-seven b'16] \set stemLeftBeamCount = #0 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-one c''8[^. \set stemLeftBeamCount = #1 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-seven b'8] #(define (note-four grob grob-origin context) (if (grob::has-interface grob 'note-head-interface) (begin (ly:grob-set-property! grob 'stencil (grob-interpret-markup grob (make-lower-markup 0.5 (make-bold-markup "4"))))))) \applyOutput #'Voice #note-four f'4 #(define (note-six grob grob-origin context) (if (grob::has-interface grob 'note-head-interface) (begin (ly:grob-set-property! grob 'stencil (grob-interpret-markup grob (make-lower-markup 0.5 (make-bold-markup "6"))))))) | \set stemLeftBeamCount = #0 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-six a'8[ \set stemLeftBeamCount = #1 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-five g'8] \applyOutput #'Voice #note-seven b4[-\tweak #'Y-offset #-1.2 -\tweak #'X-offset #0.6 _. \set stemLeftBeamCount = #0 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-six a'8 \set stemLeftBeamCount = #1 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-five g'8] \applyOutput #'Voice #note-one c'4 | \set stemLeftBeamCount = #0 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-one c'8[ \set stemLeftBeamCount = #1 \set stemRightBeamCount = #2 \applyOutput #'Voice #note-three e'16 \set stemLeftBeamCount = #2 \set stemRightBeamCount = #2 \applyOutput #'Voice #note-five g'16] \set stemLeftBeamCount = #0 \set stemRightBeamCount = #2 \applyOutput #'Voice #note-one c''16[^. \set stemLeftBeamCount = #2 \set stemRightBeamCount = #2 \applyOutput #'Voice #note-three e''16^. \set stemLeftBeamCount = #2 \set stemRightBeamCount = #2 \applyOutput #'Voice #note-two d''16^. \set stemLeftBeamCount = #2 \set stemRightBeamCount = #2 \applyOutput #'Voice #note-seven b'16] \set stemLeftBeamCount = #0 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-one c''8[^. \set stemLeftBeamCount = #1 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-seven b'8] \applyOutput #'Voice #note-four f'4 | \set stemLeftBeamCount = #0 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-six a'8[ \set stemLeftBeamCount = #1 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-five g'8] \set stemLeftBeamCount = #0 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-four f'8[ \set stemLeftBeamCount = #1 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-seven b8]-\tweak #'X-offset #0.6 _. \applyOutput #'Voice #note-one c'4.[ \set stemLeftBeamCount = #0 \set stemRightBeamCount = #2 \applyOutput #'Voice #note-three e'16 \set stemLeftBeamCount = #2 \set stemRightBeamCount = #2 \applyOutput #'Voice #note-five g'16] | \set stemLeftBeamCount = #0 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-one c''8[^. \set stemLeftBeamCount = #1 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-one c''8]^. \set stemLeftBeamCount = #0 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-one c''8[^. \set stemLeftBeamCount = #1 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-one c''8]^. \applyOutput #'Voice #note-seven b'4.[ \set stemLeftBeamCount = #0 \set stemRightBeamCount = #2 \applyOutput #'Voice #note-two d'16 \set stemLeftBeamCount = #2 \set stemRightBeamCount = #2 \applyOutput #'Voice #note-four f'16] | \set stemLeftBeamCount = #0 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-six a'8[ \set stemLeftBeamCount = #1 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-six a'8] \set stemLeftBeamCount = #0 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-six a'8[ \set stemLeftBeamCount = #1 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-six a'8] \applyOutput #'Voice #note-five g'4.[ #(define (note-nought grob grob-origin context) (if (grob::has-interface grob 'rest-interface) (begin (ly:grob-set-property! grob 'stencil (grob-interpret-markup grob (make-lower-markup 0.5 (make-bold-markup "0"))))))) \set stemLeftBeamCount = #0 \set stemRightBeamCount = #1 \applyOutput #'Voice #note-nought r8] \bar "|." } } % === END JIANPU STAFF === >> \layout{} } \score { \unfoldRepeats << % === BEGIN MIDI STAFF === \new Staff { \new Voice="midi" { c'8 \mp e'16 g'16 c''16 e''16 d''16 b'16 c''8 b'8 f'4 | a'8 g'8 b4 a'8 g'8 c'4 | c'8 e'16 g'16 c''16 e''16 d''16 b'16 c''8 b'8 f'4 | a'8 g'8 f'8 b8 c'4. e'16 g'16 | c''8 c''8 c''8 c''8 b'4. d'16 f'16 | a'8 a'8 a'8 a'8 g'4. r8 } } % === END MIDI STAFF === >> \midi { \context { \Score tempoWholesPerMinute = #(ly:make-moment 84 4)}} }