@@ -386,8 +386,8 @@ var SoundSafari = function(canvas, beatInfo, pSoundManager) {
if(isNaN(this.shimmerFactor) || this.shimmerFactor < 0) {
this.shimmerFactor = 0;
}
-
- this.spectrum = this.beat.sound.getSpectrum(t%this.beat.info.duration);
+ var pos = t%this.beat.info.duration;
+ if(pos < this.beat.sound.duration) this.spectrum = this.beat.sound.getSpectrum(pos);
};
var player = {