Hi Victor, I remember a year or so ago talking with Jan Jacob Hofmann and remembering him mentioning that either bformenc or bformdec was wrong but I don't remember if it was that the manual was wrong or that the code was wrong and I don't remember which opcode. I might be remembering it incorrectly too and it might have been that the issue was bformenc was using spherical harmonics instead of controlled opposites which should be used as spherical harmonics doesn't really work unless there's many, many speakers (not sure if I'm remembering what he told me correctly). I would see about contacting Jan Jacob; he also has information on his website http://sonicarchitecture.de/ with formulas and Csound code for encoding/decoding b-format. steven On Feb 19, 2008 7:29 AM, Victor Lazzarini wrote: > as far as I can see in the code, these lines are correct, but I am asking > really if anyone doesn't think so. Then the manual should be updated. > > The bug in bformdec is that it's not working at all, but I think I got a fix > and we'll make sure 5.08 has it. > > Victor > > > At 15:18 19/02/2008, you wrote: > >I very much would like clarification of this issue; code and manual should > >be technically correct and in agreement. > > > >And, Victor, if anything has changed since you last advised me on these > >opcodes, I'd appreciate your further comments (if and when appropriate). As > >you may recall, I revised three of my compositions to be in line with your > >recommendations. > > > >I certainly recall that the manual description did not at all correspond to > >what I needed to do to make these opcodes "work." At the same time, I am not > >averse to redoing my .csd's if code bugs need fixing. > > > >Art Hunkins > > > >----- Original Message ----- > >From: "Victor Lazzarini" > >To: "Developer discussions" > >Sent: Tuesday, February 19, 2008 9:50 AM > >Subject: [Cs-dev] bformdec / bformenc angles & manual > > > > > > > As far as I can see, the expected format for angles in > > > bformenc is counterclockwise, starting from the right (0), > > > as the X direction is cos(A)cos(E) and Y is sin(A)cos(E). > > > > > > If we say hard right, then cos(0) = 1 and sin(0) = 1 looks > > > the right coefficients to me, for the X and Y directions. Then > > > front cos(90) = 0 and sin(90) = 1 also do. > > > > > > The manual says angles are *clockwise*, but as far as I can see > > > the code uses the conventions above. I expect the manual to > > > be wrong. Can anyone confirm/correct this? > > > > > > Now, as far as bformdec is concerned, I see a similar thing. The > > > coefficients for say, 8-channel ring are for angles (described > > > correctly in the manual) increasing counterclockwise from the > > > right. But as the manual does not say anything, we are left wondering. > > > So can this be confirmed and the manual updated? > > > > > > Also, have these opcodes been fixed? I have fixed them locally, > > > but did not commit, as they are not my code. Should I do so? > > > > > > Thanks > > > > > > Victor > > > > > > > > > > > > Victor Lazzarini > > > Music Technology Laboratory > > > Music Department > > > National University of Ireland, Maynooth > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Csound-devel mailing list > > > Csound-devel@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/csound-devel > > > > > >------------------------------------------------------------------------- > >This SF.net email is sponsored by: Microsoft > >Defy all challenges. Microsoft(R) Visual Studio 2008. > >http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >_______________________________________________ > >Csound-devel mailing list > >Csound-devel@lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/csound-devel > > Victor Lazzarini > Music Technology Laboratory > Music Department > National University of Ireland, Maynooth > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net