comparison examples/Automatic Music Transcription/SMALL_AMT_DL_test.m @ 178:4ea4badb2266 danieleb

added ramirez dl (to be completed) and MOCOD dictionary update
author Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk>
date Thu, 17 Nov 2011 11:22:17 +0000
parents f42aa8bcb82f
children 9c418bea7f6a
comparison
equal deleted inserted replaced
177:714fa7b8c1ad 178:4ea4badb2266
29 29
30 30
31 % Defining Automatic Transcription of Piano tune as Dictionary Learning 31 % Defining Automatic Transcription of Piano tune as Dictionary Learning
32 % Problem 32 % Problem
33 33
34 SMALL.Problem = generateAMT_Learning_Problem(); 34 SMALL.Problem = generateAMTProblem();
35 35
36 %% 36 %%
37 % Use KSVD Dictionary Learning Algorithm to Learn 88 notes (defined in 37 % Use KSVD Dictionary Learning Algorithm to Learn 88 notes (defined in
38 % SMALL.Problem.p) using sparsity constrain only 38 % SMALL.Problem.p) using sparsity constrain only
39 39
65 % (backward compatiblity with SPARCO: solver structure communicate 65 % (backward compatiblity with SPARCO: solver structure communicate
66 % only with Problem structure, ie no direct communication between DL and 66 % only with Problem structure, ie no direct communication between DL and
67 % solver structures) 67 % solver structures)
68 68
69 SMALL.Problem.A = SMALL.DL(1).D; 69 SMALL.Problem.A = SMALL.DL(1).D;
70 SMALL.Problem.reconstruct = @(x) SMALL_midiGenerate(x, SMALL.Problem); 70 SMALL.Problem.reconstruct = @(x) AMT_reconstruct(x, SMALL.Problem);
71 71
72 %% 72 %%
73 % Initialising solver structure 73 % Initialising solver structure
74 % Setting solver structure fields (toolbox, name, param, solution, 74 % Setting solver structure fields (toolbox, name, param, solution,
75 % reconstructed and time) to zero values 75 % reconstructed and time) to zero values
149 % (backward compatiblity with SPARCO: solver structure communicate 149 % (backward compatiblity with SPARCO: solver structure communicate
150 % only with Problem structure, ie no direct communication between DL and 150 % only with Problem structure, ie no direct communication between DL and
151 % solver structures) 151 % solver structures)
152 152
153 SMALL.Problem.A = SMALL.DL(2).D; 153 SMALL.Problem.A = SMALL.DL(2).D;
154 SMALL.Problem.reconstruct=@(x) SMALL_midiGenerate(x, SMALL.Problem); 154 SMALL.Problem.reconstruct=@(x) AMT_reconstruct(x, SMALL.Problem);
155 155
156 %% 156 %%
157 % Initialising solver structure 157 % Initialising solver structure
158 % Setting solver structure fields (toolbox, name, param, solution, 158 % Setting solver structure fields (toolbox, name, param, solution,
159 % reconstructed and time) to zero values 159 % reconstructed and time) to zero values