Mercurial > hg > smallbox
diff util/SMALL_midiGenerate.m @ 159:23763c5fbda5 danieleb
Merge
author | Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk> |
---|---|
date | Wed, 31 Aug 2011 10:43:32 +0100 |
parents | b14209313ba4 |
children |
line wrap: on
line diff
--- a/util/SMALL_midiGenerate.m Wed Aug 31 10:37:57 2011 +0100 +++ b/util/SMALL_midiGenerate.m Wed Aug 31 10:43:32 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