annotate toolboxes/MIRtoolbox1.3.2/MIRToolbox/mirsave.m @ 0:cc4b1211e677
tip
initial commit to HG from
Changeset:
646 (e263d8a21543) added further path and more save "camirversion.m"
author |
Daniel Wolff |
date |
Fri, 19 Aug 2016 13:07:06 +0200 |
parents |
|
children |
|
rev |
line source |
Daniel@0
|
1 function mirsave(d,varargin)
|
Daniel@0
|
2 % mirsave(d) saves temporal data d in a file.
|
Daniel@0
|
3 % If d is a miraudio object, the waveform is directly saved.
|
Daniel@0
|
4 % mirenvelope data is sonified using modulated white noise.
|
Daniel@0
|
5 % mirpitch data is sonified using sinusoids.
|
Daniel@0
|
6 % (cf. User's Manual for more details).
|
Daniel@0
|
7 % The file(s) name is based on the original file name(s), adding '.mir'
|
Daniel@0
|
8 % before the standard extension of the file.
|
Daniel@0
|
9 % mirsave(d,f) specifies the file names.
|
Daniel@0
|
10 % If d contains one single audio sequence, d is saved in a file
|
Daniel@0
|
11 % named f.
|
Daniel@0
|
12 % If d contains multiple audio sequences, each sequence is saved
|
Daniel@0
|
13 % in a file whose name is the concatenation of the original
|
Daniel@0
|
14 % name and f.
|
Daniel@0
|
15 % If f ends with '.wav', the file is saved in WAV format (by
|
Daniel@0
|
16 % default).
|
Daniel@0
|
17 % If f ends with '.au', the file is saved in AU format.
|
Daniel@0
|
18 % mirsave(d,f,'SeparateChannels') save each separate channel in a
|
Daniel@0
|
19 % different file.
|
Daniel@0
|
20
|
Daniel@0
|
21
|
Daniel@0
|
22 mirsave(miraudio(d),varargin{:}) |