Mercurial > hg > ape
view listeningTest/multiComp/MmoveW.m @ 4:b28ffd29e6e1
Audio file preparation for listening test
author | Brecht De Man <b.deman@qmul.ac.uk> |
---|---|
date | Wed, 19 Nov 2014 18:59:51 +0000 |
parents | 4fd284285159 |
children |
line wrap: on
line source
function MmoveW(hf) dat=get(hf,'userdata'); if dat.drag cobj=get(gcf,'currentobject'); if strcmp(get(cobj,'tag'),'sonicon') cpos=get(gcf,'currentpoint'); posObj=get(cobj,'position'); dxx=dat.dxx; cp=cpos(1); if (cp<dxx) cp=dxx; end if (cp>1-dxx) cp=1-dxx; end posObj(1)=cp-posObj(3)/2; set(cobj,'position',posObj); end end