Rendering ambisonic to binaural with Csound

Dear Csounders!

Is there a way to render ambisonic to binaural in real time with Csound?

To give you a bit of the context, we want to virtualize (both visually and aurally) a concert hall in our institute to be able e.g. to use it in studies done in virtual reality. Simulating it’s room acoustics seems like a overkill here since we already have the room and we can measure it’s acoustics and further more, since realistic acoustics is crucial, measurements should provide us with better results.

My idea is to measure RIRs using ambisonic microphone for multiple source-listener positions and then, as usual, convolve it with the stimuli (audio source). Now the question is, how to render that audio scene to binaural/headphones?

Any kind of feedback/suggestion is very welcome :call_me_hand:

After some research I didn’t find any way to render ambisonic signal to binaural directly. There is this very nice opcode bformdec2 but unfortunately it doesn’t support head movement. Nevertheless, based on that opcode it seems that the right approach would be to render ambisonic signal into loudspeaker specific signals and then using e.g. hrtfmove2 render it to binaural.

Any ideas? Do you think this is the right way to do that?