Skip to content

Commit d51c2df

Browse files
committed
fix #188 - make non-simd logic the same as simd implementations, which fixes the bug
1 parent 465f935 commit d51c2df

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
CHANGELOG
22
=====
33

4+
Next Release
5+
-----
6+
7+
Bugfixes:
8+
9+
* sending `[stop(` to `[line~]` when it's not running no longer jumps the current value (#188)
10+
411
0.13.3
512
-----
613

hvcc/generators/ir2c/static/HvSignalLine.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,11 @@ void sLine_onMessage(HeavyContextInterface *_c, SignalLine *o, int letIn,
130130
o->m = vdupq_n_f32(0.0f);
131131
o->t = vdupq_n_f32(x);
132132
#else // HV_SIMD_NONE
133+
float x = (o->n > 0) ? (o->x + o->m) : o->t;
133134
o->n = 0;
134-
o->x += o->m;
135+
o->x = x;
135136
o->m = 0.0f;
136-
o->t = o->x;
137+
o->t = x;
137138
#endif
138139
}
139140
}

0 commit comments

Comments
 (0)