From 0692da91c6c3451eb248dfcc6496ae0450ad5d7a Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Fri, 25 Mar 2011 21:31:33 -0400 Subject: [PATCH] [warps] Be consistent, include Row and Beat. --- src/TimingData.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/TimingData.h b/src/TimingData.h index a43021acf8..6f43a3b818 100644 --- a/src/TimingData.h +++ b/src/TimingData.h @@ -929,6 +929,12 @@ public: * @return true if the row is inside a warp, false otherwise. */ bool IsWarpAtRow( int iRow ) const; + /** + * @brief Checks if the beat is inside a warp. + * @param fBeat the beat to focus on. + * @return true if the row is inside a warp, false otherwise. + */ + bool IsWarpAtBeat( float fBeat ) const { return IsWarpAtRow( BeatToNoteRow( fBeat ) ); } /** * @brief Add the WarpSegment to the TimingData. * @param seg the new WarpSegment.