Hi Ricky, I took a quick look at grambipan.c. For FuMa U you've written
189: (*APout4++) = sample1 * (2 * cosf(sample2)) * cosf(sample3) * cosf(sample3); //U whereas the correct expression (found on Richard Furse's webpage, for example) is U: cos(2A) cos(E) cos(E) Please note that cos(2x) does not equal 2cos(x). I see similar problems in other definitions. You might want to take a look at my Python library, symbolic_spherical_harmonics. It derives and writes out expressions for the spherical harmonics in a number of different languages. $ python SymYlm.py --spherical --FuMa --four_pi --translation c 2 2 pow(cos(phi), 2)*cos(2*theta) $ python SymYlm.py --cartesian --FuMa --four_pi --translation c 2 2 pow(x, 2) - pow(y, 2) Here's the git repo: https://bitbucket.org/ajheller/symbolic_spherical_harmonics -- Aaron (hel...@ai.sri.com) Menlo Park, CA US On Wed, Mar 9, 2016 at 5:15 PM, Richard Graham <ri...@rickygraham.net> wrote: > > Hi all, > > I’ve been working on a simple ambisonics library for Pd. > > Here’s v1: > > https://github.com/rickygraham/grambilib < https://github.com/rickygraham/grambilib> > > I would love to hear your thoughts! > > Ricky > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < https://mail.music.vt.edu/mailman/private/sursound/attachments/20160309/73be71f2/attachment.html > > _______________________________________________ > Sursound mailing list > Sursound@music.vt.edu > https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe here, edit account or options, view archives and so on. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://mail.music.vt.edu/mailman/private/sursound/attachments/20160310/3318345d/attachment.html> _______________________________________________ Sursound mailing list Sursound@music.vt.edu https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe here, edit account or options, view archives and so on.