mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-29 04:53:10 +00:00
25 lines
No EOL
577 B
HTML
25 lines
No EOL
577 B
HTML
<html>
|
|
<head>
|
|
<title>Bit Crush</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="../style/GUI.css">
|
|
|
|
<script type="text/javascript" src="../src/core/Tone.js"></script>
|
|
<script type="text/javascript" src="../src/effects/Effect.js"></script>
|
|
<script type="text/javascript" src="../src/effects/BitCrusher.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript">
|
|
var sine = Tone.context.createOscillator();
|
|
var crusher = new Tone.BitCrusher(4, .1);
|
|
|
|
sine.connect(crusher);
|
|
crusher.toMaster();
|
|
|
|
sine.start();
|
|
|
|
crusher.setWet(1);
|
|
|
|
</script>
|
|
</body>
|
|
</html> |