From 63e51b353ace3da4ded7bb051516125c2e7656ed Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 28 Oct 1996 22:17:13 +0000 Subject: [PATCH] lilypond-0.0.5 --- command.hh | 8 ++++++-- misc.cc | 4 ++-- proto.hh | 16 +++++++++++++++- request.hh | 4 ++-- voice.cc | 4 ++-- voice.hh | 10 +++++----- 6 files changed, 32 insertions(+), 14 deletions(-) diff --git a/command.hh b/command.hh index 6b835e964b..3e90067075 100644 --- a/command.hh +++ b/command.hh @@ -1,7 +1,7 @@ #ifndef COMMAND_HH #define COMMAND_HH #include "glob.hh" -#include "mtime.hh" + #include "vray.hh" #include "string.hh" @@ -15,9 +15,13 @@ enum Commandcode { struct Command { Commandcode code; - Mtime when; + Real when; /// analogous to argv[] svec args; + int priority; + + /****************/ + Command(); Command(Real w); bool isbreak()const; diff --git a/misc.cc b/misc.cc index 2be0f81dd6..3a8658f4a0 100644 --- a/misc.cc +++ b/misc.cc @@ -1,6 +1,6 @@ #include "misc.hh" #include "glob.hh" -#include "mtime.hh" + #include int intlog2(int d) { @@ -26,7 +26,7 @@ const double WHOLE_SPACE = 5.0; // should be settable from input Real -duration_to_idealspace(Mtime d, Real w) +duration_to_idealspace(Real d, Real w) { // see Roelofs, p. 57 return w * pow(ENGRAVERS_SPACE, log2(d)); diff --git a/proto.hh b/proto.hh index 394f3be14b..ba93e7a526 100644 --- a/proto.hh +++ b/proto.hh @@ -1,6 +1,13 @@ +/* + proto.hh -- part of LilyPond + + (c) 1996 Han-Wen Nienhuys +*/ + +#ifndef PROTO_HH +#define PROTO_HH #include "real.hh" -class Parametric_symbol; class Line_of_score; class Line_of_staff; class PCol; @@ -74,3 +81,10 @@ struct Identifier; struct Keyword; class Mixed_qp; class Paperdef; +class Score_commands; +class Parametric_symbol; + + + +#endif // PROTO_HH + diff --git a/request.hh b/request.hh index 79846e7e69..f2dc5f7144 100644 --- a/request.hh +++ b/request.hh @@ -4,7 +4,7 @@ #include "glob.hh" #include "string.hh" -#include "mtime.hh" + struct Request { Voice_element*elt; #if 0 @@ -172,7 +172,7 @@ struct Slur_req : Span_req { /// helper in the hierarchy struct Dynamic { - Mtime subtime; + Real subtime; }; /** Each dynamic is bound to one note ( a crescendo spanning multiple notes is thought to be made of two "dynamics": a start and a stop). diff --git a/voice.cc b/voice.cc index 907f229481..ae9342b487 100644 --- a/voice.cc +++ b/voice.cc @@ -51,10 +51,10 @@ Voice_element::print() const #endif } -Mtime +Real Voice::last() const { - Mtime l =start; + Real l =start; for (PCursor vec(elts); vec.ok(); vec++) l += vec->duration; return l; diff --git a/voice.hh b/voice.hh index 35537525ec..b580972b23 100644 --- a/voice.hh +++ b/voice.hh @@ -1,18 +1,18 @@ #ifndef VOICE_HH #define VOICE_HH -#include "mtime.hh" + #include "list.hh" #include "request.hh" /// class for horizontal stuff. struct Voice { PointerList elts; - Mtime start; + Real start; /****************/ - Mtime when(const Voice_element*)const; - Mtime last() const; + Real when(const Voice_element*)const; + Real last() const; Voice(); void add(Voice_element*); void print() const; @@ -30,7 +30,7 @@ struct Voicegroup { /// struct Voice_element { - Mtime duration; + Real duration; const Voicegroup *group; const Voice *voice; PointerList reqs; -- 2.39.5