master
Matthew Huntington 1 year ago
parent 38d9445179
commit f433d32cc0

@ -2,10 +2,10 @@ const lowest = 27.5
const highest = 4186 const highest = 4186
const range = highest - lowest const range = highest - lowest
const generateButton = document.querySelector('body > button') const generateButton = document.querySelector('#generate-tone > button:nth-of-type(1)')
const playButton = document.querySelector('section > button:nth-of-type(1)') const playButton = document.querySelector('#generate-tone > button:nth-of-type(2)')
const stopButton = document.querySelector('section > button:nth-of-type(2)') const stopButton = document.querySelector('#generate-tone > button:nth-of-type(3)')
const toneDisplay = document.querySelector('section dd') const toneDisplay = document.querySelector('#generate-tone dd')
const synth = new Tone.Synth().toDestination() const synth = new Tone.Synth().toDestination()
let newTone let newTone

@ -8,12 +8,12 @@
</head> </head>
<body> <body>
<h1>Tuner</h1> <h1>Tuner</h1>
<button>Generate Tone</button> <section id="generate-tone">
<section>
<dl> <dl>
<dt>Tone:</dt> <dt>Tone:</dt>
<dd></dd> <dd></dd>
</dl> </dl>
<button>Generate Tone</button>
<button>Play</button> <button>Play</button>
<button>Stop</button> <button>Stop</button>
</section> </section>

Loading…
Cancel
Save