diff --git a/matlab/tfgm/utils/wav_write.m b/matlab/tfgm/utils/wav_write.m new file mode 100644 index 0000000000000000000000000000000000000000..da354e9595674152ce7e10d247687675aefe22f9 --- /dev/null +++ b/matlab/tfgm/utils/wav_write.m @@ -0,0 +1,14 @@ +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