May I ask can I change the value of the maximum amplitude of wav file and save as new wav file?

1 view (last 30 days)
May I ask can I change the value of the maximum amplitude of wav file and save as new wav file? For example I want to change max1 and max2 to other value and save as other wav file after change it.
[y,Fs] = audioread('test4.wav');
amplitudes = abs(y);
left=y(:,1);
max1 = max(abs(left));
right=y(:,2);
max2 = max(abs(right));
disp(max1);
disp(max2);

Answers (0)

Community Treasure Hunt

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

Start Hunting!