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