remove the line:
did -z ntoxamp 3 $inmp3.length
no use for it.. not what i can see.. and yes, it moves a bit funny. it depends on how long in minutse/seconds the mp3 are.. my example was for a mp3 that was 1min and 10 sec long.. and it worked fine.. but i cant figure out how to get the values..