%  An amplitude panning demonstration

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

clc;
clear;

% Load the audio data to be processed
[y, fs, N] = wavread('AnechoicInstrument.wav');  

% Define the the angle relative to the left speaker
theta_left = 80;

% Perform amplitude panning
y_Stereo = Fx_AmplitudePanning(y, theta_left);