Mercurial > hg > smallbox
comparison util/SMALL_midiGenerate.m @ 164:4205744092e6 release_1.9
Merge from branch "ivand_dev"
author | Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk> |
---|---|
date | Wed, 07 Sep 2011 14:17:30 +0100 |
parents | b14209313ba4 |
children |
comparison
equal
deleted
inserted
replaced
151:af5abc34a5e1 | 164:4205744092e6 |
---|---|
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 % |