4 views (last 30 days)
Show older comments
Audiowrite is only capable of writing data to WAV in a range of +/- 1.0. I have sound files that get up to around +/-8.0 Pa. I understand that the documentation says the sound data should be normalized to fit in the +/-1.0 range, and I know how to do it, but it screws up my data processing later on if I do that. My question is, why is the range +/-1? Why can't it be whatever I need it to be? Is there a different way to get this done without clipping?
0 Comments Show -2 older commentsHide -2 older comments
Show -2 older commentsHide -2 older comments
Answers (1)
Walter Roberson on 3 Jun 2019
⋮
Sound file formats such as wav are not data files. They are not intended to represent specific signal levels, and make not attempt to deal with very common issues such as Mic Level (about 1 millivolt) or Line Level (about sqrt(3) volts for pro, about 1/2 V for consumer), let alone pre-amp speaker levels or post-amp driving speakers. They are not Pa readings. Sound file formats store information about signal levels relative to the maximum of the system. The signal information dealt with stays the same regardless of whether someone has their volume set at half or if they have turned it up to 11.
The way to do this without clipping is to not use a sound file.
0 Comments Show -2 older commentsHide -2 older comments
Show -2 older commentsHide -2 older comments
See Also
Categories
Find more on Audio I/O and Waveform Generation in Help Center and File Exchange
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)
Contact your local office