wolffd@0: function cl = mirchunklim(lim) wolffd@0: % c = mirchunklim returns the maximal chunk size. wolffd@0: % If the size of a long audio files exceeds that size, it will be wolffd@0: % decomposed into chunks of that size, before being analyzed in the wolffd@0: % different functions on the toolbox. wolffd@0: % mirchunklim(c) specifies a new maximal chunk size. wolffd@0: % If MIRtoolbox tends to use more memory than what is available in the wolffd@0: % RAM of your computer, you should decrease the maximal chunk size. wolffd@0: % mirchunklim(Inf) toggles off the automated chunk decomposition. wolffd@0: wolffd@0: persistent chunklim wolffd@0: wolffd@0: if nargin wolffd@0: if not(isnumeric(lim)) wolffd@0: error('ERROR IN MIRCHUNKLIM: The argument should be a number.') wolffd@0: end wolffd@0: chunklim = lim; wolffd@0: else wolffd@0: if isempty(chunklim) wolffd@0: chunklim = 5e5; wolffd@0: end wolffd@0: end wolffd@0: wolffd@0: cl = chunklim;