aboutsummaryrefslogtreecommitdiff
path: root/src/mtx_spherical_harmonics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mtx_spherical_harmonics.c')
-rw-r--r--src/mtx_spherical_harmonics.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mtx_spherical_harmonics.c b/src/mtx_spherical_harmonics.c
index 3be43c2..9ea0f84 100644
--- a/src/mtx_spherical_harmonics.c
+++ b/src/mtx_spherical_harmonics.c
@@ -107,10 +107,9 @@ static void mTXShMatrix (MTXSh *x, t_symbol *s,
x->l=columns;
allocMTXdata(x);
}
-
for (n=0;n<x->l;n++) {
x->phi[n]=(double) atom_getfloat(argv+n);
- x->theta[n]=(double) atom_getfloat(argv+columns);
+ x->theta[n]=(double) atom_getfloat(argv+columns+n);
}
if (x->ws!=0) {