From 62dd93ec809da737c17d3110ad04e4b12a03ecfe Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 14 Dec 1996 12:05:15 +0000 Subject: [PATCH] lilypond-0.0.17 --- hdr/inputcommands.hh | 50 +++++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/hdr/inputcommands.hh b/hdr/inputcommands.hh index 083c830aa9..c5b594359b 100644 --- a/hdr/inputcommands.hh +++ b/hdr/inputcommands.hh @@ -6,58 +6,64 @@ #ifndef INPUTCOMMANDS_HH #define INPUTCOMMANDS_HH + #include "pcursor.hh" #include "proto.hh" #include "plist.hh" #include "real.hh" +struct Commands_at : public IPointerList { + Real when; -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; + /// idem - Input_cursor(PCursor); - /// hmm. not safe. Should rethink cursor. - void operator++(int); - /** warning: no optor -- () defined.. */ - void reset(); - Real when()const; + int bars; + + /****************/ + void print() const; + Real barleft(); void add(Input_command*); void setpartial(Real); - void addbot(Input_command*); - void sync(); - void print()const; - void last_command_here(); + Commands_at(const Commands_at&); + Commands_at(Real, Commands_at*prev); +}; + +struct Input_cursor : public PCursor +{ + /****************/ + Input_cursor(PCursor); + Real when()const; + void find_moment(Real w); + void prev() { operator --(0); } + void next() { operator ++(0); } }; /// the list of commands in Score -struct Input_commands : public IPointerList { +struct Input_commands : public IPointerList { Input_cursor ptr; - + /****************/ void find_moment(Real); - void do_skip(int & bars, Real & wholes); - void truncate(Real); - + void add(Input_command c); + void do_skip(int bars, Real wholes); + Input_commands(); Input_commands(Input_commands const&); - void add(Input_command); + void reset(); void print()const; Staff_commands *parse() const; }; + void interpret_meter(Input_command *c, int &beats_per_meas, int& one_beat, Real& whole_per_measure); -- 2.39.5