Using Audiowrite is clipping WAV files (2024)

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

Sign in to comment.

Answers (1)

Using Audiowrite is clipping WAV files (2)

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

Sign in to comment.

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!

Start Hunting!

An Error Occurred

Unable to complete the action because of changes made to the page. Reload the page to see its updated state.


Using Audiowrite is clipping WAV files (3)

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

Europe

Asia Pacific

Contact your local office

Using Audiowrite is clipping WAV files (2024)
Top Articles
Latest Posts
Article information

Author: Margart Wisoky

Last Updated:

Views: 5606

Rating: 4.8 / 5 (78 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Margart Wisoky

Birthday: 1993-05-13

Address: 2113 Abernathy Knoll, New Tamerafurt, CT 66893-2169

Phone: +25815234346805

Job: Central Developer

Hobby: Machining, Pottery, Rafting, Cosplaying, Jogging, Taekwondo, Scouting

Introduction: My name is Margart Wisoky, I am a gorgeous, shiny, successful, beautiful, adventurous, excited, pleasant person who loves writing and wants to share my knowledge and understanding with you.