}
            if (state == 1) {
                info("Calculating pathways through the song ...");
                setTimeout(function () {
                    readyToPlay(t);
                }, 10);
            } else if (state == 0) {
                if (percent >= 99) {
                    info("Calculating pathways through the song ...");
                } else {
                    if (percent > 0) {
                        info(percent + "% of track loaded ");
                    } else {
            