comparison util/SMALL_midiGenerate.m @ 128:8e660fd14774 ivand_dev

Feature 186
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Mon, 13 Jun 2011 14:55:45 +0100
parents fc395272d53e
children b14209313ba4
comparison
equal deleted inserted replaced
126:db5a7fe1a404 128:8e660fd14774
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 %% Reconstraction of midi file from representation in the given dictionary
3 %
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
6 % dictionary Problem.A.
7 % Output is reconstructed structure with two fields:
8 % - reconstructed.notes - matrix with transcribed notes
9 % - reconstructed.midi - midi representation of transcription
10
3 % 11 %
4 % Centre for Digital Music, Queen Mary, University of London. 12 % Centre for Digital Music, Queen Mary, University of London.
5 % This file copyright 2009 Ivan Damnjanovic. 13 % This file copyright 2009 Ivan Damnjanovic.
6 % 14 %
7 % This program is free software; you can redistribute it and/or 15 % This program is free software; you can redistribute it and/or
8 % modify it under the terms of the GNU General Public License as 16 % modify it under the terms of the GNU General Public License as
9 % published by the Free Software Foundation; either version 2 of the 17 % published by the Free Software Foundation; either version 2 of the
10 % License, or (at your option) any later version. See the file 18 % License, or (at your option) any later version. See the file
11 % COPYING included with this distribution for more information. 19 % COPYING included with this distribution for more information.
12 %
13 % SMALL_midiGenerate is a part of SMALLbox and can be use to reconstruct
14 % a midi file given representation of the training set (V) in the
15 % dictionary Problem.A.
16 % Output is reconstructed structure with two fields:
17 % - reconstructed.notes - matrix with transcribed notes
18 % - reconstructed.midi - midi representation of transcription
19
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