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
8
votes
2 answers
How to find a resonance frequency of an oscillator?
I am currently trying to simulate acoustic resonators using OpenModelica, and I am wondering how to robustly/nicely calculate their resonance frequency.
As a simplified example (without Media, etc), I have implemented a dual Helmholtz resonator, in…

Christoph
- 5,480
- 6
- 36
- 61
5
votes
2 answers
Convert ReplayGain values to volume adjustments
I'm trying to implement Replay Gain (that is, responding to replaygain tags in music files) into the stock Android/AOSP music player app. This is just a personal project but down the line I could offer it as a patch or maybe make a lib or player of…

Headbank
- 51
- 3
4
votes
3 answers
Acoustic fingerprint code for iOS?
I've started looking on the subject of Acoustic Fingerprint (http://en.wikipedia.org/wiki/Acoustic_fingerprint) for a pet project of mine for the iOS and I was wondering if there are:
Any opensource libraries or source code for the iOS that handle…

Ron
- 1,806
- 3
- 18
- 31
4
votes
2 answers
Loading the data for a Simulink Lookup Table from a file
I've built a Matlab/Simulink model that I'm using to simulate the performance of an underwater robotic vehicle that uses acoustics for various key navigation and localisation functions.
Since the characteristics of the ocean change with seasonality…

Assad Ebrahim
- 6,234
- 8
- 42
- 68
4
votes
1 answer
iOS Tone Generator with variable Oscillation Patterns
I have a Tone Generator Application that generates a tone based on Slider Value for frequency. This part of the application works fine. I'm redering tone using
#import
OSStatus RenderTone(
void *inRefCon,…

Aspiring Developer
- 303
- 1
- 5
- 18
3
votes
1 answer
Data wrangling problem with labelled sound files
Let's say I have a large dataframe with a column for 'soundfile' and then 'start and 'end' columns for when a particular bird is vocalising. Each vocalisation can vary significantly in length. An example of the dataframe is sound_df below. Each row…

davidj444
- 115
- 5
3
votes
2 answers
What function in R extracts the dB values from a .wav file
I have some sound data in .wav format and I would like to extract Sound Pressure Level data from this file in dB for different timepoints of the recording so I know how loud the recording is at what timepoint.
I have downloaded the r packages…

stressedstudent
- 31
- 2
3
votes
3 answers
Is there a Java-based ray tracing model that can be adapted for use in underwater acoustics?
I am looking for an open-source Java-based raytracing system suitable for use in modeling underwater ray-based acoustics. Such a package might be similar to the Comprehensive Acoustic System Simulation (CASS) with the Gaussian Ray Bundle (GRAB) but…

Bob Cross
- 22,116
- 12
- 58
- 95
2
votes
2 answers
Correctly understanding amplitude of waveforms - in librosa or other libraries
I lack a background in acoustics, but need to work on a data-science project in acoustics.
Please help me understand how to correctly interpret what amplitude of waveform represent, correctly set the metrics, and possibly set correct sampling rate…

user305883
- 1,635
- 2
- 24
- 48
2
votes
1 answer
Analysing vocal similarity of little owls using warbleR in R
I am struggling a bit with an analysis I need to do. I have collected data consisting of little owl calls that were recorded along transects. I want to analyse these recordings for similarity, in order to see which recorded calls are from the same…

Roos
- 31
- 2
2
votes
1 answer
Design audio digital filter
I have been working on audio digital signal processing. I wish to design a digital filter. I have attached the screenshot. Of course, I can design band pass or bandstop filter using FIR/IIR filters, but what is special about this filter is that it…

Sanket Jain
- 21
- 2
2
votes
1 answer
Extract S4 object from list vector monitoR
I have a list vector containing S4 correlation templates from the monitoR::makeCorTemplate function.
temps_0 <- vector(mode = 'list',length=length(tru_files_info_0$species_id))
for (j in 1: length(tru_files_info_0$species_id)) {
temps_0[j] <-…

Chris
- 1,647
- 1
- 18
- 25
2
votes
3 answers
Drive an DAC from a stream that is clocked from another source?
My DAC is internally clocked at 48khz, I need to feed it from a stream that is also 48khz but is clocked from a different source.
The two sources will drift over time and any buffering in between will inevitably overflow or underflow.
Unfortunately,…

JeffV
- 52,985
- 32
- 103
- 124
2
votes
1 answer
Modify the volume frame by frame in a wave file
I want to modulate a wave file frame-by-frame using Python. The wave file is composed of brown noise, so pseudo-random noise. The idea would be:
Open the file
Mmodulate it with a 40Hz modulation frequency
Save the new file
I saw that there were…

Pyxel
- 107
- 11
2
votes
0 answers
Ray tracing on GLSL
I'm looking for to simulate the reflection effect using ray tracing on GLSL, however I could not find good references, examples or tutorial related to this topic. When I got some interesting data, the method is limited for specific object's surfaces…

Rômulo Cerqueira
- 199
- 2
- 12