aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/xsample/source
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/xsample/source')
-rw-r--r--externals/grill/xsample/source/groove.cpp7
-rw-r--r--externals/grill/xsample/source/main.h2
2 files changed, 5 insertions, 4 deletions
diff --git a/externals/grill/xsample/source/groove.cpp b/externals/grill/xsample/source/groove.cpp
index a5e3aaf0..d76e3776 100644
--- a/externals/grill/xsample/source/groove.cpp
+++ b/externals/grill/xsample/source/groove.cpp
@@ -94,9 +94,10 @@ protected:
inline void setposmod(double pos)
{
- double p = pos-znsmin;
- if(p >= 0) curpos = znsmin+fmod(p,znsmax-znsmin);
- else curpos = znsmax+fmod(p,znsmax-znsmin);
+ if(pos >= 0)
+ curpos = znsmin+fmod(pos,znsmax-znsmin);
+ else
+ curpos = znsmax+fmod(pos,znsmax-znsmin);
}
virtual void DoReset();
diff --git a/externals/grill/xsample/source/main.h b/externals/grill/xsample/source/main.h
index c3a1a66e..6fb1bd2c 100644
--- a/externals/grill/xsample/source/main.h
+++ b/externals/grill/xsample/source/main.h
@@ -15,7 +15,7 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#error You need at least flext version 0.5.0
#endif
-#define XSAMPLE_VERSION "0.3.1pre8"
+#define XSAMPLE_VERSION "0.3.1"
extern "C++" {