Class Acoustics
java.lang.Object
org.episteme.natural.physics.classical.waves.acoustics.Acoustics
Acoustics equations - sound propagation, intensity, resonance.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RealacousticImpedance(Real density, Real soundSpeed) Acoustic impedance: Z = ÃÂÂÂv (density Ã sound speed)static RealbeatFrequency(Real freq1, Real freq2) Beat frequency: f_beat = |fâ‚ - fâ‚‚|static RealclosedPipeResonance(int harmonicNumber, Real soundSpeed, Real length) Resonance frequency of closed pipe: f_n = (2n-1)v/(4L)static RealdopplerFrequency(Real sourceFreq, Real soundSpeed, Real observerVelocity, Real sourceVelocity) Doppler effect: f' = f(v + v_observer)/(v - v_source)static intfrequencyToMidi(Real frequency) Frequency to MIDI note number. n = 69 + 12 * logâ‚‚(f/440)static RealmidiToFrequency(int midiNote) MIDI note number to frequency. f = 440 * 2^((n-69)/12)static RealopenPipeResonance(int harmonicNumber, Real soundSpeed, Real length) Resonance frequency of open pipe: f_n = nv/(2L)static RealpressureToDecibels(Real pressure) Pressure to decibels: L = 20 logâ‚ÂÂâ‚€(p/pâ‚€) where pâ‚€ = 2Ãâ€â€10âÂÂȉµ Pa (reference pressure)static RealsoundIntensity(Real power, Real distance) Sound intensity from power: I = P/(4Àr²)static RealsoundIntensityLevel(Real intensity) Sound intensity level (decibels): L = 10 logâ‚ÂÂâ‚€(I/Iâ‚€) where Iâ‚€ = 10⻹² W/m² (threshold of hearing)static RealspeedOfSoundInAir(Real temperatureCelsius) Speed of sound in air: v ≈331 + 0.6T (m/s, T in °C)static RealspeedOfSoundInAirAccurate(Real tempCelsius) Speed of sound in air (more accurate formula). v = 331.3 * sqrt(1 + T/273.15)
-
Field Details
-
C_AIR_20C
Speed of sound in air at 20°C -
C_WATER
Speed of sound in water
-
-
Constructor Details
-
Acoustics
public Acoustics()
-
-
Method Details
-
speedOfSoundInAir
-
speedOfSoundInAirAccurate
-
soundIntensityLevel
-
pressureToDecibels
-
dopplerFrequency
-
closedPipeResonance
-
openPipeResonance
-
beatFrequency
-
acousticImpedance
-
soundIntensity
-
midiToFrequency
MIDI note number to frequency. f = 440 * 2^((n-69)/12) -
frequencyToMidi
Frequency to MIDI note number. n = 69 + 12 * logâ‚‚(f/440)
-