Mercurial > hg > camir-aes2014
annotate toolboxes/MIRtoolbox1.3.2/MIRToolbox/mirsave.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
rev | line source |
---|---|
wolffd@0 | 1 function mirsave(d,varargin) |
wolffd@0 | 2 % mirsave(d) saves temporal data d in a file. |
wolffd@0 | 3 % If d is a miraudio object, the waveform is directly saved. |
wolffd@0 | 4 % mirenvelope data is sonified using modulated white noise. |
wolffd@0 | 5 % mirpitch data is sonified using sinusoids. |
wolffd@0 | 6 % (cf. User's Manual for more details). |
wolffd@0 | 7 % The file(s) name is based on the original file name(s), adding '.mir' |
wolffd@0 | 8 % before the standard extension of the file. |
wolffd@0 | 9 % mirsave(d,f) specifies the file names. |
wolffd@0 | 10 % If d contains one single audio sequence, d is saved in a file |
wolffd@0 | 11 % named f. |
wolffd@0 | 12 % If d contains multiple audio sequences, each sequence is saved |
wolffd@0 | 13 % in a file whose name is the concatenation of the original |
wolffd@0 | 14 % name and f. |
wolffd@0 | 15 % If f ends with '.wav', the file is saved in WAV format (by |
wolffd@0 | 16 % default). |
wolffd@0 | 17 % If f ends with '.au', the file is saved in AU format. |
wolffd@0 | 18 % mirsave(d,f,'SeparateChannels') save each separate channel in a |
wolffd@0 | 19 % different file. |
wolffd@0 | 20 |
wolffd@0 | 21 |
wolffd@0 | 22 mirsave(miraudio(d),varargin{:}) |