Making the switch between direct out and a BRIR convolution involved more...

Making the switch between direct out and a BRIR convolution involved more obvious for itaVA with RAVEN experimental script.
parent 2d5b0c70
%% Execute RAVEN demo
ita_raven_demo % will generate BRIR 'binaural'
%% Starts and prepares VA for experimental setup and exchanges binaural filters from an itaHRTF class
itaVA_experimental_start_server
itaVA_experimental_renderer_prepare
%% Exchange (variables prepared by itaVA_experimental_renderer_prepare)
%% Direct signal out without room (variables L and S prepared by itaVA_experimental_renderer_prepare)
dirac = ita_amplify( ita_generate_impulse, '-12dB' );
mStruct = struct;
mStruct.listener = L;
mStruct.source = S;
mStruct.ch1 = double( dirac.ch( 1 ).timeData )'; % dirac left
mStruct.ch2 = double( dirac.ch( 1 ).timeData )'; % dirac right
va.callModule( mod_id, mStruct );
%% Now execute RAVEN demo to aquire a BRIR
ita_raven_demo % will generate BRIR itaAudio object with name 'binaural'
%% Exchange BRIR
mStruct.ch1 = double( binaural.ch( 1 ).timeData )';
mStruct.ch2 = double( binaural.ch( 2 ).timeData )';
mRes = va.callModule( mod_id, mStruct )
mStruct.verbose = true;
va.callModule( mod_id, mStruct )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment