Fix rounding error in bars/beats/ticks grid

The current_frame variable was being treated as if it were floating-point when it is actually an integer.  This led to an accumulation of error in the BBT grid.