Commit 6c1132aa authored by Marina Kreme's avatar Marina Kreme
Browse files

add function

parent 6e5501cb
Pipeline #5970 canceled with stage
function wav_write(filename, y, fs)
%% WAV_WRITE
% Function that writes an audio data file $y$ from a sampling frequency $fs$to a
% file called a $filename$.The filename entry also specifies the format
% of the output file.
%
% Author : A. Marina KREME
% e-mail : ama-marina.kreme@lis-lab.fr/ama-marina.kreme@univ-amu.fr
% Created: 2020-28-01
%%
x= y/max(abs(y));
audiowrite(filename,x,fs);
end
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment