diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-03-31 21:34:31 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-03-31 21:34:31 +0200 |
commit | f0fdd378622aefe6f5132bc9231447073956041a (patch) | |
tree | 65f429a414389e417c343afb00d60a1e025a6bb8 /src/instrument.cc | |
parent | 6e6af33f00a17e842da81e4a04ea9c3421c55adb (diff) | |
parent | 3b239bdd5362b2a9db73f5f7254e14b6fe7ed858 (diff) |
Fix merge conflicts.
Diffstat (limited to 'src/instrument.cc')
-rw-r--r-- | src/instrument.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/instrument.cc b/src/instrument.cc index ee778d7..d246c09 100644 --- a/src/instrument.cc +++ b/src/instrument.cc @@ -82,7 +82,7 @@ Sample* Instrument::sample(level_t level, size_t pos) if(enable_velocity_randomiser) { - float r = (float)std::rand() / (float)RAND_MAX; // random number: [0;1] + float r = (float)rand() / (float)RAND_MAX; // random number: [0;1] r -= 0.5; // random number [-0.5;0.5] r *= velocity_randomiser_weight * 2; // ex. random number [-0.1;0.1] level += r; @@ -121,7 +121,7 @@ Sample* Instrument::sample(level_t level, size_t pos) return NULL; } - size_t idx = std::rand()%(s.size()); + size_t idx = rand()%(s.size()); sample = s[idx]; } |