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 @@
% to hard drive.
free_field_only = false;
renderer_id = 'MyBinauralOutdoorNoise';
%% Connect and set up simple scene
va = VA( 'localhost' );
......@@ -28,7 +29,8 @@ va.set_sound_receiver_directivity( L, H );
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( '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' )
......@@ -85,7 +87,7 @@ for n = 1:length( x )
if free_field_only
prop_path_direct.audible = true;
else
prop_path_direct.audible = ~shadow_zone;
prop_path_direct.audible = ~shadow_zone
end
% Diffracted sound path (id 1)
%prop_path_direct.audible = false;
......@@ -103,7 +105,7 @@ for n = 1:length( x )
rho = norm(apex - source_pos);
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.source = S;
prop_path_diffracted.receiver = L;
......@@ -123,7 +125,7 @@ for n = 1:length( x )
paths_update.prop_path_1 = prop_path_diffracted;
end
va.set_rendering_module_parameters( 'MyBinauralOutdoorNoise', paths_update );
va.set_rendering_module_parameters( renderer_id, paths_update );
% Increment core clock
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