[84b1c9]: signals / gspi.m Maximize Restore History

Download this file

gspi.m    28 lines (22 with data), 733 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
function [s,fs]=gspi()
%GSPI Load the 'glockenspiel' test signal.
%
% `gspi` loads the 'glockenspiel' signal. This is a recording of a simple
% tune played on a glockenspiel. It is 262144 samples long, mono, recorded
% at 44100 Hz using 16 bit quantization.
%
% `[sig,fs]=gspi` additionally returns the sampling frequency *fs*.
%
% This signal, and other similar audio tests signals, can be found on
% the EBU SQAM test signal CD `<http://tech.ebu.ch/publications/sqamcd>`_.
%
% AUTHOR : Peter Soendergaard
% TESTING: TEST_SIGNALS
% REFERENCE: OK
if nargin>0
error('This function does not take input arguments.')
end;
f=mfilename('fullpath');
% Load audio signal
s = wavread([f,'.wav']);
fs = 44100;