%%%doug van nort     MUMT 611 final project
%%%Matlab script to
%% read in both left and right channels to use for training and
%% test data, calls violin_feats to extract features, then clears audio from memory  (note:  the MUMS are recorded with different mic placement,
%% so we are sneaky and use L and R as separate occurrences)
% 

V1 = wavread('violin1.1.wav');    
    V1L = V1(:,1);
    V1R = V1(:,2);

V3 = wavread('violin1.3.wav');
    V3L = V3(:,1);
    V3R = V3(:,2);
V6 = wavread('violin1.6.wav');
    V6L = V6(:,1);
    V6R = V6(:,2);
V7 = wavread('violin1.7.wav');
    V7L = V7(:,1);
    V7R = V7(:,2);
V8 = wavread('violin1.8.wav');
    V8L = V8(:,1);
    V8R = V8(:,2);
V9 = wavread('violin1.9.wav');
    V9L = V9(:,1);
    V9R = V9(:,2);

V10 = wavread('violin1.10.wav');
    V10L = V10(:,1);
    V10R = V10(:,2);
V11 = wavread('violin1.11.wav');
    V11L = V11(:,1);
    V11R = V11(:,2);
V12 = wavread('violin1.12.wav');
    V12L = V12(:,1);
    V12R = V12(:,2);
V14 = wavread('violin1.14.wav');
    V14L = V14(:,1);
    V14R = V14(:,2);

V15 = wavread('violin1.15.wav');
    V15L = V15(:,1);
    V15R = V15(:,2);
V16 = wavread('violin1.16.wav');
    V16L = V16(:,1);
    V16R = V16(:,2);
V18 = wavread('violin1.18.wav');
    V18L = V18(:,1);
    V18R = V18(:,2);
V19 = wavread('violin1.19.wav');
    V19L = V19(:,1);
    V19R = V19(:,2);

V20 = wavread('violin1.20.wav');
    V20L = V20(:,1);
    V20R = V20(:,2);
V21 = wavread('violin1.21.wav');
    V21L = V21(:,1);
    V21R = V21(:,2);
V23 = wavread('violin1.23.wav');
    V23L = V23(:,1);
    V23R = V23(:,2);

V24 = wavread('violin1.24.wav');
    V24L = V24(:,1);
    V24R = V24(:,2);
V25 = wavread('violin1.25.wav');
    V25L = V25(:,1);
    V25R = V25(:,2);
V26 = wavread('violin1.26.wav');
    V26L = V26(:,1);
    V26R = V26(:,2);
V28 = wavread('violin1.28.wav');
    V28L = V28(:,1);
    V28R = V28(:,2);
V29 = wavread('violin1.29.wav');
    V29L = V29(:,1);
    V29R = V29(:,2);

V30 = wavread('violin1.30.wav');
    V30L = V30(:,1);
    V30R = V30(:,2);
V31 = wavread('violin1.31.wav');
    V31L = V31(:,1);
    V31R = V31(:,2);
V33 = wavread('violin1.33.wav');
    V33L = V33(:,1);
    V33R = V33(:,2);


V34 = wavread('violin1.34.wav');
    V34L = V34(:,1);
    V34R = V34(:,2);
V35 = wavread('violin1.35.wav');
    V35L = V35(:,1);
    V35R = V35(:,2);
V36 = wavread('violin1.36.wav');
    V36L = V36(:,1);
    V36R = V36(:,2);
V38 = wavread('violin1.38.wav');
    V38L = V38(:,1);
    V38R = V38(:,2);
V39 = wavread('violin1.39.wav');
    V39L = V39(:,1);
    V39R = V39(:,2);
V40 = wavread('violin1.40.wav');
    V40L = V40(:,1);
    V40R = V40(:,2);
V42 = wavread('violin1.42.wav');
    V42L = V42(:,1);
    V42R = V42(:,2);
%******violin test data******
V2 = wavread('violin1.2.wav');
    V2L = V2(:,1);
    V2R = V2(:,2);
V4 = wavread('violin1.4.wav');
    V4L = V4(:,1);
    V4R = V4(:,2);
V5 = wavread('violin1.5.wav');
    V5L = V5(:,1);
    V5R = V5(:,2);
V13 = wavread('violin1.13.wav');
    V13L = V13(:,1);
    V13R = V13(:,2);
V17 = wavread('violin1.17.wav');
    V17L = V17(:,1);
    V17R = V17(:,2);
V22 = wavread('violin1.22.wav');
    V22L = V22(:,1);
    V22R = V22(:,2);
V27 = wavread('violin1.27.wav');
    V27L = V27(:,1);
    V27R = V27(:,2);
V32 = wavread('violin1.32.wav');
    V32L = V32(:,1);
    V32R = V32(:,2);
V37 = wavread('violin1.37.wav');
    V37L = V37(:,1);
    V37R = V37(:,2);
V41 = wavread('violin1.41.wav');
    V41L = V41(:,1);
    V41R = V41(:,2);



violin_feats;       %call the script to extract features

clear V1;       %then we clear the audio samples from memory
clear V1L;
clear V1R;
clear V2;
clear V2L;
clear V2R;
clear V3;
clear V3L;
clear V3R;
clear V4;
clear V4L;
clear V4R;
clear V5;
clear V5L;
clear V5R;
clear V6;
clear V6L;
clear V6R;
clear V7;
clear V7L;
clear V7R;
clear V8;
clear V8L;
clear V8R;
clear V9;
clear V9L;
clear V9R;
clear V10;
clear V10L;
clear V10R;
clear V11;
clear V11L;
clear V11R;
clear V12;
clear V12L;
clear V12R;
clear V13;
clear V13L;
clear V13R;
clear V14;
clear V14L;
clear V14R;
clear V15;
clear V15L;
clear V15R;
clear V16;
clear V16L;
clear V16R;
clear V17;
clear V17L;
clear V17R;
clear V18;
clear V18L;
clear V18R;
clear V19;
clear V19L;
clear V19R;
clear V20;
clear V20L;
clear V20R;
clear V21;
clear V21L;
clear V21R;
clear V22;
clear V22L;
clear V22R;
clear V23;
clear V23L;
clear V23R;
clear V24;
clear V24L;
clear V24R;
clear V25;
clear V25L;
clear V25R;
clear V26;
clear V26L;
clear V26R;

clear V27;
clear V27L;
clear V27R;
clear V28;
clear V28L;
clear V28R;
clear V29;
clear V29L;
clear V29R;
clear V30;
clear V31L;
clear V31R;
clear V32;
clear V32L;
clear V32R;
clear V33;
clear V33L;
clear V33R;
clear V34;
clear V34L;
clear V34R;
clear V35;
clear V35L;
clear V35R;
clear V36;
clear V36L;
clear V36R;
clear V37;
clear V37L;
clear V37R;
clear V38;
clear V38L;
clear V38R;
clear V39;
clear V39L;
clear V39R;
clear V40;
clear V40L;
clear V40R;
clear V41;
clear V41L;
clear V41R;