comparison 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
comparison
equal deleted inserted replaced
154:0de08f68256b 155:b14209313ba4
1 function reconstructed=SMALL_midiGenerate(V, Problem) 1 function reconstructed=SMALL_midiGenerate(V, Problem)
2 %% Reconstraction of midi file from representation in the given dictionary 2 %% Reconstruction of midi file from representation in the given dictionary
3 % 3 %
4 % SMALL_midiGenerate is a part of SMALLbox and can be use to reconstruct 4 % SMALL_midiGenerate is a part of SMALLbox and can be use to reconstruct
5 % a midi file given representation of the training set (V) in the 5 % a midi file given representation of the training set (V) in the
6 % dictionary Problem.A. 6 % dictionary Problem.A.
7 % Output is reconstructed structure with two fields: 7 % Output is reconstructed structure with two fields:
20 %% 20 %%
21 U=Problem.A; % Dictionary used for representation 21 U=Problem.A; % Dictionary used for representation
22 fs=Problem.fs; % Sampling rate 22 fs=Problem.fs; % Sampling rate
23 f=Problem.f; % vector of frequencies at wihch spectrogram is computed 23 f=Problem.f; % vector of frequencies at wihch spectrogram is computed
24 24
25 ts=(Problem.windowSize*Problem.overlap)/fs; %size of an analysis frame in seconds 25 ts=(Problem.windowSize*(1-Problem.overlap))/fs; %size of an analysis frame in seconds
26 26
27 %% 27 %%
28 % Components pitch estimation using modified SWIPE algorithm by Arthuro 28 % Components pitch estimation using modified SWIPE algorithm by Arthuro
29 % Camacho 29 % Camacho
30 % 30 %