ita_demosound.m 723 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
function varargout = ita_demosound(varargin)
%ITA_DEMOSOUND - Load song for demonstrations 
%
%  Syntax: audioObj = ita_demosound()
%
%   Reference page in Help browser 
%        <a href="matlab:doc ita_demosound">doc ita_demosound</a>

% <ITA-Toolbox>
% This file is part of the ITA-Toolbox. Some rights reserved. 
% You can find the license for this m-file in the license.txt file in the ITA-Toolbox folder. 
% </ITA-Toolbox>

% Author: Pascal Dietrich -- Email: pdi@akustik.rwth-aachen.de
% Created:  16-Aug-2011 

17
result = ita_resample(ita_read('itademosong.ita'),ita_preferences('samplingRate'));
18 19
% make even samples
result.nSamples = floor(result.nSamples/2)*2;
20 21 22 23

%% Find output parameters
varargout(1) = {result};
end