From 8e4f66868142609575aded2095fb10203c14c37a Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 20:05:23 +0000 Subject: [PATCH] lilypond-0.1.44 --- init/engraver.ly | 2 +- init/property.ly | 4 ++ lily/beam-grav.cc | 3 +- lily/general-script-def.cc | 1 + lily/include/plet-engraver.hh | 2 + lily/include/plet-spanner.hh | 1 + lily/include/text-def.hh | 1 + lily/parser.y | 109 ++++++++++++++++++++++------------ lily/plet-engraver.cc | 31 +++++++++- lily/plet-spanner.cc | 11 +++- lily/text-def.cc | 8 +++ 11 files changed, 129 insertions(+), 44 deletions(-) diff --git a/init/engraver.ly b/init/engraver.ly index 7553bd0cde..6b8b41f49b 100644 --- a/init/engraver.ly +++ b/init/engraver.ly @@ -24,12 +24,12 @@ Voice = \translator { \consists "Dynamic_engraver"; \consists "Rest_engraver"; \consists "Stem_engraver"; + \consists "Plet_engraver"; \consists "Beam_engraver"; \consists "Abbreviation_beam_engraver"; \consists "Script_engraver"; \consists "Rhythmic_column_engraver"; \consists "Slur_engraver"; - \consists "Plet_engraver"; \accepts "Thread"; } diff --git a/init/property.ly b/init/property.ly index 4faeb4c6b5..372567863c 100644 --- a/init/property.ly +++ b/init/property.ly @@ -12,6 +12,10 @@ name value effect shorthand ydirection -1 force stem down \stemdown ydirection 0 stem direction free \stemboth ydirection 1 force stem up \stemup +pletvisibility 0 show nothing +pletvisibility 1 show number +pletvisibility 2 show number, and bracket-if-no-beam +pletvisibility 4 show number, and bracket [Score?] beamslopedamping 0 no damping \beamslopeproportional diff --git a/lily/beam-grav.cc b/lily/beam-grav.cc index 6592166fa2..ecb00ee083 100644 --- a/lily/beam-grav.cc +++ b/lily/beam-grav.cc @@ -28,8 +28,7 @@ Beam_engraver::do_try_request(Request*r) if (!mus_l) return false; - Beam_req * b = mus_l->beam(); - + Beam_req* b = mus_l->beam (); if (!b) return false; diff --git a/lily/general-script-def.cc b/lily/general-script-def.cc index 2a014cc542..66370135f8 100644 --- a/lily/general-script-def.cc +++ b/lily/general-script-def.cc @@ -10,6 +10,7 @@ #include "general-script-def.hh" #include "debug.hh" #include "atom.hh" + Direction General_script_def::staff_dir() const { diff --git a/lily/include/plet-engraver.hh b/lily/include/plet-engraver.hh index 3a4e4d31c6..16d0beab35 100644 --- a/lily/include/plet-engraver.hh +++ b/lily/include/plet-engraver.hh @@ -33,6 +33,8 @@ protected: private: Drul_array span_reqs_drul_; + Drul_array beam_mom_drul_; + Drul_array span_mom_drul_; Plet_spanner* plet_spanner_p_; }; diff --git a/lily/include/plet-spanner.hh b/lily/include/plet-spanner.hh index 4f2fa66eab..8caa2d0147 100644 --- a/lily/include/plet-spanner.hh +++ b/lily/include/plet-spanner.hh @@ -22,6 +22,7 @@ public: Text_def* tdef_p_; Drul_array stem_l_drul_; + int visibility_i_; protected: virtual Molecule* brew_molecule_p () const; diff --git a/lily/include/text-def.hh b/lily/include/text-def.hh index 48faa16f15..185ea715c7 100644 --- a/lily/include/text-def.hh +++ b/lily/include/text-def.hh @@ -30,6 +30,7 @@ public: String style_str_; virtual void do_print() const; + virtual Direction staff_dir() const; virtual Atom get_atom (Paper_def* p, Direction dir_) const; virtual ~Text_def() {}; virtual bool do_equal_b (const General_script_def*) const; diff --git a/lily/parser.y b/lily/parser.y index 2480a041e6..159978d3dc 100644 --- a/lily/parser.y +++ b/lily/parser.y @@ -12,7 +12,7 @@ #include // mmm -#define MUDELA_VERSION "0.1.8" +#define MUDELA_VERSION "0.1.9" #include "scalar.hh" #include "translation-property.hh" @@ -168,7 +168,7 @@ yylex (YYSTYPE *s, void * v_l) %token E_EXCLAMATION E_SMALLER E_BIGGER E_CHAR %type dots -%token INT +%token DIGIT %token NOTENAME_ID %token DURATION_IDENTIFIER %token IDENTIFIER @@ -188,6 +188,7 @@ yylex (YYSTYPE *s, void * v_l) %token REAL %token DURATION RESTNAME %token STRING +%token UNSIGNED %token POST_QUOTES %token PRE_QUOTES @@ -199,7 +200,7 @@ yylex (YYSTYPE *s, void * v_l) %type open_plet_parens close_plet_parens %type simple_element music_elt full_element lyrics_elt command_elt %type abbrev_type -%type int +%type int unsigned %type script_dir %type identifier_init %type explicit_steno_duration notemode_duration @@ -222,12 +223,13 @@ yylex (YYSTYPE *s, void * v_l) %type dim real %type unit %type abbrev_command_req -%type post_request command_req verbose_command_req +%type post_request structured_post_request +%type command_req verbose_command_req %type script_req dynamic_req %type score_block score_body %type shape_array %type