Skip to contents

Prepare acoustic data

Functions that format acoustic data for playback experiments

master_sound_file()
Create a master sound file
synth_sounds()
Create synthetic sounds

Aligning test sound files

Aligning test sounds to determine their time position

align_test_files()
Align test sound files
auto_realign()
Fix small misalignments in the time position test sounds
find_markers()
Find acoustic markers on test sound files
manual_realign()
Plot spectrograms to check test sound files alignment
plot_aligned_sounds()
Plot spectrograms to check test sound files alignment

Quantify degradation

Functions for quantifying degradation metrics

blur_ratio()
Measure blur ratio in the time domain
detection_distance()
Measure detection distance of sound
envelope_correlation()
Measure amplitude envelope correlation
excess_attenuation()
Measure excess attenuation
plot_blur_ratio()
Plot blur ratio
plot_degradation()
Save multipanel plots with reference and test sounds
set_reference_sounds()
Set reference for test sounds
signal_to_noise_ratio()
Measure attenuation as signal-to-noise ratio
spcc()
Measure spectrographic cross-correlation as a measure of sound distortion
spectrum_blur_ratio()
Measure blur ratio in the frequency domain
spectrum_correlation()
Measure frequency spectrum correlation
tail_to_signal_ratio()
Measure reverberations as tail-to-signal ratio

Built in datasets

Datasets included in baRulho

master_est
Extended selection table of master acoustic data
test_sounds_est
Extended selection table with re-recorded playbacks

Additional functions

attenuation()
Estimate attenuation of sound pressure level
add_noise()
Add synthetic noise
noise_profile()
Measure full spectrum sound noise profiles