Acoustic Resonance Beta1-2020 Sweep the frequency and measures the audio response amplitude (in arbitrary unit). Can be used to look for an audio resonance (Helmholtz resonnator or a tube). AR2 yellow all_freq all_amp index temp now first_run temporary freq start_f add_f mult_f length tfull t phase audio_in audio_out_amp audio_out_freq audio_out_duration audio_squared sum max_ind res_freq freq sum res_freq all_freq all_amp start_f add_f mult_f freq sum now index first_run now index 1 index index now temporary temporary 3 1 0 first_run first_run 0 freq all_freq freq add_f freq freq mult_f freq freq 0 start_f freq freq 20000 20000 freq freq 20 20 freq first_run 1 start_f freq freq audio_out_freq audio_in 2 audio_squared audio_squared sum first_run 0 sum all_amp all_amp max_ind max_ind 1 all_freq res_freq all_freq all_amp