%%Doug Van Nort  MUMT 611  Final Project: Timbre Recognition via HMM's
%
%Script to load audio data, extract feature vectors (via scripit extract_features), and then clear
%workspace to save memory
%


%*********** TRUMPET data *************
T1 = wavread('trump16.1.wav');    
    T1L = T1(:,1);
    T1R = T1(:,2);

T3 = wavread('trump16.3.wav');
    T3L = T3(:,1);
    T3R = T3(:,2);
T6 = wavread('trump16.6.wav');
    T6L = T6(:,1);
    T6R = T6(:,2);
T7 = wavread('trump16.7.wav');
    T7L = T7(:,1);
    T7R = T7(:,2);
T8 = wavread('trump16.8.wav');
    T8L = T8(:,1);
    T8R = T8(:,2);
T9 = wavread('trump16.9.wav');
    T9L = T9(:,1);
    T9R = T9(:,2);

T10 = wavread('trump16.10.wav');
    T10L = T10(:,1);
    T10R = T10(:,2);
T11 = wavread('trump16.11.wav');
    T11L = T11(:,1);
    T11R = T11(:,2);
T12 = wavread('trump16.12.wav');
    T12L = T12(:,1);
    T12R = T12(:,2);
T14 = wavread('trump16.14.wav');
    T14L = T14(:,1);
    T14R = T14(:,2);

T15 = wavread('trump16.15.wav');
    T15L = T15(:,1);
    T15R = T15(:,2);
T16 = wavread('trump16.16.wav');
    T16L = T16(:,1);
    T16R = T16(:,2);
T18 = wavread('trump16.18.wav');
    T18L = T18(:,1);
    T18R = T18(:,2);
T19 = wavread('trump16.19.wav');
    T19L = T19(:,1);
    T19R = T19(:,2);

T21 = wavread('trump16.21.wav');
    T21L = T21(:,1);
    T21R = T21(:,2);
T23 = wavread('trump16.23.wav');
    T23L = T23(:,1);
    T23R = T23(:,2);

T24 = wavread('trump16.24.wav');
    T24L = T24(:,1);
    T24R = T24(:,2);
T25 = wavread('trump16.25.wav');
    T25L = T25(:,1);
    T25R = T25(:,2);
T26 = wavread('trump16.26.wav');
    T26L = T26(:,1);
    T26R = T26(:,2);
T28 = wavread('trump16.28.wav');
    T28L = T28(:,1);
    T28R = T28(:,2);
T29 = wavread('trump16.29.wav');
    T29L = T29(:,1);
    T29R = T29(:,2);
T31 = wavread('trump16.31.wav');
    T31L = T31(:,1);
    T31R = T31(:,2);
T33 = wavread('trump16.33.wav');
    T33L = T33(:,1);
    T33R = T33(:,2);


T34 = wavread('trump16.34.wav');
    T34L = T34(:,1);
    T34R = T34(:,2);
%******Trumpet test data******
T2 = wavread('trump16.2.wav',25600);
    T2L = T2(:,1);
    T2R = T2(:,2);
T4 = wavread('trump16.4.wav',25600);
    T4L = T4(:,1);
    T4R = T4(:,2);
T5 = wavread('trump16.5.wav',25600);
    T5L = T5(:,1);
    T5R = T5(:,2);
T13 = wavread('trump16.13.wav');
    T13L = T13(:,1);
    T13R = T13(:,2);
T17 = wavread('trump16.17.wav');
    T17L = T17(:,1);
    T17R = T17(:,2);
T20 = wavread('trump16.20.wav');
    T20L = T20(:,1);
    T20R = T20(:,2);

T22 = wavread('trump16.22.wav');
    T22L = T22(:,1);
    T22R = T22(:,2);
T27 = wavread('trump16.27.wav');
    T27L = T27(:,1);
    T27R = T27(:,2);
T30 = wavread('trump16.30.wav');
    T30L = T30(:,1);
    T30R = T30(:,2);

T32 = wavread('trump16.32.wav');
    T32L = T32(:,1);
    T32R = T32(:,2);

trumpet_feats;

clear T1;       %then we clear the audio samples from memory
clear T1L;
clear T1R;
clear T2;
clear T2L;
clear T2R;
clear T3;
clear T3L;
clear T3R;
clear T4;
clear T4L;
clear T4R;
clear T5;
clear T5L;
clear T5R;
clear T6;
clear T6L;
clear T6R;
clear T7;
clear T7L;
clear T7R;
clear T8;
clear T8L;
clear T8R;
clear T9;
clear T9L;
clear T9R;
clear T10;
clear T10L;
clear T10R;
clear T11;
clear T11L;
clear T11R;
clear T12;
clear T12L;
clear T12R;
clear T13;
clear T13L;
clear T13R;
clear T14;
clear T14L;
clear T14R;
clear T15;
clear T15L;
clear T15R;
clear T16;
clear T16L;
clear T16R;
clear T17;
clear T17L;
clear T17R;
clear T18;
clear T18L;
clear T18R;
clear T19;
clear T19L;
clear T19R;
clear T20;
clear T20L;
clear T20R;
clear T21;
clear T21L;
clear T21R;
clear T22;
clear T22L;
clear T22R;
clear T23;
clear T23L;
clear T23R;
clear T24;
clear T24L;
clear T24R;
clear T25;
clear T25L;
clear T25R;
clear T26;
clear T26L;
clear T26R;

clear T27;
clear T27L;
clear T27R;
clear T28;
clear T28L;
clear T28R;
clear T29;
clear T29L;
clear T29R;
clear T30;
clear T31L;
clear T31R;
clear T32;
clear T32L;
clear T32R;
clear T33;
clear T33L;
clear T33R;
clear T34;
clear T34L;
clear T34R;
