Browse Source

Fix Rampage bug #44

tags/v2.5.0
hemmer 1 year ago
parent
commit
1698b616dd
3 changed files with 8 additions and 3 deletions
  1. +4
    -0
      CHANGELOG.md
  2. +1
    -1
      plugin.json
  3. +3
    -2
      src/Rampage.cpp

+ 4
- 0
CHANGELOG.md View File

@@ -1,5 +1,9 @@
# Change Log

## v2.4.1
* Rampage
* Fix SIMD bug

## v2.4.0
* MotionMTR
* Initial release


+ 1
- 1
plugin.json View File

@@ -1,6 +1,6 @@
{
"slug": "Befaco",
"version": "2.4.0",
"version": "2.4.1",
"license": "GPL-3.0-or-later",
"name": "Befaco",
"brand": "Befaco",


+ 3
- 2
src/Rampage.cpp View File

@@ -240,8 +240,9 @@ struct Rampage : Module {
float shape = params[SHAPE_A_PARAM + part].getValue();
out[part][c / 4] += shapeDelta(delta, rate, shape) * args.sampleTime;

float_4 rising = (in[c / 4] - out[part][c / 4]) > 1e-3f;
float_4 falling = (in[c / 4] - out[part][c / 4]) < -1e-3f;
float_4 rising = simd::ifelse(delta_gt_0, (in[c / 4] - out[part][c / 4]) > 1e-3f, float_4::zero());
float_4 falling = simd::ifelse(delta_lt_0, (in[c / 4] - out[part][c / 4]) < -1e-3f, float_4::zero());

float_4 end_of_cycle = simd::andnot(falling, delta_lt_0);

endOfCyclePulse[part][c / 4].trigger(end_of_cycle, 1e-3);


Loading…
Cancel
Save