%% VA simple example code% Create VAva=VA;% Connect to VA application (start the application first)va.connect('localhost')% Reset VA to clear the sceneva.reset()% Control output gainva.set_output_gain(.25)% Add the current absolute folder path to VA applicationva.add_search_path(pwd);% Create a signal source and start playbackX=va.create_signal_source_buffer_from_file('$(DemoSound)');va.set_signal_source_buffer_playback_action(X,'play')va.set_signal_source_buffer_looping(X,true);% Create a virtual sound source and set a positionS=va.create_sound_source('VA_Source');va.set_sound_source_position(S,[21.72])% Create a listener with a HRTF and position himL=va.create_sound_receiver('VA_Listener');va.set_sound_receiver_position(L,[01.70])H=va.create_directivity('$(DefaultHRIR)');va.set_sound_receiver_directivity(L,H);% Connect the signal source to the virtual sound sourceva.set_sound_source_signal_source(S,X)% More informationdisp('Type ''doc VA'' for more information.')