comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/mirauditory.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 function varargout = mirauditory(x,varargin)
2 % Produces the output based on an auditory modelling, of the signal x,
3 % using a gammatone filterbank.
4 % Optional argument:
5 % mirtempo(...,'Filterbank',b) indicates the number of channels in
6 % the filterbank decomposition.
7 % Default value: b = 40.
8
9 fb.key = 'Filterbank';
10 fb.type = 'Integer';
11 fb.default = 40;
12 option.fb = fb;
13
14 specif.option = option;
15
16 varargout = mirfunction(@mirauditory,x,varargin,nargout,specif,@init,@main);
17
18
19 function [x type] = init(x,option)
20 if isamir(x,'miraudio')
21 x = mirfilterbank(x,'NbChannels',option.fb);
22 x = mirenvelope(x,'Center','Diff','Halfwave','Center');
23 end
24 type = 'mirenvelope';
25
26
27 function x = main(x,option,postoption)