MIR Toolbox: Error using check_order - mirsimatrix

Hi,
this is my first time posting and also my first day with matlab, so any hints are welcome!
I'd like to use the MIR Toolbox ( https://de.mathworks.com/matlabcentral/fileexchange/24583-mirtoolbox ) for the extraction of musical features - ultimately, i'd like to use "mirnovelty".
But with "mirnovelty" as well as with "mirsimatrix" (which is used by "mirnovelty") i run into following error after prompting (File name changed). I am on R2025b and Mac OS 15.7.4.
Thank you!
Leo
>> mirsimatrix('file.wav')
Computing miraudio related to file.wav...
Computing mirsum related to file.wav...
Computing mirspectrum related to file.wav...
Computing mirsimatrix related to file.wav...
Error using check_order
Expected N to be finite.
Error in check_order (line 22)
validateattributes(n_in,{'numeric'},{'scalar','finite','real','nonnegative'},'check_order','N');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in hanning (line 25)
[n,wt,trivialwin] = check_order(varargin{1});
^^^^^^^^^^^^^^^^^^^^^^^^
Error in window (line 59)
w = winfun(N,varargin{:});
^^^^^^^^^^^^^^^^^^^^^
Error in mirsimatrix>main (line 288)
win = window(@hanning,lK);
^^^^^^^^^^^^^^^^^^^
Error in mirfunction (line 187)
o = main(orig,during,after);
^^^^^^^^^^^^^^^^^^^^^^^
Error in mirsimatrix (line 113)
varargout = mirfunction(@mirsimatrix,orig,varargin,nargout,specif,@init,@main);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in mirdesign/evaleach>evalnow (line 760)
[y argin] = d.method(argin,d.option,d.postoption);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in mirdesign/evaleach (line 269)
[y d2] = evalnow(d);
^^^^^^^^^^
Error in mirevalaudiofile (line 82)
v = evaleach(d,single,name);
^^^^^^^^^^^^^^^^^^^^^^^
Error in mireval (line 158)
yf = mirevalaudiofile(d,a{f},sr(f),lg(f),w(:,f),{},0,f,single,'',ch);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in mirfunction (line 74)
o = mireval(o,filename,nout);
^^^^^^^^^^^^^^^^^^^^^^^^
Error in mirsimatrix (line 113)
varargout = mirfunction(@mirsimatrix,orig,varargin,nargout,specif,@init,@main);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2 Kommentare

Torsten
Torsten vor 23 Minuten
Bearbeitet: Torsten vor 18 Minuten
The input file "file.wav" is necessary to diagnoze the problem.
I assume you have MATLAB's Signal Processing toolbox licenced and installed ?
If I load in the toolbox from the Add-On manager, then it contains no lines at all of the form
win = window(@hanning,lK);
@mirspectrum/mirspectrum.m and @mirautocor/mirautocor.m does contain a call
w = window(winf,N);
and in each case, @hanning is a possible value for winf -- but those are the only possible references to hanning and it is not inside mirsimatrix

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Signal Processing finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2025b

Gefragt:

am 20 Mär. 2026 um 16:47

Kommentiert:

vor etwa 23 Stunden

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by