#ifndef MAIN_HH
#define MAIN_HH
#include "proto.hh"
+
void debug_init();
void do_scores();
void add_score(Score * s);
void set_default_output(String s);
+const char *get_version();
+
#endif
Real
-duration_to_idealspace(Mtime d)
+duration_to_idealspace(Mtime d, Real w)
{
// see Roelofs, p. 57
- return WHOLE_SPACE * pow(ENGRAVERS_SPACE, log2(d));
+ return w * pow(ENGRAVERS_SPACE, log2(d));
}
#ifndef MISC_HH
#define MISC_HH
#include "mtime.hh"
-int intlog2(int d);
-Real duration_to_idealspace(Mtime d);
-class String;
-const char *get_version();
+int intlog2(int d);
+Real duration_to_idealspace(Mtime d,Real w);
+
#endif
--- /dev/null
+#include "paper.hh"
+#include "dimen.hh"
+
+Paperdef::Paperdef()
+{
+ width = convert_dimen(15,"cm"); // in cm for now
+ whole_width= convert_dimen(5,"cm");
+}
--- /dev/null
+
+
+#include "real.hh"
+#include "string.hh"
+struct Paperdef {
+ Paperdef();
+ String outfile;
+ Real width;
+ /// how much space does a whole note take (ideally?)
+ Real whole_width;
+ // maybe add pointsize?
+ // symbol init?
+};