MIR Toolbox: Error using check_order - mirsimatrix
Show older comments
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);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 Comments
Walter Roberson
on 20 Mar 2026 at 20:20
The version of mirsimatrix that is available at https://www.mathworks.com/matlabcentral/fileexchange/24583-mirtoolbox/files/MIRtoolbox1.3.4_matlabcentral/MIRToolbox/@mirsimatrix/mirsimatrix.m has no calls to window() at all.
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
I suggest you start with the toolbox examples provided. Do they work or do you still encounter problems ? If this is the case, you should contact the authors of the toolbox.
Did you read the chapter "Installation" in "manual.pdf" ?
Leonard
18 minutes ago
Leonard
2 minutes ago
Torsten
26 minutes ago
Maybe you mix files of different releases of the mirtoolbox ? "mirsimatrix" is called with a parameter "Half", but this parameter is unknown. This could be an indication for an incompatibility between calling and called program.
Answers (0)
Categories
Find more on Audio Processing Algorithm Design in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!