Sound generation with a particular power

조회 수: 3 (최근 30일)
SHS
SHS 2019년 10월 15일
댓글: Walter Roberson 2019년 10월 17일
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));

채택된 답변

Walter Roberson
Walter Roberson 2019년 10월 15일
편집: Walter Roberson 2019년 10월 15일
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
SHS
SHS 2019년 10월 15일
Thanks for the reply.
So, if I want to generate a sound with a higher power, do I have to connect an amplifier to the computer output? Or is there another MATLAB syntax to produce sounds with higher range?
Walter Roberson
Walter Roberson 2019년 10월 17일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

태그

제품


릴리스

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by