%  A stereo balanced-based panning demonstration

%  Author: Andreas Floros
%  Digital Audio Processing Applications Group
%  Dept. of Audiovisual Arts, Ionian University
%  v.1.0 - Last Modified: 21/03/2009.

clc;
clear;

% Load two different audio files
[y, fs, N] = wavread('AnechoicInstrument.wav');  

% Define the linear panning value
BalanceValue = -1.0;

% Perform linear stereo panning
y_Stereo = Fx_StereoBalance(y, BalanceValue);