Skip to content

Commit 9307b41

Browse files
authored
Merge pull request #183 from snappizz/topic/vbap-interpolation-2
VBAP: Fix stairstepping during modulation
2 parents 19bbd2a + 275f0c7 commit 9307b41

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/VBAPUGens/VBAP.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,10 @@ static inline_functions void VBAP_next_simd(VBAP *unit, int inNumSamples)
595595
nova::times_vec_simd(out, in, nextchanamp, inNumSamples);
596596
} else {
597597
float chanampslope = CALCSLOPE(nextchanamp, chanamp);
598-
nova::times_vec_simd(out, in, nextchanamp, inNumSamples);
598+
for (int j = 0; j < inNumSamples; j++) {
599+
out[j] = in[j] * chanamp;
600+
chanamp += chanampslope;
601+
}
599602
unit->m_chanamp[i] = nextchanamp;
600603
}
601604
}

0 commit comments

Comments
 (0)