Mercurial > hg > camir-ismir2012
comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/mirauditory.m @ 0:cc4b1211e677 tip
initial commit to HG from
Changeset:
646 (e263d8a21543) added further path and more save "camirversion.m"
author | Daniel Wolff |
---|---|
date | Fri, 19 Aug 2016 13:07:06 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:cc4b1211e677 |
---|---|
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) |