Ok. I figured it out. had to multiply by 256 (change to MSB) and subtract 8192 (scale). Don't know why Rosegarden worked.