s-u / audio

Audio Interface for R
Other
12 stars 8 forks source link

Added normalize to audioSample #6

Open matthijsz opened 2 years ago

matthijsz commented 2 years ago

I noticed that some MP3 files would still have values with values far outside of the [-1, 1] range leading to distorted audio with or without clip. Normalizing these to [-1, 1] solved this issue, so I thought it might be worth adding this to the audioSample() function for other users (defaults to FALSE to keep default behavior from previous versions). Also added it to the manual, and fixed some few minor typos there.