tomwalters@0: % tool tomwalters@0: % tomwalters@0: % INPUT VALUES: tomwalters@0: % tomwalters@0: % RETURN VALUE: tomwalters@0: % tomwalters@0: % 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 linmeasure=log2lin(value,scaleinfo) tomwalters@0: tomwalters@0: % wandelt einen Wert entsprechend den Angaben in scaleinfo wieder tomwalters@0: % in den ursprünglichen linearen Wert zurück tomwalters@0: tomwalters@0: from=scaleinfo.from; tomwalters@0: to=scaleinfo.to; tomwalters@0: steps=scaleinfo.steps; tomwalters@0: tomwalters@0: a1=log(from); tomwalters@0: a2=log(to); tomwalters@0: st=(a2-a1)/(steps-1); tomwalters@0: tomwalters@0: linmeasure=log(value/from)/st+1;