Re: [Sursound] Periphonic Irregular HO Ambisonics Decoder

2014-03-19 Thread /dav/random
Thanks Fons! I will start from this! Ciao Davide -- next part -- An HTML attachment was scrubbed... URL: ___ Sursound mailing list

Re: [Sursound] Periphonic Irregular HO Ambisonics Decoder

2014-03-18 Thread Fons Adriaensen
On Tue, Mar 18, 2014 at 11:34:02PM +0100, /dav/random wrote: > It is my first "work" with python, and I accept any kind of contribution, > hint, ticket, code, ... > and even ideas on how to restructure it, so it can make more sense. Python + numpy is probably the ideal language for this sort of

Re: [Sursound] Periphonic Irregular HO Ambisonics Decoder

2014-03-18 Thread /dav/random
On Tue, Mar 18, 2014 at 9:46 PM, Fons Adriaensen wrote: > On Mon, Mar 17, 2014 at 06:05:11PM +0100, /dav/random wrote: > > > - The code is not written by software engineers. We have our > > evident limits. > > Please don't take this personally, but it shows :-) > No no, it IS personal, how couldn

Re: [Sursound] Periphonic Irregular HO Ambisonics Decoder

2014-03-18 Thread Fons Adriaensen
On Mon, Mar 17, 2014 at 06:05:11PM +0100, /dav/random wrote: > - The code is not written by software engineers. We have our > evident limits. Please don't take this personally, but it shows :-) It's in fact a glorious mess... There are circular dependencies between the modules. Which is why you

Re: [Sursound] Periphonic Irregular HO Ambisonics Decoder

2014-03-18 Thread /dav/random
Hi Fons, thanks for your valuable feedback. > I inserted a 'print (thetaTest)' in Wbinary(), just before > the compare that fails. The code *is* called, and thetaTest > is printed as a list, not an array. > > Yes! Wbinary() is called in constants.py, just to call it once and store the result, whi

Re: [Sursound] Periphonic Irregular HO Ambisonics Decoder

2014-03-18 Thread Fons Adriaensen
On Mon, Mar 17, 2014 at 10:07:54PM -0400, Marc Lavallée wrote: > The "bug" is harmless, because the WbinVec variable is used only if > WBIN is considered True, and WBIN is actually a constant set to 0. The conversion to Python 3 modified only the print statements (print is a function in Python 3

Re: [Sursound] Periphonic Irregular HO Ambisonics Decoder

2014-03-18 Thread Fons Adriaensen
On Mon, Mar 17, 2014 at 10:39:56PM -0700, Aaron Heller wrote: > When I run it in Python 2.7, thetaTest is an array, not a list as in Fons' > example, so the comparison works as expected and produces a boolean array Can't test this (I have only a basic Python 2 installed, no extensions), but theta

Re: [Sursound] Periphonic Irregular HO Ambisonics Decoder

2014-03-18 Thread /dav/random
Thanks to all for your feedback! I developed the code in python 2.7 and I never tried to run it under python3. If you are forced to work with python3 I could look for the necessary changes to adapt idhoa code to python3 ... but I would prefer to focus on other activities ;) The expected behaviour

Re: [Sursound] Periphonic Irregular HO Ambisonics Decoder

2014-03-17 Thread Aaron Heller
When I run it in Python 2.7, thetaTest is an array, not a list as in Fons' example, so the comparison works as expected and produces a boolean array >>> array([.1, .2, .3, .4]) > .25 array([False, False, True, True], dtype=bool) and boolean types behave like the constants 0 and 1 under multip

Re: [Sursound] Periphonic Irregular HO Ambisonics Decoder

2014-03-17 Thread Marc Lavallée
Fons, here's my little code review: The "bug" is harmless, because the WbinVec variable is used only if WBIN is considered True, and WBIN is actually a constant set to 0. -- Marc Le Tue, 18 Mar 2014 01:01:25 +, Fons Adriaensen a écrit : > On Mon, Mar 17, 2014 at 05:06:32PM -0700, Aaron He

Re: [Sursound] Periphonic Irregular HO Ambisonics Decoder

2014-03-17 Thread Fons Adriaensen
On Mon, Mar 17, 2014 at 05:06:32PM -0700, Aaron Heller wrote: > On Mon, Mar 17, 2014 at 1:09 PM, Fons Adriaensen wrote: > > > On Mon, Mar 17, 2014 at 06:05:11PM +0100, /dav/random wrote: > > > > > The project is called IDHOA and the code is hosted here [1] under GPL . > > > > (after automatic con

Re: [Sursound] Periphonic Irregular HO Ambisonics Decoder

2014-03-17 Thread Aaron Heller
On Mon, Mar 17, 2014 at 1:09 PM, Fons Adriaensen wrote: > On Mon, Mar 17, 2014 at 06:05:11PM +0100, /dav/random wrote: > > > The project is called IDHOA and the code is hosted here [1] under GPL . > > (after automatic conversion to python3) > > Traceback (most recent call last): > File "./main.

Re: [Sursound] Periphonic Irregular HO Ambisonics Decoder

2014-03-17 Thread Fons Adriaensen
On Mon, Mar 17, 2014 at 06:05:11PM +0100, /dav/random wrote: > The project is called IDHOA and the code is hosted here [1] under GPL . (after automatic conversion to python3) Traceback (most recent call last): File "./main.py", line 32, in from constants import * File "/data/build/idhoa