[x, sr] = wavread('rick.wav'); x_mono = mean(x,2); X = specgram(x_mono, nfft, sr); Y = X >= imdilate(X, ones(mask_size), 'same'); y = ispecgram(Y, nfft, sr); % wavwrite(y, sr, 'roll.wav');
[1] http://github.com/tbertinmahieux/MSongsDB/blob/master/Matlab...
[1] http://github.com/tbertinmahieux/MSongsDB/blob/master/Matlab...