Mercurial > hg > camir-ismir2012
comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@miraudio/plus.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 c = plus(a,b) | |
2 | |
3 sa = get(a,'Sampling'); | |
4 if iscell(sa) | |
5 sa = sa{1}; | |
6 end | |
7 sb = get(b,'Sampling'); | |
8 if iscell(sb) | |
9 sb = sb{1}; | |
10 end | |
11 if sa>sb | |
12 b = miraudio(b,'Sampling',sa); | |
13 elseif sb>sa | |
14 a = miraudio(a,'Sampling',sb); | |
15 end | |
16 c = plus(mirtemporal(a),mirtemporal(b)); | |
17 c = miraudio(c); |