%% DESC9200 Lab Report - MultiBand Noise Gate Script
% Author: Alexander Christian Nugroho - 450039470

% This script calls the function 'mymultinoisegt.m' and play the sound that
% is created.
% Example values for the variables are stated in this script, and may be
% changed according to the user's needs. A more thorough explanation about
% the input parameters can be found on "mymultingate.m" 

 fL            = 500 ;
 fH            = 2000 ;
 
 LowON         = 1 ;
 BandON        = 0 ;
 HighON        = 1 ;
 
 htLow         = 0.1   ;       
 LowerNTLow	   = 0.1;
 UpperNTLow	   = 0.2;
 rtLow         = 0.2 ;       
 atLow         = 0.01;
 aLow		   = 0.5;

 htBand        = 0.5 ;       
 LowerNTBand   = 0.1;
 UpperNTBand   = 0.3;
 rtBand        = 0.1 ;        
 atBand        = 0.01;
 aBand		   = 0.5;

 htHigh        = 0.1 ;        
 LowerNTHigh   = 0.01;
 UpperNTHigh   = 0.1;
 rtHigh        = 0.1 ;      
 atHigh        = 0.01;	
 aHigh		   = 0.5;
 
 [noisegated original fs] = mymultingate('guitar.wav', fL, fH, LowON, BandON, HighON, ...
    htLow, LowerNTLow, UpperNTLow, rtLow, atLow, aLow, ...
    htBand, LowerNTBand, UpperNTBand, rtBand, atBand, aBand, ... 
    htHigh, LowerNTHigh, UpperNTHigh, rtHigh, atHigh, aHigh) ;

sound (noisegated, fs) ; 