Code covered by the BSD License  

Highlights from
MIRtoolbox

image thumbnail
from MIRtoolbox by Olivier Lartillot
An innovative environment, on top of Matlab, for music and audio analysis

demo2timbre
function demo2timbre

try
    cd('train_set')
catch
end

a = miraudio('Folder');

z = mirzerocross(a)
disp('Ascending order of zero crossing...')
mirplay(a,'Increasing',z,'Every',5)

l = mirlowenergy(a)
disp('Ascending order of low energy rate...')
mirplay(a,'Increasing',l,'Every',5)

c = mircentroid(a)
disp('Ascending order of spectral centroid...')
mirplay(a,'Increasing',c,'Every',5)

r = mirrolloff(a)
disp('Ascending order of spectral roll-off...')
mirplay(a,'Increasing',r,'Every',5)

i = mirregularity(a)
disp('Ascending order of spectral irregularity...')
mirplay(a,'Increasing',i,'Every',5)

e = mirentropy(a)
disp('Ascending order of spectral entropy...')
mirplay(a,'Increasing',e,'Every',5)

Contact us at files@mathworks.com