>> If you’re looking for ready-made C/C++ code, then you may want to look at >> the Spatial_Audio_Framework
Awesome – this is precisely what I was looking for ! For the last 20 years I have been playing with low-latency audio (and pretty much ignoring spatial audio) for network music performances and all of it went into https://www.soundjack.eu but now it’s time to go for 3D sound ! I will put my hands on it and will for sure come up with more newbie questions :-) Thanks again, talk to you soon Alex Alexander Carôt -- Prof. Dr.-Ing. habil. Alexander Carôt Dekan – Fachbereich Informatik und Sprachen Professur für Medieninformatik Hochschule Anhalt Tel. office: +49 (0)3496 67-3130 Tel. mobile: +49 (0)177 5719797 E-Mail: [email protected]<mailto:[email protected]> Von: McCormack Leo <[email protected]> Datum: Dienstag, 31. Mai 2022 um 14:45 An: Surround Sound discussion group <[email protected]>, "Carôt, Alexander - Prof. Dr." <[email protected]>, Jack Reynolds <[email protected]> Cc: Surround Sound discussion group <[email protected]> Betreff: Re: [Sursound] basic questions Hi, If you’re looking for ready-made C/C++ code, then you may want to look at the Spatial_Audio_Framework (https://github.com/leomccormack/Spatial_Audio_Framework) For example, the A-B conversion can be performed using: https://leomccormack.github.io/Spatial_Audio_Framework/array2sh_8h-example.html (There’s a preset for MICROPHONE_ARRAY_PRESET_SENNHEISER_AMBEO) While the binaural decoding can be achieved with: https://leomccormack.github.io/Spatial_Audio_Framework/ambi_bin_8h-example.html Best, Leo From: Sursound <[email protected]> on behalf of Marc Lavallée <[email protected]> Date: Tuesday, 31. May 2022 at 15.30 To: Carôt, Alexander - Prof. Dr. <[email protected]>, Jack Reynolds <[email protected]> Cc: Surround Sound discussion group <[email protected]> Subject: Re: [Sursound] basic questions Hi Alex, Short answer: realtime convolution of an A format stream with impulse responses of an encoder. Long answer would detail how to get the impulse responses and apply convolution. It would not be a proof of concept, but a working solution. Marc Le 2022-05-31 à 08 h 10, Carôt, Alexander - Prof. Dr. a écrit : > > Great – thanks so much for the switch response ! > > The thing is that I want to integrate A-to-B conversion and binaural > decoding right into my audio streaming application via C++ source > code. For the binaural decoding I can use several open-source projects > but regarding the A-to-B conversion I wonder if the simple equations > below might work as a first (rough proof of concept) solution. If not > is there anything else you could recommend ? > > Thanks, > > best > > Alex > > *Von: *Marc Lavallée <[email protected]> > *Datum: *Dienstag, 31. Mai 2022 um 13:56 > *An: *"Carôt, Alexander - Prof. Dr." <[email protected]> > *Cc: *Surround Sound discussion group <[email protected]> > *Betreff: *Re: [Sursound] basic questions > > Hi Alex, > > Before conversion to binaural, A format is usually encoded to B format > (as a representation of the sound field). > > Maybe this updated reference would help: > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flink.springer.com%2Fbook%2F10.1007%2F978-3-030-17207-7&data=05%7C01%7Cmccorml1%40aaltofi.mail.onmicrosoft.com%7C8b6623e6b74841dab9ad08da4300f0fd%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637895970304212189%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EmTELyQQIfY0ZXig55Xoo8BtDArteI4slLXTDr0ZOPA%3D&reserved=0 > (fig. 1.15) > > It looks simple with a generic equation, but because mic arrays are > not ideal, in practice it's better to use the specific encoder (or > converter) provided by the manufacturer: > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fen-us.sennheiser.com%2Fambeo-abconverter&data=05%7C01%7Cmccorml1%40aaltofi.mail.onmicrosoft.com%7C8b6623e6b74841dab9ad08da4300f0fd%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637895970304212189%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=eKbF2vtXUSm0On15PauFXYZwy8xP8mQfiJ94gI0D4qI%3D&reserved=0 > > There's also the Array2SH plugin from the SPARTA suite than can encode > the Ambeo Mic: > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fleomccormack.github.io%2Fsparta-site%2Fdocs%2Fplugins%2Fsparta-suite%2F%23array2sh&data=05%7C01%7Cmccorml1%40aaltofi.mail.onmicrosoft.com%7C8b6623e6b74841dab9ad08da4300f0fd%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637895970304212189%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=U0hVYyNSTIMxwgcEZ6KRxp5tKjP2vthrcq5UYLDN31Y%3D&reserved=0 > > Marc > > Le 2022-05-31 à 07 h 07, Carôt, Alexander - Prof. Dr. a écrit : > > Hello all, > > I am a newbie regarding suround but hightly interested and motivated to > investigate it. In that regard I did some R&D already but get stuck due to a > couple of basic questions I would like to come up with here: > > 1.) I have a Sennheiser Ambeo Mic which gives me 4 channel Ambisonics > A-Format. In order to achieve 2-channel binaural Sound via Headphones I have > to use a respective binaural decoder (as part of > e.g.https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fvideolabs%2Flibspatialaudio&data=05%7C01%7Cmccorml1%40aaltofi.mail.onmicrosoft.com%7C8b6623e6b74841dab9ad08da4300f0fd%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637895970304212189%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=msSvv124koeISG93He4imUmkXQa6Hfxr5A1W5k%2FMc5k%3D&reserved=0), > however, is it correct that I first have to convert it from A to B-Format ? > > 2.) If 1.) applies what is the best way to convert it ? I found > this:https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.matthiaskronlachner.com%2Fwp-content%2Fuploads%2F2013%2F01%2F2012-09-27-Kronlachner-homepage.pdf&data=05%7C01%7Cmccorml1%40aaltofi.mail.onmicrosoft.com%7C8b6623e6b74841dab9ad08da4300f0fd%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637895970304212189%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2BeKjjwcdusuX86FlKKcM1Aaw65RGQ4XkzZp3cJmvGdg%3D&reserved=0 > > and it states quite straight-forward equations to do it: > > W = 0.5 * (A + B + C + D); > > X = (A + C) - (B + D); > > Y = (A + B - (C + D); > > Z = (A + D) - (B + C); > > Is this correct and is B-Format what is typically called the Ambisonics > Sound field ? > > Thanks in advance, > > best > > Alex > > -- > > > https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.carot.de%2F&data=05%7C01%7Cmccorml1%40aaltofi.mail.onmicrosoft.com%7C8b6623e6b74841dab9ad08da4300f0fd%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637895970304212189%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=b0d8fc5OMgbLosnbFHPpzExFBnhc%2F5DMSKUPNcBnmi4%3D&reserved=0<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fservice.gmx.net%2Fde%2Fcgi%2Fderefer%3FTYPE%3D3%26DEST%3Dhttp%253A%252F%252Fwww.carot.de&data=05%7C01%7Cmccorml1%40aaltofi.mail.onmicrosoft.com%7C8b6623e6b74841dab9ad08da4300f0fd%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637895970304212189%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=jHzD%2F7hnpMVoUWIoF8cKEZoyLFhkiev45TpotBrtLLo%3D&reserved=0><https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.carot.de%2F&data=05%7C01%7Cmccorml1%40aaltofi.mail.onmicrosoft.com%7C8b6623e6b74841dab9ad08da4300f0fd%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637895970304212189%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=b0d8fc5OMgbLosnbFHPpzExFBnhc%2F5DMSKUPNcBnmi4%3D&reserved=0%3chttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fservice.gmx.net%2Fde%2Fcgi%2Fderefer%3FTYPE%3D3%26DEST%3Dhttp%253A%252F%252Fwww.carot.de&data=05%7C01%7Cmccorml1%40aaltofi.mail.onmicrosoft.com%7C8b6623e6b74841dab9ad08da4300f0fd%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637895970304212189%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=jHzD%2F7hnpMVoUWIoF8cKEZoyLFhkiev45TpotBrtLLo%3D&reserved=0%3e> > > <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fservice.gmx.net%2Fde%2Fcgi%2Fderefer%3FTYPE%3D3%26DEST%3Dhttp%253A%252F%252Fwww.carot.de&data=05%7C01%7Cmccorml1%40aaltofi.mail.onmicrosoft.com%7C8b6623e6b74841dab9ad08da4300f0fd%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637895970304212189%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=jHzD%2F7hnpMVoUWIoF8cKEZoyLFhkiev45TpotBrtLLo%3D&reserved=0> > > Email > :[email protected]<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fservice.gmx.net%2Fde%2Fcgi%2Fg.fcgi%2Fmail%2Fnew%3FCUSTOMERNO%3D3660908%26t%3Dde61720084.1316506814.edd64584%26to%3DAlexander%2540carot.de&data=05%7C01%7Cmccorml1%40aaltofi.mail.onmicrosoft.com%7C8b6623e6b74841dab9ad08da4300f0fd%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637895970304212189%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=XgJdGgsqlB%2Fkkh4bVrbvPl6d7BVVwWaqqGeJ5t32G4E%3D&reserved=0> > > <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fservice.gmx.net%2Fde%2Fcgi%2Fg.fcgi%2Fmail%2Fnew%3FCUSTOMERNO%3D3660908%26t%3Dde61720084.1316506814.edd64584%26to%3DAlexander%2540carot.de&data=05%7C01%7Cmccorml1%40aaltofi.mail.onmicrosoft.com%7C8b6623e6b74841dab9ad08da4300f0fd%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637895970304212189%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=XgJdGgsqlB%2Fkkh4bVrbvPl6d7BVVwWaqqGeJ5t32G4E%3D&reserved=0> > > Tel.: +49 (0)177 5719797 > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > > URL:<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.music.vt.edu%2Fmailman%2Fprivate%2Fsursound%2Fattachments%2F20220531%2F25b7da13%2Fattachment.htm&data=05%7C01%7Cmccorml1%40aaltofi.mail.onmicrosoft.com%7C8b6623e6b74841dab9ad08da4300f0fd%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637895970304212189%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7dQIdvzT3lnbHH9x9pUdB5cLbOZRUWfCIE%2Fy%2FHPrgo0%3D&reserved=0> > > <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.music.vt.edu%2Fmailman%2Fprivate%2Fsursound%2Fattachments%2F20220531%2F25b7da13%2Fattachment.htm&data=05%7C01%7Cmccorml1%40aaltofi.mail.onmicrosoft.com%7C8b6623e6b74841dab9ad08da4300f0fd%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637895970304212189%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7dQIdvzT3lnbHH9x9pUdB5cLbOZRUWfCIE%2Fy%2FHPrgo0%3D&reserved=0> > > _______________________________________________ > > Sursound mailing list > > [email protected] > > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.music.vt.edu%2Fmailman%2Flistinfo%2Fsursound&data=05%7C01%7Cmccorml1%40aaltofi.mail.onmicrosoft.com%7C8b6623e6b74841dab9ad08da4300f0fd%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637895970304212189%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=QVQ%2Bt0o0L3XvzKovBz9NpSKtkCp9%2BKXRAlzhxsl10jA%3D&reserved=0 > - unsubscribe here, edit account or options, view archives and so on. > -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.music.vt.edu%2Fmailman%2Fprivate%2Fsursound%2Fattachments%2F20220531%2F107da0d0%2Fattachment.htm&data=05%7C01%7Cmccorml1%40aaltofi.mail.onmicrosoft.com%7C8b6623e6b74841dab9ad08da4300f0fd%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637895970304212189%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=y6n3q6JB6esMwyMPDNJsucEfGEdosKpgRwVxtBh9gPo%3D&reserved=0> _______________________________________________ Sursound mailing list [email protected] https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.music.vt.edu%2Fmailman%2Flistinfo%2Fsursound&data=05%7C01%7Cmccorml1%40aaltofi.mail.onmicrosoft.com%7C8b6623e6b74841dab9ad08da4300f0fd%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637895970304212189%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=QVQ%2Bt0o0L3XvzKovBz9NpSKtkCp9%2BKXRAlzhxsl10jA%3D&reserved=0 - unsubscribe here, edit account or options, view archives and so on. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://mail.music.vt.edu/mailman/private/sursound/attachments/20220531/a199161a/attachment.htm> _______________________________________________ Sursound mailing list [email protected] https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe here, edit account or options, view archives and so on.
