diff util/SMALL_midiGenerate.m @ 155:b14209313ba4 ivand_dev

Integration of Majorization Minimisation Dictionary Learning
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Mon, 22 Aug 2011 11:46:35 +0100
parents 8e660fd14774
children
line wrap: on
line diff
--- a/util/SMALL_midiGenerate.m	Fri Aug 12 11:17:47 2011 +0100
+++ b/util/SMALL_midiGenerate.m	Mon Aug 22 11:46:35 2011 +0100
@@ -1,5 +1,5 @@
 function reconstructed=SMALL_midiGenerate(V, Problem)
-%% Reconstraction of midi file from representation in the given dictionary
+%% Reconstruction of midi file from representation in the given dictionary
 %   
 %   SMALL_midiGenerate is a part of SMALLbox and can be use to reconstruct
 %   a midi file given representation of the training set (V) in the
@@ -22,7 +22,7 @@
 fs=Problem.fs;  %   Sampling rate
 f=Problem.f;    %   vector of frequencies at wihch spectrogram is computed
 
-ts=(Problem.windowSize*Problem.overlap)/fs; %size of an analysis frame in seconds
+ts=(Problem.windowSize*(1-Problem.overlap))/fs; %size of an analysis frame in seconds
 
 %%
 % Components pitch estimation using modified SWIPE algorithm by Arthuro