\clef "tenor";c1^"{tenor}" \bar "||";
\clef "baritone";c1^"{baritone}" \bar "||";
\clef "varbaritone";c1^"{varbaritone}" \bar "||";
+ \clef "G_8";c1^"{sub 8?}" \bar "||";
+ \clef "G^8";c1^"{sup 8?}" \bar "|.";
\clef "bass";c1^"{bass}" \bar "||";
\clef "subbass";c1^"{subbass}" \bar "|.";
}
#include "scalar.hh"
#include "varray.hh"
#include "engraver.hh"
+#include "direction.hh"
/// where is c-0 in the staff?
class Clef_engraver : public Engraver {
public:
TRANSLATOR_CLONE(Clef_engraver);
int c0_position_i_;
+ Direction octave_dir_;
String clef_type_str_;
/* ************** */
#ifndef CLEFITEM_HH
#define CLEFITEM_HH
#include "item.hh"
+#include "text-def.hh"
+#include "direction.hh"
/**
Set a clef in a staff.
/// set because of existence of a bar
bool default_b_;
+ /// should we print an octave symbol (8), and where? (up=1, down=1)?
+ Direction octave_dir_;
+
+ /// text def to put above/below clef (ugh: should be const)
+ Text_def * octave_marker_td_p_;
+
/* *************** */
DECLARE_MY_RUNTIME_TYPEINFO;
SCORE_ELEM_CLONE(Clef_item);
--- /dev/null
+/*
+ mudela-version.cc -- implement Mudela_version
+
+ source file of the GNU LilyPond music typesetter
+
+ (c) 1998 Jan Nieuwenhuizen <jan@digicash.com>
+
+*/
+
+#include "mudela-version.hh"
+#include "string-convert.hh"
+#include "varray.hh"
+
+Mudela_version::Mudela_version (int major, int minor, int patch)
+{
+ major_i_ = major;
+ minor_i_ = minor;
+ patch_i_ = patch;
+}
+
+Mudela_version::Mudela_version (String str)
+{
+ Array<String> version;
+ version = String_convert::split_arr (str, '.');
+ assert (version.size () == 3);
+ major_i_ = version[0].value_i ();
+ minor_i_ = version[1].value_i ();
+ patch_i_ = version[2].value_i ();
+}
+
+String
+Mudela_version::str () const
+{
+ return String (major_i_) + "." + String (minor_i_) + "." + String (patch_i_);
+}
+
+Mudela_version::operator int () const
+{
+ // ugh
+ return 100000 * major_i_ + 1000 * minor_i_ + patch_i_;
+}
+
--- /dev/null
+% paper20.ly
+
+\include "table20.ly"
+\include "paper20.ly"
+default_paper = \paper {
+ \paper_twenty
+ Score = \translator {
+ \type Score_engraver;
+
+ \consists "Timing_engraver";
+ % uncomment to bar numbers on a whole system.
+%{
+ \consists "Bar_column_engraver";
+ \consists "Bar_number_engraver";
+%}
+ \consists "Span_score_bar_engraver";
+ \consists "Score_priority_engraver";
+ \consists "Priority_horizontal_align_engraver";
+ \consists "Vertical_align_engraver";
+
+
+ \accepts "Staff_group";
+ \accepts "Staff";
+ \accepts "Rhythmic_staff";
+ \accepts "Lyrics";
+ \accepts "Grand_staff";
+ SkipBars = "1";
+}
+
+
+}
+