Diff of /signals/gspi.m [5f391e] .. [84b1c9] Maximize Restore

  Switch to unified view

a/signals/gspi.m b/signals/gspi.m
1
function [s,fs]=gspi()
1
function [s,fs]=gspi()
2
%GSPI  Load the 'glockenspiel' test signal.
2
%GSPI  Load the 'glockenspiel' test signal.
3
%
3
%
4
%   GSPI loads the 'glockenspiel' signal. The is 262144 samples long,
4
%   `gspi` loads the 'glockenspiel' signal. This is a recording of a simple
5
%   tune played on a glockenspiel. It is 262144 samples long, mono, recorded
5
%   mono, recorded at 44100 Hz using 16 bit quantization.
6
%   at 44100 Hz using 16 bit quantization.
6
%   
7
%   
7
%   [sig,fs]=GSPI additionally returns the sampling frequency fs.
8
%   `[sig,fs]=gspi` additionally returns the sampling frequency *fs*.
8
%
9
%
9
%   The signal, and other similar audio tests signals, can be found on
10
%   This signal, and other similar audio tests signals, can be found on
10
%   http://andrew.csie.ncyu.edu.tw/html/mpeg4/sound.media.mit.edu/mpeg4/audio/sqam/index.html
11
%   the EBU SQAM test signal CD `<http://tech.ebu.ch/publications/sqamcd>`_.
11
%
12
%
12
  
13
  
13
%   AUTHOR : Peter Soendergaard
14
%   AUTHOR : Peter Soendergaard
14
%   TESTING: TEST_SIGNALS
15
%   TESTING: TEST_SIGNALS
15
%   REFERENCE: OK
16
%   REFERENCE: OK
...
...
21
f=mfilename('fullpath');
22
f=mfilename('fullpath');
22
23
23
% Load audio signal
24
% Load audio signal
24
s = wavread([f,'.wav']);
25
s = wavread([f,'.wav']);
25
fs = 44100;
26
fs = 44100;
26
%OLDFORMAT
27