diff --git a/Tempo_Point.H b/Tempo_Point.H index 9cb3b4b..29b4583 100644 --- a/Tempo_Point.H +++ b/Tempo_Point.H @@ -34,6 +34,12 @@ class Tempo_Point : public Track_Point snprintf( _label, 40, "%.1f", _tempo ); } +protected: + + void log_create ( void ) { printf( "tempo-point create %p %lu %f\n", this, _offset, _tempo ); } + void log_destroy ( void ) { printf( "tempo-point destroy %p\n", this ); } + void log_move ( void ) { printf( "tempo-point move %p %lu\n", this, _offset ); } + public: Tempo_Point ( nframes_t when, float bpm ) @@ -42,6 +48,8 @@ public: _offset = when; _make_label(); + + log_create(); } ~Tempo_Point ( ) diff --git a/Time_Point.H b/Time_Point.H index 0808073..ea67f9c 100644 --- a/Time_Point.H +++ b/Time_Point.H @@ -46,12 +46,20 @@ class Time_Point : public Track_Point snprintf( _label, 40, "%d/%d", _time.beats_per_bar, _time.note_type ); } +protected: + + void log_create ( void ) { printf( "time-point create %p %lu %d %d\n", this, _offset, _time.beats_per_bar, _time.note_type ); } + void log_destroy ( void ) { printf( "time-point destroy %p\n", this ); } + void log_move ( void ) { printf( "time-point move %p %lu\n", this, _offset ); } + public: Time_Point ( nframes_t when, int bpb, int note ) : _time( bpb, note ) { _offset = when; _make_label(); + + log_create(); } ~Time_Point ( ) diff --git a/Track_Point.H b/Track_Point.H index dfea019..e8f2a07 100644 --- a/Track_Point.H +++ b/Track_Point.H @@ -28,24 +28,10 @@ protected: char *_label; - - void log_create ( void ) - { - } - - void log_destroy ( void ) - { - } - - void log_move ( void ) - { - } - void log_change ( void ) { } - public: Fl_Align align ( void ) const { return FL_ALIGN_RIGHT; }