annotate core/startup_music_research.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
rev   line source
wolffd@0 1 % ---
wolffd@0 2 % startup.m
wolffd@0 3 % this shall become the general camir startup
wolffd@0 4 % ---
wolffd@0 5
wolffd@0 6 % global globalvars;
wolffd@0 7
wolffd@0 8 % use this revision numbers for figures etc!
wolffd@0 9 % globalvars.camir.revision = str2double(substr('$Rev$', 5, -1));
wolffd@0 10 % rev = textscan(evalc('!svnversion'),'%d%s');
wolffd@0 11 % globalvars.camir.revision = double(rev{1});
wolffd@0 12
wolffd@0 13 globalvars.camir.path = pwd;
wolffd@0 14 globalvars.camir.revision = camirversion;
wolffd@0 15
wolffd@0 16 clear rev
wolffd@0 17 globalvars.debug = 0;
wolffd@0 18
wolffd@0 19 % ---
wolffd@0 20 % load MTT database
wolffd@0 21 % ---
wolffd@0 22 global comparison;
wolffd@0 23 global comparison_ids;
wolffd@0 24 load ('db.mat', 'comparison','comparison_ids','comparison_names');
wolffd@0 25
wolffd@0 26
wolffd@0 27 % ---
wolffd@0 28 % load MSD database
wolffd@0 29 % ---
wolffd@0 30 global MillionSong MSDsubset
wolffd@0 31 MillionSong = globalvars.camir.msd.basepath;
wolffd@0 32 MSDsubset='subset_'; % or '' for full set
wolffd@0 33
wolffd@0 34 globalvars.camir.msd.data_path= [MillionSong,'/data'];
wolffd@0 35 globalvars.camir.msd.addf_path= [MillionSong,'/AdditionalFiles'];
wolffd@0 36 globalvars.camir.msd.addf_prefix= [globalvars.camir.msd.addf_path,'/',MSDsubset];
wolffd@0 37 % Check that we can actually read the dataset
wolffd@0 38
wolffd@0 39
wolffd@0 40 warning off MATLAB:class:cannotUpdateClass
wolffd@0 41
wolffd@0 42 % initialize clip and feature databases
wolffd@0 43
wolffd@0 44 global db_MTTClip;
wolffd@0 45 db_MTTClip = MTTClipDB();
wolffd@0 46
wolffd@0 47 %global db_MSDClip;
wolffd@0 48 %db_MSDClip = MSDClipDB();
wolffd@0 49
wolffd@0 50 % global db_CASIMIRClip;
wolffd@0 51 % db_CASIMIRClip = CASIMIRClipDB();
wolffd@0 52
wolffd@0 53 global db_magnaaudiofeat;
wolffd@0 54 db_magnaaudiofeat = MTTAudioFeatureDBgen('MTTAudioFeatureRAW');
wolffd@0 55
wolffd@0 56 global db_magnaaudiofeat_basicsm;
wolffd@0 57 db_magnaaudiofeat_basicsm = MTTAudioFeatureDBgen('MTTAudioFeatureBasicSm');
wolffd@0 58
wolffd@0 59 global db_magnatagfeat_genrebasic;
wolffd@0 60 db_magnatagfeat_genrebasic = MTTAudioFeatureDBgen('MTTTagFeatureGenreBasic');
wolffd@0 61
wolffd@0 62 global db_magnamixedfeat_genrebasicsm;
wolffd@0 63 db_magnamixedfeat_genrebasicsm = MTTAudioFeatureDBgen('MTTMixedFeatureGenreBasicSm');
wolffd@0 64
wolffd@0 65 global db_MTTMixedFeatureGenreBasicSmPCA;
wolffd@0 66 db_MTTMixedFeatureGenreBasicSmPCA = MTTAudioFeatureDBgen('MTTMixedFeatureGenreBasicSmPCA');
wolffd@0 67
wolffd@0 68 global db_MTTAudioFeatureSlaney08;
wolffd@0 69 db_MTTAudioFeatureSlaney08 = MTTAudioFeatureDBgen('MTTAudioFeatureSlaney08');
wolffd@0 70
wolffd@0 71 global db_MTTMixedFeatureSlaney08GenreBasicSm;
wolffd@0 72 db_MTTMixedFeatureSlaney08GenreBasicSm = MTTAudioFeatureDBgen('MTTMixedFeatureSlaney08GenreBasicSm');
wolffd@0 73
wolffd@0 74 global db_MTTMixedFeatureSlaney08GenreBasicSmPCA;
wolffd@0 75 db_MTTMixedFeatureSlaney08GenreBasicSmPCA = MTTAudioFeatureDBgen('MTTMixedFeatureSlaney08GenreBasicSmPCA');
wolffd@0 76
wolffd@0 77 global db_MTTMixedFeatureGenreRandom;
wolffd@0 78 db_MTTMixedFeatureGenreRandom = MTTAudioFeatureDBgen('MTTMixedFeatureGenreRandom');
wolffd@0 79
wolffd@0 80 global db_MTTMixedFeatureStober11Genre;
wolffd@0 81 db_MTTMixedFeatureStober11Genre = MTTAudioFeatureDBgen('MTTMixedFeatureStober11Genre');
wolffd@0 82
wolffd@0 83 global db_MTTMixedFeatureStober11Slaney08GenreBasicSm;
wolffd@0 84 db_MTTMixedFeatureStober11Slaney08GenreBasicSm = MTTAudioFeatureDBgen('MTTMixedFeatureStober11Slaney08GenreBasicSm');
wolffd@0 85
wolffd@0 86 global db_MTTMixedFeatureSon;
wolffd@0 87 db_MTTMixedFeatureSon = MTTAudioFeatureDBgen('MTTMixedFeatureSon');
wolffd@0 88
wolffd@0 89 global db_AudioFeatureRAW;
wolffd@0 90 db_AudioFeature = MTTAudioFeatureDBgen('AudioFeatureRAW');
wolffd@0 91
wolffd@0 92 %global db_MSDAudioFeatureRAW;
wolffd@0 93 %db_MSDAudioFeatureRAW = MTTAudioFeatureDBgen('MSDAudioFeatureRAW');
wolffd@0 94
wolffd@0 95 global db_MTTMixedFeatureSonRBM;
wolffd@0 96 db_MTTMixedFeatureSonRBM = MTTAudioFeatureDBgen('MTTMixedFeatureSonRBM');