diff options
Diffstat (limited to 'stafftab-examples/example-score.ly')
-rw-r--r-- | stafftab-examples/example-score.ly | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/stafftab-examples/example-score.ly b/stafftab-examples/example-score.ly new file mode 100644 index 0000000000..9771f1275c --- /dev/null +++ b/stafftab-examples/example-score.ly @@ -0,0 +1,67 @@ +\version "2.14.2" +\include "stafftab.ly" + +\header { + copyright = "copyright" + title = "StaffTabâ„¢ for Lilypond" + subtitle = "Album title" + composer = "unknown" + instrument = "Grand Stick (Classic Tuning)" + arranger = "arr. Ricardo Wurmus" +} + +% ------------------------------------------------------ +% Named music +% ------------------------------------------------------ + +melody = { + \relative f' { + c'8-1\4 d-2 e4-3 f\3 g8-4 + <g-2\2 c,-3\3> ~ <g c,> + } +} + +bass = { + \relative f { + c,8-1\8 + d e f4 g + } +} + +% ------------------------------------------------------ +% Score structure +% ------------------------------------------------------ + +\score { + % two joined staves + \new GrandStaff + << + \new StaffTab { + \clef "treble_8" + \key g \major + \set Staff.midiInstrument = #"electric guitar (jazz)" + % upper six strings of the classic 10-string tuning + \set Staff.stringTunings = #(stick-string-group + (ten-string-stick stick-classic-tuning) + 'melody) + + \new StickVoice { + \melody + } + } + + \new StaffTab { + \clef "bass_8" + \key g \major + \set Staff.midiInstrument = #"electric guitar (jazz)" + % lower six strings of the classic 10-string tuning + \set Staff.stringTunings = #(stick-string-group + (ten-string-stick stick-classic-tuning) + 'bass) + + \new StickVoice { + \bass + } + } + >> +} |