From a46fbedee6a7215119e1288af72c69a99fb0c853 Mon Sep 17 00:00:00 2001
From: Daniel Filbert <filbert@ITA.AKUSTIK.RWTH-AACHEN.DE>
Date: Tue, 27 Mar 2018 13:35:48 +0200
Subject: [PATCH] improved test

---
 .../hrtfs/TUB/test_FABIAN_HATO_DAFF.m         | 71 ++++++++++++++++++-
 1 file changed, 68 insertions(+), 3 deletions(-)

diff --git a/applications/VirtualAcoustics/openDAFF/OpenDAFFv1.7/hrtfs/TUB/test_FABIAN_HATO_DAFF.m b/applications/VirtualAcoustics/openDAFF/OpenDAFFv1.7/hrtfs/TUB/test_FABIAN_HATO_DAFF.m
index fc786e38..e98a0fa7 100644
--- a/applications/VirtualAcoustics/openDAFF/OpenDAFFv1.7/hrtfs/TUB/test_FABIAN_HATO_DAFF.m
+++ b/applications/VirtualAcoustics/openDAFF/OpenDAFFv1.7/hrtfs/TUB/test_FABIAN_HATO_DAFF.m
@@ -1,9 +1,74 @@
 h = DAFFv17( 'open', 'FABIAN_HATO_5x5x5_256_44100Hz.v17.ir.daff' );
+sound_sample = ita_read('Bongos.wav');
+[ hrir_left_raw, ~ ] = DAFFv17( 'getNearestNeighbourRecord', h , 'object', 0, 0 );
+
+% for i = 1:17
+%     a = 2*i - 1;
+%     b = 2*i;
+%     hrir_left_hato_0 = itaAudio;
+%     hrir_left_hato_0.timeData = hrir_left_raw( a:b, : )';
+% 
+%     binaural_demosound = ita_convolve( sound_sample, hrir_left_hato_0 );
+%     binaural_demosound.play
+% end
 
-[ hrir_left_raw, ~ ] = DAFFv17( h, 'getNearestNeighbourRecord', 'object', 90, 0 );
 
 hrir_left_hato_0 = itaAudio;
 hrir_left_hato_0.timeData = hrir_left_raw( 1:2, : )';
 
-binaural_demosound = ita_convolve( ita_demosound, hrir_left_hato_0 );
-binaural_demosound.play
+binaural_demosound_hato_0 = ita_convolve( sound_sample, hrir_left_hato_0 );
+binaural_demosound_hato_0.play
+
+
+hrir_left_hato_320 = itaAudio;
+hrir_left_hato_320.timeData = hrir_left_raw( 3:4, : )';
+
+binaural_demosound_hato_320 = ita_convolve( sound_sample, hrir_left_hato_320 );
+binaural_demosound_hato_320.play
+
+
+hrir_left_hato_40 = itaAudio;
+hrir_left_hato_40.timeData = hrir_left_raw( 33:34, : )';
+
+binaural_demosound_hato_40 = ita_convolve( sound_sample, hrir_left_hato_40 );
+binaural_demosound_hato_40.play
+
+
+
+% [ hrir_left_raw, ~ ] = DAFFv17( 'getNearestNeighbourRecord', h , 'object', 90, -40 );
+% 
+% hrir_left_hato_0 = itaAudio;
+% hrir_left_hato_0.timeData = hrir_left_raw( 1:2, : )';
+% 
+% binaural_demosound = ita_convolve( sound_sample, hrir_left_hato_0 );
+% binaural_demosound.play
+% 
+% 
+% [ hrir_left_raw, ~ ] = DAFFv17( 'getNearestNeighbourRecord', h , 'object', 90, 40 );
+% 
+% hrir_left_hato_0 = itaAudio;
+% hrir_left_hato_0.timeData = hrir_left_raw( 1:2, : )';
+% 
+% binaural_demosound = ita_convolve( sound_sample, hrir_left_hato_0 );
+% binaural_demosound.play
+
+
+% for i = 1:4
+%     [ hrir_left_raw, ~ ] = DAFFv17( 'getNearestNeighbourRecord', h , 'object', 90, (-50 + i*10) );
+% 
+%     hrir_left_hato_0 = itaAudio;
+%     hrir_left_hato_0.timeData = hrir_left_raw( 1:2, : )';
+% 
+%     binaural_demosound = ita_convolve( sound_sample, hrir_left_hato_0 );
+%     binaural_demosound.play
+% end
+% 
+% for i = 1:4
+%     [ hrir_left_raw, ~ ] = DAFFv17( 'getNearestNeighbourRecord', h , 'object', 90, i*10 );
+% 
+%     hrir_left_hato_0 = itaAudio;
+%     hrir_left_hato_0.timeData = hrir_left_raw( 1:2, : )';
+% 
+%     binaural_demosound = ita_convolve( sound_sample, hrir_left_hato_0 );
+%     binaural_demosound.play
+% end
\ No newline at end of file
-- 
GitLab