Method: Musicality::PartEngraver#make_preliminary

Defined in:
lib/musicality/printing/lilypond/part_engraver.rb

#make_preliminary(start_meter, start_key, master) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/musicality/printing/lilypond/part_engraver.rb', line 42

def make_preliminary start_meter, start_key, master
  clef = self.class.best_clef(@part.notes, @clefs)

  output = @indent + "\\new Staff {\n"
  increase_indent
  output += @indent + "\\set Staff.instrumentName = \\markup { \"#{@title}\" }\n"
  output += @indent + "\\clef #{clef}\n"
  if master
    output += @indent + start_meter.to_lilypond + "\n"
  end
  output += @indent + start_key.to_lilypond + "\n"
  return output
end