wolffd@0: function mirsave(d,varargin) wolffd@0: % mirsave(d) saves temporal data d in a file. wolffd@0: % If d is a miraudio object, the waveform is directly saved. wolffd@0: % mirenvelope data is sonified using modulated white noise. wolffd@0: % mirpitch data is sonified using sinusoids. wolffd@0: % (cf. User's Manual for more details). wolffd@0: % The file(s) name is based on the original file name(s), adding '.mir' wolffd@0: % before the standard extension of the file. wolffd@0: % mirsave(d,f) specifies the file names. wolffd@0: % If d contains one single audio sequence, d is saved in a file wolffd@0: % named f. wolffd@0: % If d contains multiple audio sequences, each sequence is saved wolffd@0: % in a file whose name is the concatenation of the original wolffd@0: % name and f. wolffd@0: % If f ends with '.wav', the file is saved in WAV format (by wolffd@0: % default). wolffd@0: % If f ends with '.au', the file is saved in AU format. wolffd@0: % mirsave(d,f,'SeparateChannels') save each separate channel in a wolffd@0: % different file. wolffd@0: wolffd@0: wolffd@0: mirsave(miraudio(d),varargin{:})