Mercurial > hg > smallbox
comparison Problems/generateAMTProblem.m @ 220:0d30f9074dd9
Merge
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 11 Apr 2012 15:56:39 +0100 |
parents | 9c418bea7f6a |
children |
comparison
equal
deleted
inserted
replaced
165:775caafd5651 | 220:0d30f9074dd9 |
---|---|
38 if ~ exist( 'overlap', 'var' ) || isempty(overlap), overlap = 0.5; end | 38 if ~ exist( 'overlap', 'var' ) || isempty(overlap), overlap = 0.5; end |
39 | 39 |
40 %% | 40 %% |
41 %ask for file name | 41 %ask for file name |
42 TMPpath=pwd; | 42 TMPpath=pwd; |
43 [pathstr1, name, ext, versn] = fileparts(which('SMALLboxSetup.m')); | 43 [pathstr1, name, ext] = fileparts(which('SMALLboxSetup.m')); |
44 cd([pathstr1,FS,'data',FS,'audio']); | 44 cd([pathstr1,FS,'data',FS,'audio']); |
45 [filename,pathname] = uigetfile({'*.mat; *.mid; *.wav'},'Select a file to transcribe'); | 45 [filename,pathname] = uigetfile({'*.mat; *.mid; *.wav'},'Select a file to transcribe'); |
46 [pathstr, name, ext, versn] = fileparts(filename); | 46 [pathstr, name, ext] = fileparts(filename); |
47 data.name=name; | 47 data.name=name; |
48 | 48 |
49 data.notesOriginal=[]; | 49 data.notesOriginal=[]; |
50 | 50 |
51 if strcmp(ext,'.mid') | 51 if strcmp(ext,'.mid') |