Mercurial > hg > camir-aes2014
comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/mirchunklim.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e9a9cd732c1e |
---|---|
1 function cl = mirchunklim(lim) | |
2 % c = mirchunklim returns the maximal chunk size. | |
3 % If the size of a long audio files exceeds that size, it will be | |
4 % decomposed into chunks of that size, before being analyzed in the | |
5 % different functions on the toolbox. | |
6 % mirchunklim(c) specifies a new maximal chunk size. | |
7 % If MIRtoolbox tends to use more memory than what is available in the | |
8 % RAM of your computer, you should decrease the maximal chunk size. | |
9 % mirchunklim(Inf) toggles off the automated chunk decomposition. | |
10 | |
11 persistent chunklim | |
12 | |
13 if nargin | |
14 if not(isnumeric(lim)) | |
15 error('ERROR IN MIRCHUNKLIM: The argument should be a number.') | |
16 end | |
17 chunklim = lim; | |
18 else | |
19 if isempty(chunklim) | |
20 chunklim = 5e5; | |
21 end | |
22 end | |
23 | |
24 cl = chunklim; |