%% Gate Background Noise
% Apply dynamic range gating to remove low-level noise from an audio file.

open_system('GateAudioSignal')

%% 
% 1. Open the <docid:dsp_ref#f5-1117037 Time Scope> and
% <docid:audio_ref#bu_15b7-1 Noise Gate> blocks.
%
% 2. Run the model. To switch between listening to the gated signal and the
% original signal, double-click the <docid:simulink_ref#f7-891134 Manual
% Switch> block.
%
% 3. Observe how the applied gain depends on noise gate parameters and
% input signal dynamics by tuning Noise Gate block parameters and viewing
% the results on the Time Scope.

open_system('GateAudioSignal/Time Scope')
sim('GateAudioSignal',5)

%%
%
close_system('GateAudioSignal')

%% 
% Copyright 2012 The MathWorks, Inc.