From f433d32cc0d0d4cb5c89df5342f32730578d839a Mon Sep 17 00:00:00 2001 From: Matthew Huntington Date: Wed, 31 Jul 2024 05:10:46 +0200 Subject: [PATCH] reorg --- app.js | 8 ++++---- index.html | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app.js b/app.js index d7b092e..1a0e0a9 100644 --- a/app.js +++ b/app.js @@ -2,10 +2,10 @@ const lowest = 27.5 const highest = 4186 const range = highest - lowest -const generateButton = document.querySelector('body > button') -const playButton = document.querySelector('section > button:nth-of-type(1)') -const stopButton = document.querySelector('section > button:nth-of-type(2)') -const toneDisplay = document.querySelector('section dd') +const generateButton = document.querySelector('#generate-tone > button:nth-of-type(1)') +const playButton = document.querySelector('#generate-tone > button:nth-of-type(2)') +const stopButton = document.querySelector('#generate-tone > button:nth-of-type(3)') +const toneDisplay = document.querySelector('#generate-tone dd') const synth = new Tone.Synth().toDestination() let newTone diff --git a/index.html b/index.html index a9c814e..13e3df3 100644 --- a/index.html +++ b/index.html @@ -8,12 +8,12 @@

Tuner

- -
+
Tone:
+