aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/xsample/source/groove.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-09-26 14:00:27 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-09-26 14:00:27 +0000
commit520a243c297175386ab31c78c84693a664934a69 (patch)
treef9ae9f5c22ebd8234446c8ce2cbb3d6eba215df7 /externals/grill/xsample/source/groove.cpp
parent4eb1464e5439332693a92ab76776b06d9b0c8700 (diff)
small fixes
update for new flext callback naming - made xcode project - fixed loop record bug - some small cleanups svn path=/trunk/; revision=3638
Diffstat (limited to 'externals/grill/xsample/source/groove.cpp')
-rw-r--r--externals/grill/xsample/source/groove.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/externals/grill/xsample/source/groove.cpp b/externals/grill/xsample/source/groove.cpp
index c4051714..a5e3aaf0 100644
--- a/externals/grill/xsample/source/groove.cpp
+++ b/externals/grill/xsample/source/groove.cpp
@@ -657,7 +657,7 @@ bool xgroove::do_xzone()
if(xzone > maxfd) xzone = maxfd;
// \todo what about round-off?
- const long hzone = CASTINT<long>(xzone/2.f);
+ const long hzone = CASTINT<long>(xzone/2.f+0.5f);
znsmin = curmin-hzone;
znsmax = curmax+hzone;
@@ -684,7 +684,7 @@ bool xgroove::do_xzone()
if(xzone > maxfd) xzone = maxfd;
// \todo what about round-off?
- const long hzone = CASTINT<long>(xzone/2.f);
+ const long hzone = CASTINT<long>(xzone/2.f+0.5f);
znsmin = curmin-hzone;
znsmax = curmax+hzone;
@@ -707,7 +707,7 @@ bool xgroove::do_xzone()
if(xzone > plen) xzone = plen;
// \todo what about round-off?
- const long hzone = CASTINT<long>(xzone/2.f);
+ const long hzone = CASTINT<long>(xzone/2.f+0.5f);
znsmin = curmin-hzone;
znsmax = curmax+hzone;