Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
vlazzarini committed Mar 23, 2017
1 parent 4a38509 commit f2a2fac
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Opcodes/pvsops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ struct TVConv : csnd::Plugin<1, 6> {
bool inc2 = csound->is_asig(frz2);

for (auto &s : outsig) {
*frz1 > 0 ? in[n + pp] = *inp++ : 0.;
*frz2 > 0 ? ir[n + pp] = *irp++ : 0.;
*frz1 > 0 ? in[n + pp] = *inp++ : *inp++;
*frz2 > 0 ? ir[n + pp] = *irp++ : *irp++;

s = out[n] + saved[n];
saved[n] = out[n + pars];
if (++n == pars) {
Expand Down Expand Up @@ -182,8 +183,8 @@ struct TVConv : csnd::Plugin<1, 6> {
bool inc1 = csound->is_asig(frz1);
bool inc2 = csound->is_asig(frz2);
for (auto &s : outsig) {
*frz1 > 0 ? in[pp] = *inp++ : 0.;
*frz2 > 0 ? ir[pp] = *irp++ : 0.;
*frz1 > 0 ? in[pp] = *inp++ : *inp++;
*frz2 > 0 ? ir[pp] = *irp++ : *irp++;
pp = pp != fils - 1 ? pp + 1 : 0;
s = 0.;
for (uint32_t k = 0, kp = pp; k < fils; k++, kp++) {
Expand Down

0 comments on commit f2a2fac

Please sign in to comment.