File: prism-lilypond.html

package info (click to toggle)
node-prismjs 1.30.0%2Bdfsg%2B~1.26.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,220 kB
  • sloc: javascript: 27,628; makefile: 9; sh: 7; awk: 4
file content (60 lines) | stat: -rw-r--r-- 989 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<h2>Full example</h2>
<pre><code>\version "2.16.0"
\include "example-header.ily"

#(ly:set-option 'point-and-click #f)
#(set-global-staff-size 24)

global = {
    \time 4/4
    \numericTimeSignature
    \key c \major
}

cf = \relative c {
  \clef bass
  \global
  c4 c' b a |
  g a f d |
  e f g g, |
  c1
}

upper = \relative c'' {
  \global
  r4 s4 s2 |
  s1*2 |
  s2 s4 s
  \bar "||"
}

bassFigures = \figuremode {
  s1*2 | s4 &lt;6> &lt;6 4> &lt;7> | s1
}

\markup { "Exercise 3: Write 8th notes against the given bass line." }

\score {
  \new PianoStaff &lt;&lt;
    \new Staff {
      \context Voice = "added voice" \with {
        \consists "Balloon_engraver"
      }
      \upper
    }

    \new Staff = lower {
      &lt;&lt;
%      \context Voice = "cantus firmus" \with {
%        \consists "Balloon_engraver"
%      }
        \context Staff = lower \cf
        \new FiguredBass \bassFigures
      >>
    }
  >>
  \layout {}
  %{\midi {
    \tempo 4 = 120
  }%}
}</code></pre>