#ifndef COMMAND_HH
#define COMMAND_HH
#include "glob.hh"
-#include "mtime.hh"
+
#include "vray.hh"
#include "string.hh"
struct Command {
Commandcode code;
- Mtime when;
+ Real when;
/// analogous to argv[]
svec<String> args;
+ int priority;
+
+ /****************/
+
Command();
Command(Real w);
bool isbreak()const;
#include "misc.hh"
#include "glob.hh"
-#include "mtime.hh"
+
#include <math.h>
int intlog2(int d) {
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));
+/*
+ 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;
struct Keyword;
class Mixed_qp;
class Paperdef;
+class Score_commands;
+class Parametric_symbol;
+
+
+
+#endif // PROTO_HH
+
#include "glob.hh"
#include "string.hh"
-#include "mtime.hh"
+
struct Request {
Voice_element*elt;
#if 0
/// 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).
#endif
}
-Mtime
+Real
Voice::last() const
{
- Mtime l =start;
+ Real l =start;
for (PCursor<Voice_element*> vec(elts); vec.ok(); vec++)
l += vec->duration;
return l;
#ifndef VOICE_HH
#define VOICE_HH
-#include "mtime.hh"
+
#include "list.hh"
#include "request.hh"
/// class for horizontal stuff.
struct Voice {
PointerList<Voice_element *> 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;
///
struct Voice_element {
- Mtime duration;
+ Real duration;
const Voicegroup *group;
const Voice *voice;
PointerList<Request*> reqs;