Re: [Sursound] grambilib~ for Pd

2016-03-11 Thread Richard Graham
Hi Aaron,

Thank you for taking the time to look at the source; good catch! I’ll fix those 
issues immediately.

Ricky

> On Mar 11, 2016, at 12:00 PM, sursound-requ...@music.vt.edu wrote:
> 
> 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

-- next part --
An HTML attachment was scrubbed...
URL: 

___
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.


Re: [Sursound] grambilib~ for Pd

2016-03-10 Thread Aaron Heller
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 
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: 

___
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.


[Sursound] grambilib~ for Pd

2016-03-09 Thread Richard Graham
Hi all,

I’ve been working on a simple ambisonics library for Pd. 

Here’s v1:

https://github.com/rickygraham/grambilib 


I would love to hear your thoughts!

Ricky
-- next part --
An HTML attachment was scrubbed...
URL: 

___
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.