2014-10-22 22:49:42 +00:00
|
|
|
<!DOCTYPE html>
|
2014-03-15 03:17:18 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
2014-10-22 22:49:42 +00:00
|
|
|
<meta charset="utf-8">
|
2014-09-04 04:06:01 +00:00
|
|
|
<title>PLAYER</title>
|
2014-09-06 19:35:31 +00:00
|
|
|
|
2015-06-27 22:10:18 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
2015-12-08 05:06:58 +00:00
|
|
|
<link rel="icon" type="image/png" sizes="174x174" href="./style/favicon.png">
|
2014-06-23 17:29:22 +00:00
|
|
|
|
2017-03-18 16:35:37 +00:00
|
|
|
<script src="../build/Tone.js"></script>
|
|
|
|
<script src="./scripts/jquery.min.js"></script>
|
|
|
|
<script src="./scripts/draggabilly.js"></script>
|
|
|
|
<script src="./scripts/StartAudioContext.js"></script>
|
|
|
|
<script src="./scripts/Interface.js"></script>
|
|
|
|
<script src="https://tonejs.github.io/Logo/build/Logo.js"></script>
|
2015-02-12 03:39:28 +00:00
|
|
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="./style/examples.css">
|
|
|
|
|
2017-03-18 16:35:37 +00:00
|
|
|
<script>
|
2015-02-12 03:39:28 +00:00
|
|
|
// jshint ignore: start
|
|
|
|
</script>
|
2014-06-23 17:29:22 +00:00
|
|
|
|
2014-03-15 03:17:18 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2015-02-12 03:39:28 +00:00
|
|
|
<div id="Content">
|
2015-06-26 05:23:05 +00:00
|
|
|
<div id="Title">Grains</div>
|
|
|
|
<div id="Explanation">
|
2016-12-19 04:33:14 +00:00
|
|
|
Click on the button to play the audio file on loop
|
2016-07-07 20:10:29 +00:00
|
|
|
using <a href="https://tonejs.github.io/docs/#Player">Tone.Player</a>.
|
2015-06-26 05:23:05 +00:00
|
|
|
</div>
|
2015-02-12 03:39:28 +00:00
|
|
|
</div>
|
2017-03-18 16:35:37 +00:00
|
|
|
<script>
|
2015-06-26 05:23:05 +00:00
|
|
|
|
2015-02-12 03:39:28 +00:00
|
|
|
//the player
|
2015-06-26 05:23:05 +00:00
|
|
|
var player = new Tone.Player({
|
2017-06-19 19:39:17 +00:00
|
|
|
"url" : "./audio/FWDL.[mp3|ogg]",
|
2016-12-19 04:33:14 +00:00
|
|
|
"loop" : true
|
2015-06-26 05:23:05 +00:00
|
|
|
}).toMaster();
|
2015-06-27 22:02:55 +00:00
|
|
|
|
2017-03-26 20:39:19 +00:00
|
|
|
// GUI //
|
|
|
|
|
|
|
|
Interface.Loader();
|
|
|
|
|
|
|
|
Interface.Button({
|
|
|
|
text : "Start",
|
|
|
|
activeText : "Stop",
|
|
|
|
start : function(){
|
|
|
|
player.start();
|
|
|
|
},
|
|
|
|
end : function(){
|
|
|
|
player.stop();
|
|
|
|
}
|
2015-06-27 22:02:55 +00:00
|
|
|
});
|
2014-03-15 03:17:18 +00:00
|
|
|
</script>
|
2017-03-26 20:39:19 +00:00
|
|
|
|
2014-03-15 03:17:18 +00:00
|
|
|
</body>
|
2017-03-18 16:35:37 +00:00
|
|
|
</html>
|