Csound Csound-dev Csound-tekno Search About

Re: [Csnd] surround sound or stereo

Date2019-04-21 21:12
FromJan Jacob Hofmann
SubjectRe: [Csnd] surround sound or stereo
Dear John,

here is an UDO I wrote to decode b-format to UHJ-Stereo. It gave quite 
good results. Maybe that is what you were looking for?
Best,

Jan Jacob

aw, ax, ay    xin                ;input


ajw1, ajw0     hilbert     aw
ajx1, ajx0     hilbert     ax
ajy1, ajy0     hilbert     ay


achnl1         = 0.0928 * ajx1 + 0.255 * ajx0  + 0.4699 * ajw1 - 0.171 * 
ajw0 + 0.3277 * ajy1
achnl2        = 0.0928 * ajx1 - 0.255 * ajx0  + 0.4699 * ajw1 + 0.171 * 
ajw0 - 0.3277 * ajy1


         xout         achnl1, achnl2    ; output

-- 

sound      |      movement       |       object      |      space
sonic architecture     |      site: http://www.sonicarchitecture.de
spatial electronic composition    |    higher order ambisonic music

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here