Skip to content
Snippets Groups Projects
Select Git revision
  • bb406effd5dac360ed769a04c10ce46a8fa26f89
  • master default protected
  • py
  • rmevec
  • tffm
  • approx
  • v0.1.5
  • v0.1.4
  • v0.1.3
9 results

wav_write.m

Blame
  • user avatar
    Marina Kreme authored
    f7c58667
    History
    wav_write.m 399 B
    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