Ok, that's the same fix that I've applied ^^
But it causes another bug in getSample():
Just as the bug before the samp2 might try to access the melody array where it's not defined... I fixed it with another check which solved the problem.
Here's the code:
Finally the Scorching Back playback...