From 6e776faf249d6da7b39f733911cb5b0dfb434281 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Mon, 6 May 2013 23:31:29 -0700 Subject: [PATCH] Sequencer: Cleanup prototypes. --- sequencer/src/grid.H | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sequencer/src/grid.H b/sequencer/src/grid.H index 476f16c..1c7027c 100644 --- a/sequencer/src/grid.H +++ b/sequencer/src/grid.H @@ -160,8 +160,8 @@ public: int y_to_note ( int y ) const; int note_to_y ( int n ) const; - tick_t x_to_ts ( tick_t x ) const; - tick_t ts_to_x ( tick_t ts ) const; + tick_t x_to_ts ( unsigned long x ) const; + unsigned long ts_to_x ( tick_t ts ) const; virtual Grid * create ( void ) = 0; virtual Grid * clone ( void ) = 0; @@ -258,14 +258,14 @@ Grid::note_to_y ( int n ) const } inline tick_t -Grid::x_to_ts ( tick_t x ) const +Grid::x_to_ts ( unsigned long x ) const { return (x * PPQN) / _ppqn; // return x * (PPQN / _ppqn); } -inline tick_t +inline unsigned long Grid::ts_to_x ( tick_t ts ) const { return (ts * _ppqn) / PPQN;