Skip to content

Commit

Permalink
update for spread
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreguillot committed Aug 25, 2017
1 parent 82d9796 commit 14d5270
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pd/src/vbap_coeff.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ static void vbap_coeff_set(t_vbap_coeff *x, t_floatarg azimuth, t_floatarg eleva
size_t i, n = vbapf_nls(x->v_vbap);
if(vbapf_dimension(x->v_vbap) == 2)
{
vbapf_2d_perform(x->v_vbap, azimuth, x->v_coeffs);
vbapf_2d_perform(x->v_vbap, x->v_coeffs, azimuth, 0.f);
}
else
{
vbapf_3d_perform(x->v_vbap, azimuth, elevation, x->v_coeffs);
vbapf_3d_perform(x->v_vbap, x->v_coeffs, azimuth, elevation, 0.f);
}

for(i = 0; i < n; ++i)
Expand Down
4 changes: 2 additions & 2 deletions pd/src/vbap_tilde.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ t_int *vbap_tilde_perform_2d(t_int *w)
while(n--)
{
const t_sample f = inputs[0][n];
vbapf_2d_perform(vbap, inputs[1][n], coeffs);
vbapf_2d_perform(vbap, coeffs, inputs[1][n], 0.f);
for(i = 0; i < noutlets; ++i)
{
outputs[i][n] = f * coeffs[i];
Expand All @@ -256,7 +256,7 @@ t_int *vbap_tilde_perform_3d(t_int *w)
while(n--)
{
const t_sample f = inputs[0][n];
vbapf_3d_perform(vbap, inputs[1][n], inputs[2][n], coeffs);
vbapf_3d_perform(vbap, coeffs, inputs[1][n], inputs[2][n], 0.f);
for(i = 0; i < noutlets; ++i)
{
outputs[i][n] = f * coeffs[i];
Expand Down

0 comments on commit 14d5270

Please sign in to comment.