Csound Csound-dev Csound-tekno Search About

[Csnd] from stereo (binaural) > to ambisonic stereo

Date2021-08-19 11:10
FromEnrico Francioni <00000005323c8739-dmarc-request@LISTSERV.HEANET.IE>
Subject[Csnd] from stereo (binaural) > to ambisonic stereo
Hello everybody!

What Csound code do you suggest to export a stereo (binaural) to ambisonic stereo audio file?
I was thinking of using the bformenc1 and bformdec1 operators.
Some examples in detail?

Thanks for any help ...
Enrico

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

Date2021-08-19 11:38
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] from stereo (binaural) > to ambisonic stereo
I am assuming you have a binaural file that is made up as a mix of several sources, with location
applied to each one. Two thoughts:

1. The binaural stereo signal has its sources filtered etc to make them work well in a binaural setting
(through headphones). There is no way in Csound (and most likely no way at all) to remove the 
filtering that was applied to the source signals (particularly if there are a lot of sources in the mix, each
treated binaurally). You need to get the original non-binaural sources and use them again in a mix.

2. Ambisonics is more suitable for several speakers. In any case, when you make your 
ambisonics mix (with the encoding opcode), it is given in the B-format, which then needs to be decoded for 
the speaker set up you have. That can be a stereo pair, and I think the decoding opcodes have a choice for that.

You can also use what is known a ambisonics UHJ which is another form of decoding to two channels in stereo. 
       
      https://en.wikipedia.org/wiki/Ambisonic_UHJ_format

I don’t see any gain in using ambisonic for stereo, if compared to a good application of 
amplitude panning (that’s a personal opinion).

========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 19 Aug 2021, at 11:10, Enrico Francioni <00000005323c8739-dmarc-request@LISTSERV.HEANET.IE> wrote:
> 
> *Warning*
> 
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> 
> Hello everybody!
> 
> What Csound code do you suggest to export a stereo (binaural) to ambisonic stereo audio file?
> I was thinking of using the bformenc1 and bformdec1 operators.
> Some examples in detail?
> 
> Thanks for any help ...
> Enrico
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7C33546679a2f441623c9608d962f9a0eb%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637649646545617633%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=XHBQ9PEK9V%2BkhEYUni7SgCxhPy4L2NgUorBfwh4UP0o%3D&reserved=0
> Send bugs reports to
>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7C33546679a2f441623c9608d962f9a0eb%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637649646545617633%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=7Uuel8goxcbyzTusPdyxa1TFu5LUeBGPivLVebtQ7wA%3D&reserved=0
> Discussions of bugs and features can be posted here


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