# HG changeset patch # User Chris Cannam # Date 1457094575 0 # Node ID 59ae7e04f7e982f08be31c3d635dcee358c50861 # Parent fa1bec83441e85a606b394ec36fa5c2f56a98e5d# Parent 134ce7667256fb204f3bebd293c252bc57cbe07e Merge diff -r 134ce7667256 -r 59ae7e04f7e9 data/model/DenseThreeDimensionalModel.h --- a/data/model/DenseThreeDimensionalModel.h Thu Feb 25 13:02:57 2016 +0000 +++ b/data/model/DenseThreeDimensionalModel.h Fri Mar 04 12:29:35 2016 +0000 @@ -153,12 +153,12 @@ { switch (column) { case 0: { - RealTime rt = RealTime::frame2RealTime(row * getResolution(), - getSampleRate()); + RealTime rt = RealTime::frame2RealTime + (row * getResolution() + getStartFrame(), getSampleRate()); return rt.toText().c_str(); } case 1: - return int(row * getResolution()); + return int(row * getResolution() + getStartFrame()); default: return getValueAt(row, column - 2); } @@ -172,10 +172,10 @@ } virtual sv_frame_t getFrameForRow(int row) const { - return sv_frame_t(row) * getResolution(); + return sv_frame_t(row) * getResolution() + getStartFrame(); } virtual int getRowForFrame(sv_frame_t frame) const { - return int(frame / getResolution()); + return int((frame - getStartFrame()) / getResolution()); } protected: