Hi
I'm trying to build a book of scores my sister has notated by hand for
guitar over many years.
I have something working but unsure if I'm doing it the recommended way.
I need each chapter in a separate ly file as below sample. This has
multiple labeled scores. In the example below I'm just passing
multiple structures to the staff/tab staff within the score block. It
works okay.
page4.ly
\version "2.25.28"
\paper {
#(set-paper-size "a4landscape")
system-system-spacing = #'((basic-distance . 10) (padding . 10))
}
global = {
\key c \major
\time 4/4
\override NoteHead.extra-spacing-width = #'(2 . 2)
}
\header {
title = "c - 120"
}
firstpos = \relative c' {
\global
\mark "First Position"
c,2\5
d\4
e
f
\break
}
example = \relative c' {
\mark "Blues scale 2 octaves"
c
d
e
}
scoreOne = \score {
\new StaffGroup \with {
\consists "Instrument_name_engraver"
} <<
\new Staff \with {
midiInstrument = "electric guitar (clean)"
} { \clef "treble_8" {\firstpos \example}
}
\new TabStaff \with {
stringTunings = #guitar-tuning
} {\firstpos \example}
>>
\layout {
#(layout-set-staff-size 25)
\omit StringNumber
indent = 0
}
}
\midi {
\tempo 4=100
}
Note, I'm having to assign the \score to the label. This prevents me from
previewing the file but I suppose I can deal with it.
In the Book.ly I have the code below. It works but you'll notice there is
tight coupling between files. Is there a less coupled way to do this?
\version "2.25.28"
\include "page4.ly"
\include "page5.ly"
\bookpart {
\scoreOne
\pageBreak
\scoreTwo
}
I have much more sheets to get through, I just want to make sure I'm using
the right foundation.
I will eventually get the book printed and hard bound for her 60th birthday
next year.
Appreciate any guidance. As I write this I suppose I could hack some
python to couple the files but will only do that if I need to.
Nel