From a0964b4edf6ffb964430339811b249989a901ff5 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 1 Dec 1996 21:08:37 +0000 Subject: [PATCH] lilypond-0.0.13 --- README | 8 +++--- Sources.make | 12 ++++++--- hdr/inputcommands.hh | 64 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 78 insertions(+), 6 deletions(-) create mode 100644 hdr/inputcommands.hh diff --git a/README b/README index d60b5b8ca4..757ed1d173 100644 --- a/README +++ b/README @@ -13,8 +13,10 @@ LilyPond is updated very frequently, the latest version is always available at: PREREQUISITES -TeX, the MusixTeX fonts, g++ > v2.7. The "flower" library, which should be -available from the same source you got this from. +TeX, the MusixTeX fonts, g++ > v2.7. The "flower" library, which +should be available from the same source you got this from. The +Makefile uses perl for trivial operation, but you could tinker with it +to use sed or awk. COMPILING @@ -70,7 +72,7 @@ stacktrace of the crash. HOW DOES IT WORK * Use The Source, Luke. If you don't know C++, you can try editing -.dstreamrc for copious debugging output. +.dstreamrc for copious debugging output. (use -d) * the subdir Documentation/ contains some in depth matter on LilyPond algorithms diff --git a/Sources.make b/Sources.make index c4d585bc6a..1dcc72a3c7 100644 --- a/Sources.make +++ b/Sources.make @@ -9,12 +9,13 @@ hdr= qlp.hh linespace.hh qlpsolve.hh\ parseconstruct.hh debug.hh globvars.hh keyword.hh\ misc.hh score.hh notename.hh lexer.hh symtable.hh\ symbol.hh main.hh dimen.hh paper.hh lookup.hh\ - sccol.hh stcol.hh scommands.hh melodicstaff.hh\ + sccol.hh stcol.hh staffcommands.hh melodicstaff.hh\ identifier.hh simplestaff.hh spanner.hh stem.hh\ notehead.hh leastsquares.hh beam.hh rest.hh\ swalker.hh bar.hh meter.hh accidental.hh\ key.hh keyitem.hh localkeyitem.hh simplewalker.hh\ - clef.hh clefitem.hh slur.hh + clef.hh clefitem.hh slur.hh inputcommands.hh\ + getcommand.hh inputmusic.hh mycc= qlp.cc qlpsolve.cc \ break.cc linespace.cc molecule.cc staffline.cc\ @@ -25,7 +26,7 @@ mycc= qlp.cc qlpsolve.cc \ warn.cc debug.cc symtable.cc boxes.cc\ pstaff.cc tstream.cc\ calcideal.cc scores.cc identifier.cc \ - dimen.cc paper.cc lookup.cc scommands.cc\ + dimen.cc paper.cc lookup.cc staffcommands.cc\ sccol.cc stcol.cc getcommands.cc simplestaff.cc\ melodicstaff.cc simpleprint.cc stem.cc\ spanner.cc notehead.cc leastsquares.cc beam.cc\ @@ -33,5 +34,10 @@ mycc= qlp.cc qlpsolve.cc \ simplewalker.cc bar.cc meter.cc accidental.cc\ key.cc keyitem.cc localkeyitem.cc\ clef.cc clefitem.cc texslur.cc slur.cc\ + inputcommands.cc inputmusic.cc\ + inputcursor.cc\ template1.cc template2.cc template3.cc template4.cc\ version.cc + + + diff --git a/hdr/inputcommands.hh b/hdr/inputcommands.hh new file mode 100644 index 0000000000..8222f9b74f --- /dev/null +++ b/hdr/inputcommands.hh @@ -0,0 +1,64 @@ +/* + inputcommands.hh -- part of LilyPond + + (c) 1996 Han-Wen Nienhuys +*/ + +#ifndef INPUTCOMMANDS_HH +#define INPUTCOMMANDS_HH +#include "pcursor.hh" +#include "proto.hh" +#include "plist.hh" +#include "real.hh" + +struct Input_cursor : public PCursor +{ + /// current measure info + Real whole_per_measure; + + /// where am i + Real whole_in_measure; + + /// Real last when which was read + Real last; + + int bars; + + Input_cursor(PCursor); + /// hmm. not safe. Should rethink cursor. + void operator++(int); + /** warning: no optor -- () defined.. */ + void reset(); + Real when()const; + void add(Command*); + void setpartial(Real); + void addbot(Command*); + void sync(); + void print()const; + void last_command_here(); +}; + +/// the list of commands in Score +struct Input_commands : public IPointerList { + Input_cursor ptr; + + /****************/ + + void find_moment(Real); + void do_skip(int & bars, Real & wholes); + void truncate(Real); + + Input_commands(); + Input_commands(Input_commands const&); + void add(Command*); + void reset(); + void print()const; + Staff_commands *parse() const; +}; + + +void +interpret_meter(Command *c, int &beats_per_meas, int& one_beat, + Real& whole_per_measure); +#endif // INPUTCOMMANDS_HH + -- 2.39.5