38 lines
1.3 KiB
HTML
38 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
|
|
<title>simple-synth</title>
|
|
</head>
|
|
<body>
|
|
<form style="padding: 15px">
|
|
<input type="radio" id="sinwave" name="wavechoice" value="sine">
|
|
<label for="sinwave">Sine</label>
|
|
<input type="radio" id="squarewave" name="wavechoice" value="square" checked>
|
|
<label for="squarewave">Square</label>
|
|
<input type="radio" id="triwave" name="wavechoice" value="triangle">
|
|
<label for="triwave">Triangle</label>
|
|
<input type="radio" id="sawtoothwave" name="wavechoice" value="sawtooth">
|
|
<label for="sawtoothwave">Sawtooth</label>
|
|
|
|
</form>
|
|
<div style="padding: 15px">
|
|
<button id="start">Start</button>
|
|
<button id="stop">Stop</button>
|
|
</div>
|
|
<div style="padding: 10px;">
|
|
<label for="freq">Frequency</label>
|
|
<input id="freq" type="range" min="100" max="700" value="440" step="10">
|
|
<span id="freqDisplay">440</span>Hz
|
|
</div>
|
|
<div style="padding: 10px;">
|
|
<label for="gain">Volume</label>
|
|
<input id="gain" type="range" min="0" max=".1" value=".05" step=".001"/>
|
|
<span id="gainDisplay">.5</span>
|
|
</div>
|
|
<script src="basic.js"></script>
|
|
</body>
|
|
</html> |