<commit_before><html>
<head>
	<title>SHINY</title>

	<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">

	<script type="text/javascript" src="./deps/jquery.min.js"></script>
	<script type="text/javascript" src="./deps/jquery-ui.js"></script>
	<script type="text/javascript" src="./deps/jquery.ui.touch-punch.js"></script>
	<script type="text/javascript" src="../build/Tone.js"></script>
	<script type="text/javascript" src="../build/Tone.Preset.js"></script>
	<script type="text/javascript" src="./Widgets.js"></script>
	<script type="text/javascript" src="./ExampleList.js"></script>
	<link rel="stylesheet" type="text/css" href="./style/widgets.css">
	<link rel="stylesheet" type="text/css" href="./style/jquery-ui.css">

</head>
<body>	
	<div id="Container">
		<div id="Explanation">
			Play Along
			<br>
			<br>
			Touch/Mouse and drag to play along with the probabilistic backtrack. X = pitch, Y = modulation.
		</div>
		<div id="Content">
			<div id="Loading">LOADING...</div>
		</div>
	</div>

	<script type="text/javascript">
		/* global Tone, GUI*/

		var loadedCount = 0;
		function sampleLoaded(){
			loadedCount++;
			if (loadedCount == 2){
				$("#Loading").remove();
				startButton.enable();
			}
		}

		//DRUMS//

		//hats
		var crusher = new Tone.BitCrusher(5);
		crusher.setWet(0.4);
		var hats = new Tone.Sampler({
			"url" : "./audio/505/hh.mp3",
			"load" : sampleLoaded,
			"envelope" : {
				"attack" : 0.001,
				"decay" : 0.02,
				"sustain" : 0.01,
				"release" : 0.01
			},
			"filterEnvelope" : {
				"attack" : 0.001,
				"decay" : 0.02,
				"sustain" : 1,
				"min" : 6000,
				"max" : 600
			},
			"filter" : {
				"type" : "highpass"
			}
		});
		hats.connect(crusher);
		hats.setVolume(-40);

		//snare
		var snare = new Tone.Sampler({
			"url" : "./audio/505/snare.mp3",
			"load" : sampleLoaded,
			"envelope" : {
				"attack" : 0.01,
				"decay" : 0.05,
				"sustain" : 0
			},
			"filterEnvelope" : {
				"attack" : 0.001,
				"decay" : 0.01,
				"sustain" : 0,
				"min" : 3000,
				"max" : 10000
			},

		});
		snare.connect(crusher);

		//snare
		var kick = new Tone.MonoSynth();
		kick.setPreset("Kick");
		kick.set({
			"envelope" : {
				"attack" : 0.001,<commit_msg>updating example to new API<commit_after><html>
<head>
	<title>SHINY</title>

	<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">

	<script type="text/javascript" src="./deps/jquery.min.js"></script>
	<script type="text/javascript" src="./deps/jquery-ui.js"></script>
	<script type="text/javascript" src="./deps/jquery.ui.touch-punch.js"></script>
	<script type="text/javascript" src="../build/Tone.js"></script>
	<script type="text/javascript" src="../build/Tone.Preset.js"></script>
	<script type="text/javascript" src="./Widgets.js"></script>
	<script type="text/javascript" src="./ExampleList.js"></script>
	<link rel="stylesheet" type="text/css" href="./style/widgets.css">
	<link rel="stylesheet" type="text/css" href="./style/jquery-ui.css">

</head>
<body>	
	<div id="Container">
		<div id="Explanation">
			Play Along
			<br>
			<br>
			Touch/Mouse and drag to play along with the probabilistic backtrack. X = pitch, Y = modulation.
		</div>
		<div id="Content">
			<div id="Loading">LOADING...</div>
		</div>
	</div>

	<script type="text/javascript">
		/* global Tone, GUI*/

		var loadedCount = 0;
		function sampleLoaded(){
			loadedCount++;
			if (loadedCount == 2){
				$("#Loading").remove();
				startButton.enable();
			}
		}

		//DRUMS//

		//hats
		var crusher = new Tone.BitCrusher(5);
		crusher.setWet(0.4);
		var hats = new Tone.Sampler({
			"url" : "./audio/505/hh.mp3",
			"onload" : sampleLoaded,
			"envelope" : {
				"attack" : 0.001,
				"decay" : 0.02,
				"sustain" : 0.01,
				"release" : 0.01
			},
			"filterEnvelope" : {
				"attack" : 0.001,
				"decay" : 0.02,
				"sustain" : 1,
				"min" : 6000,
				"max" : 600
			},
			"filter" : {
				"type" : "highpass"
			}
		});
		hats.connect(crusher);
		hats.setVolume(-40);

		//snare
		var snare = new Tone.Sampler({
			"url" : "./audio/505/snare.mp3",
			"onload" : sampleLoaded,
			"envelope" : {
				"attack" : 0.01,
				"decay" : 0.05,
				"sustain" : 0
			},
			"filterEnvelope" : {
				"attack" : 0.001,
				"decay" : 0.01,
				"sustain" : 0,
				"min" : 3000,
				"max" : 10000
			},

		});
		snare.connect(crusher);

		//snare
		var kick = new Tone.MonoSynth();
		kick.setPreset("Kick");
		kick.set({
			"envelope" : {
				"attack" : 0.001,
{'fraction_non_alphanumeric': 0.21134249003101463, 'fraction_numerical': 0.03190075321222862, 'mean_word_length': 2.99911426040744, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6301092', 'n_tokens_mistral': 2166, 'n_tokens_neox': 1763, 'n_words': 327}