Skip to content

Commit 7d653dc

Browse files
committed
1 parent 51a1509 commit 7d653dc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

plugins/jsfx/leafac_Octaver.jsfx

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@init
2+
3+
flip_polarity = 0;
4+
5+
@sample
6+
7+
spl0_previous <= 0 && spl0 > 0 ||
8+
spl0_previous >= 0 && spl0 < 0 ?
9+
flip_polarity = !flip_polarity;
10+
11+
spl0_previous = spl0;
12+
13+
spl0 = ((flip_polarity ? -1 : 1) + previous_output) / 2;
14+
15+
previous_output = spl0;

0 commit comments

Comments
 (0)