ate){
							var currentPos = state.songPos*patternLength + state.patternPos;
							var percentage = currentPos*100/songLength;
							progressBar.value = percentage;
						}
					}
					if (scopeActive) renderScope();
				}
				requestAnimationFrame(loop)
			});

            // load first song
			playItem(demoMod);
		}



		function togglePlay(){
			BassoonTracker.togglePlay();
			if (BassoonTracker.isPlaying()){
				startTime = new Date().getTime();
				playButton.innerHTML = "Pause";
			}else{
				playB