My first guess is that "songlength" is too large for SetSliderRange. In fact, since that function takes Ints, it's possible that it is casting it into a negative Int.
You might need to scale the number down into something more managable.
You might need to scale the number down into something more managable.