Acoustics is a branch of physics studying the properties of sounds. This tag may be used to identify any programming problem related to the generation, propagation, reception, and processing of sounds.
Questions tagged [acoustics]
77 questions
0
votes
0 answers
How to run the acoustic index analysis of M (Median of the amplitude envelope) for multiple files in a folder in rStudio?
I am trying to run a acoustic analysis of M for multiple files in a folder. I tried various ways with loops, but really unexperienced with writing them so struggling. However, that doesn't seem to be the problem, because the error message I'll get…

Fiene
- 1
- 1
0
votes
0 answers
Negative lag in cross-correlation
I recorded a signal from a microphone. The recorded signal will have some reflections from the surrounding walls. I would like to locate these reflections. To do this I will use pulse compression. Pulse compression is acquired by estimating the…

vegiv
- 124
- 1
- 9
0
votes
0 answers
ESP32 Arduino code isn't responding to commands given in serial monitor
I am currently working on a project with acoustic levitation arrays in the application of haptic feedback, however, the code that's provided by the original creator isn't working. The problem is that when I'm sending commands (e.g. on, off, focus,…

Dan
- 11
- 1
0
votes
1 answer
Having issue with units for wav file spectral density analysis (db artificially low)
I have the below code which is adapted from other code I found here. It runs fine and the plot looks as expected except the dB levels are about 80dB too low. Note, the intended unit is dB SPL. I would appreciate any input on fixing this, I am…

Benjamin Colbert
- 67
- 5
0
votes
1 answer
How to shift timestamps in multiple sequential file names (wav files, from bioacoustic monitoring) using R
I deployed passive acoustic recorders to detect animal calls but on one of my devices the date & time settings got messed up and reverted to the default (Jan 1, 2000). And then the device recorded for a month, writing 20-min files that are day &…

Carly Batist
- 101
- 3
0
votes
1 answer
What is the input data format of a sound card (in library `miniaudio` or others)?
I am developing an acoustic simulation program. I can calculate the pressure wave (in Pa), but I cannot play it on my MacBook Pro. I'm using a helper lib miniaudio.
My questions are:
What is the input format of PC sound card? I mean, Is it correct…

Xudong
- 71
- 1
- 7
0
votes
1 answer
Data wrangling to map timing and frequency of the notes in a recording
I have a dataset having 216 sound recording files represented by the start and end timing (in seconds) and the respective frequencies of the notes sung by male and female…

Roy
- 21
- 2
0
votes
2 answers
Ideas for extracting a portion of a wav file and saving as new wav file in MATLAB
This may be easy but I'm no expert in MatLab. I have a bacth of wav files and I need to extract a 30s sample from each. Example:
1.wav - need 1:34-2:04
2.wav - need 5:15 - 5:45
Ideally I'd like to run a code which will take each wav file and extract…

brc
- 99
- 8
0
votes
0 answers
Cross talk cancellation
I have a general quesiton regarding the technique of 'cross talk cancellation'.
Most of the work done out there is 'cross talk cancellation for a single listeners with two speakers symmetric to the head/listener'
For example, if someone wants to…

Sanket Jain
- 21
- 2
0
votes
2 answers
Head related impulse response for binaural audio
I am working with audio digital signal processing and binaural audio processing.
I am still learning the basics.
Right now, the idea is to do deconvolution and get an impulse response.
Please see the attached screenshot
Detailed description of what…

Sanket Jain
- 21
- 2
0
votes
0 answers
Do you need to include additional sentinel tags when you are using VR2AR receivers for a VPS system?
I will be working on a ~12 reciver VPS system to look at the spawning behaviour of a cold lake fish and was wondering, if I am using all VR2AR 69kHz receivers for the project, which have built-in transmitters, will I have to put additional sentinel…

fishlakeslimno
- 31
- 4
0
votes
1 answer
Is there a way to change my file path automatically and apply a function in R?
I'm looking to apply the 'multiple_sounds' function to a list of .WAV files from a folder using R. This is my current code:
##### 1 #####
setwd("E:/Audiomoth Files/Winter/Rural/Emma/_1")
multiple_sounds(directory = "E:/Audiomoth…

HarHar
- 35
- 5
0
votes
1 answer
Impedance of a blowing instrument
I'm trying to reproduce the model described in this paper https://hal.archives-ouvertes.fr/file/index/docid/683477/filename/clarinette-logique-8.pdf.
Here is a method that returns the transfer matrix for a cylinder of radius a and length L.
#…

pamplemousse
- 13
- 3
0
votes
1 answer
More efficient way of subsampling sound files?
Apologies in advance if this has already been asked and for my wording of this question as I am new to R.
Is there any way of making my code for subsampling sound files more efficient? I have 148 hours of recordings from 9 sites, for each site I am…

HarHar
- 35
- 5
0
votes
1 answer
Writematrix command not working in MATLAB
sname='Sheet1';
startingColumn='A';
nextRow='1';
filename = 'C:\Users\vvb\Documents\New\ltp.xlsx';
ltp_hist_uper=hist(ltp_uper,10);
ltp_hist_lower=hist(ltp_lower,10);
ltp_full=[ltp_hist_uper ltp_hist_lower]; % contatinate both uper and lower…

baber younis
- 1
- 3