annotate 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
rev   line source
wolffd@0 1 function varargout = mirauditory(x,varargin)
wolffd@0 2 % Produces the output based on an auditory modelling, of the signal x,
wolffd@0 3 % using a gammatone filterbank.
wolffd@0 4 % Optional argument:
wolffd@0 5 % mirtempo(...,'Filterbank',b) indicates the number of channels in
wolffd@0 6 % the filterbank decomposition.
wolffd@0 7 % Default value: b = 40.
wolffd@0 8
wolffd@0 9 fb.key = 'Filterbank';
wolffd@0 10 fb.type = 'Integer';
wolffd@0 11 fb.default = 40;
wolffd@0 12 option.fb = fb;
wolffd@0 13
wolffd@0 14 specif.option = option;
wolffd@0 15
wolffd@0 16 varargout = mirfunction(@mirauditory,x,varargin,nargout,specif,@init,@main);
wolffd@0 17
wolffd@0 18
wolffd@0 19 function [x type] = init(x,option)
wolffd@0 20 if isamir(x,'miraudio')
wolffd@0 21 x = mirfilterbank(x,'NbChannels',option.fb);
wolffd@0 22 x = mirenvelope(x,'Center','Diff','Halfwave','Center');
wolffd@0 23 end
wolffd@0 24 type = 'mirenvelope';
wolffd@0 25
wolffd@0 26
wolffd@0 27 function x = main(x,option,postoption)