wip: waveform now chosen by radiobuttons

This commit is contained in:
2023-10-01 01:17:40 -07:00
parent 93f3ae3fda
commit 7ffefea7a2
2 changed files with 28 additions and 22 deletions

View File

@@ -8,10 +8,10 @@
<title>simple-synth</title>
</head>
<body>
<form>
<input type="radio" id="sinwave" name="wavechoice" value="sine" checked>
<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">
<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>
@@ -19,9 +19,11 @@
<label for="sawtoothwave">Sawtooth</label>
</form>
<button id="start">Start</button>
<button id="stop">Stop</button>
<div style="padding: 10px;">
<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