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 fc786e38041e436309a02a676cee28051db6124e..e98a0fa752e06b7d64d957f93d210b2ec34af205 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