tomwalters@0: % tool tomwalters@0: % tomwalters@0: % INPUT VALUES: tomwalters@0: % tomwalters@0: % RETURN VALUE: tomwalters@0: % tomwalters@0: % bleeck@3: % This external file is included as part of the 'aim-mat' distribution package bleeck@3: % (c) 2011, University of Southampton bleeck@3: % Maintained by Stefan Bleeck (bleeck@gmail.com) bleeck@3: % download of current version is on the soundsoftware site: bleeck@3: % http://code.soundsoftware.ac.uk/projects/aimmat bleeck@3: % documentation and everything is on http://www.acousticscale.org bleeck@3: tomwalters@0: tomwalters@0: function playstereo(sig1,sig2) tomwalters@0: tomwalters@0: sig1=rampamplitude(sig1,0.005); tomwalters@0: sig1=scaletomaxvalue(sig1,0.999); tomwalters@0: sig2=rampamplitude(sig2,0.005); tomwalters@0: sig2=scaletomaxvalue(sig2,0.999); tomwalters@0: tomwalters@0: values1=getvalues(sig1); tomwalters@0: values2=getvalues(sig2); tomwalters@0: tomwalters@0: finvals=[values1 values2]; tomwalters@0: sr=getsr(sig1); tomwalters@0: tomwalters@0: wavwrite(finvals,sr,'last stereo'); tomwalters@0: tomwalters@0: sound(finvals,sr); tomwalters@0: