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