Sound generation with a particular power
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
SHS
il 15 Ott 2019
Commentato: Walter Roberson
il 17 Ott 2019
How can I generate a sound with a particular power?
Using the sound function to play simple sinusoidal signals, the loudness does not change when I modify the power of the sinusoidal signal. For example, the following signals sound exactly the same:
signal_1 = sin(2*pi*1000*(0:0.01:1));
signal_2 = 10 * sin(2*pi*1000*(0:0.01:1));
0 Commenti
Risposta accettata
Walter Roberson
il 15 Ott 2019
Modificato: Walter Roberson
il 15 Ott 2019
help sound
sound(Y,FS) sends the signal in vector Y (with sample frequency FS) out to the speaker on platforms that support sound. Values in Y are assumed to be in the range -1.0 <= y <= 1.0. Values outside that range are clipped.
2 Commenti
Walter Roberson
il 17 Ott 2019
If the goal is to create an output at a given SPL (sound pressure level), you will need an external amp and calibrated settings, and some additional calculations. One thing you would have to decide is whether the SPL target is to be peak or RMS.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Simulation, Tuning, and Visualization in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!