Mercurial > hg > camir-aes2014
comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirpitch/set.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 pp = set(p,varargin) | |
2 % SET Set properties for the MIRpitch object | |
3 % and return the updated object | |
4 | |
5 propertyArgIn = varargin; | |
6 a = p.amplitude; | |
7 s = mirscalar(p); | |
8 while length(propertyArgIn) >= 2, | |
9 prop = propertyArgIn{1}; | |
10 val = propertyArgIn{2}; | |
11 propertyArgIn = propertyArgIn(3:end); | |
12 switch prop | |
13 case 'Amplitude' | |
14 a = val; | |
15 otherwise | |
16 s = set(s,prop,val); | |
17 end | |
18 end | |
19 pp.amplitude = a; | |
20 pp = class(pp,'mirpitch',s); |