Commit 85413495 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

WIP trying to locate diffraction shadow zone error

parent ff62d39e
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
% to hard drive. % to hard drive.
free_field_only = false; free_field_only = false;
renderer_id = 'MyBinauralOutdoorNoise';
%% Connect and set up simple scene %% Connect and set up simple scene
va = VA( 'localhost' ); va = VA( 'localhost' );
...@@ -28,7 +29,8 @@ va.set_sound_receiver_directivity( L, H ); ...@@ -28,7 +29,8 @@ va.set_sound_receiver_directivity( L, H );
S = va.create_sound_source( 'VA_Source' ); S = va.create_sound_source( 'VA_Source' );
%X = va.create_signal_source_buffer_from_file( 'WelcomeToVA.wav' ); %X = va.create_signal_source_buffer_from_file( 'WelcomeToVA.wav' );
X = va.create_signal_source_buffer_from_file( 'Full song - Vulfpeck - Dean Town.wav' ); X = va.create_signal_source_buffer_from_file( 'LKW Leerlauf 2.wav' );
%X = va.create_signal_source_buffer_from_file( 'Full song - Vulfpeck - Dean Town.wav' );
va.set_signal_source_buffer_playback_action( X, 'play' ) va.set_signal_source_buffer_playback_action( X, 'play' )
...@@ -85,7 +87,7 @@ for n = 1:length( x ) ...@@ -85,7 +87,7 @@ for n = 1:length( x )
if free_field_only if free_field_only
prop_path_direct.audible = true; prop_path_direct.audible = true;
else else
prop_path_direct.audible = ~shadow_zone; prop_path_direct.audible = ~shadow_zone
end end
% Diffracted sound path (id 1) % Diffracted sound path (id 1)
%prop_path_direct.audible = false; %prop_path_direct.audible = false;
...@@ -103,7 +105,7 @@ for n = 1:length( x ) ...@@ -103,7 +105,7 @@ for n = 1:length( x )
rho = norm(apex - source_pos); rho = norm(apex - source_pos);
prop_path_diffracted.gain = A / rho; prop_path_diffracted.gain = A / rho;
prop_path_diffracted.frequency_magnitudes = abs( D ); prop_path_diffracted.frequency_magnitudes = abs( D )
%prop_path_diffracted.frequency_magnitudes = values; %prop_path_diffracted.frequency_magnitudes = values;
prop_path_diffracted.source = S; prop_path_diffracted.source = S;
prop_path_diffracted.receiver = L; prop_path_diffracted.receiver = L;
...@@ -123,7 +125,7 @@ for n = 1:length( x ) ...@@ -123,7 +125,7 @@ for n = 1:length( x )
paths_update.prop_path_1 = prop_path_diffracted; paths_update.prop_path_1 = prop_path_diffracted;
end end
va.set_rendering_module_parameters( 'MyBinauralOutdoorNoise', paths_update ); va.set_rendering_module_parameters( renderer_id, paths_update );
% Increment core clock % Increment core clock
manual_clock = manual_clock + timestep; manual_clock = manual_clock + timestep;
......
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