aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/xsample/source/groove.cpp
diff options
context:
space:
mode:
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;