Add log messages for tempo and time points.

pull/3/head
Jonathan Moore Liles 2008-02-22 04:44:41 -06:00
parent 1ec4843580
commit 9246742be2
3 changed files with 16 additions and 14 deletions

View File

@ -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 ( )

View File

@ -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 ( )

View File

@ -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; }