Commit 12114eb7 authored by henryjandrew's avatar henryjandrew

Merge branch 'develop' of https://git.rwth-aachen.de/ita/VAMatlab into develop

parents 7474d92d 46dbdb82
VA_example_simple
rend_mods = va.get_rendering_modules();
rend_mod_id = '';
for n = 1:numel( va.get_rendering_modules )
rend_mod = rend_mods( n );
if strcmpi( rend_mod.class, 'BinauralArtificialReverb' )
rend_mod_id = rend_mod.id;
break
end
end
if isempty( rend_mod_id )
error 'Could not find an artificial reverb renderer in the list of active renderers'
end
va.set_global_auralization_mode( '-ds' )
va.get_rendering_module_parameters('MyBinauralArtificialReverb', struct() )
reverbs = struct();
pause( 1 )
%%
reverbs.room_reverberation_times = [ 8 4 2 ];
va.set_rendering_module_parameters( 'MyBinauralArtificialReverb', reverbs )
%%
reverbs.room_reverberation_times = 2; % -> factor of sqrt(2) 1 sqrt( 1/2 ) for low mid high bands
va.set_rendering_module_parameters( 'MyBinauralArtificialReverb', reverbs )
va.get_rendering_module_parameters('MyBinauralArtificialReverb', struct() ).room_reverberation_times
%%
reverbs.room_reverberation_times = 1; % -> factor of sqrt(2) 1 sqrt( 1/2 ) for low mid high bands
va.set_rendering_module_parameters( 'MyBinauralArtificialReverb', reverbs )
va.get_rendering_module_parameters('MyBinauralArtificialReverb', struct() ).room_reverberation_times
%%
reverbs.room_reverberation_times = sqrt(1/2); % -> factor of sqrt(2) 1 sqrt( 1/2 ) for low mid high bands
va.set_rendering_module_parameters( 'MyBinauralArtificialReverb', reverbs )
va.get_rendering_module_parameters('MyBinauralArtificialReverb', struct() ).room_reverberation_times
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