|
|
|
@ -55,8 +55,8 @@ generateNoteButton.addEventListener('click', () => {
|
|
|
|
const randomPitchNote = randomPitch % 12
|
|
|
|
const randomPitchNote = randomPitch % 12
|
|
|
|
|
|
|
|
|
|
|
|
newTone = notes[randomPitchNote][0] + randomPitchOctave
|
|
|
|
newTone = notes[randomPitchNote][0] + randomPitchOctave
|
|
|
|
toneDisplay.innerHTML = newTone
|
|
|
|
|
|
|
|
newTone = teoria.note(newTone).fq()
|
|
|
|
newTone = teoria.note(newTone).fq()
|
|
|
|
|
|
|
|
toneDisplay.innerHTML = newTone
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
playButton.addEventListener('click', ()=>{
|
|
|
|
playButton.addEventListener('click', ()=>{
|
|
|
|
|