From 47ab340c76e6174f0f94fb4cbfec1540b6a18807 Mon Sep 17 00:00:00 2001 From: "caleb.mabry.15@cnu.edu" Date: Fri, 18 Mar 2022 00:06:11 -0400 Subject: Moving to audio tags --- webAO/components/audioChannels.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 webAO/components/audioChannels.js (limited to 'webAO/components') diff --git a/webAO/components/audioChannels.js b/webAO/components/audioChannels.js new file mode 100644 index 0000000..1979653 --- /dev/null +++ b/webAO/components/audioChannels.js @@ -0,0 +1,13 @@ +/** + * + * @param {number} amountOfChannels Amount of Blips to put on page + */ +const createAudioChannels = (amountOfChannels) => { + for (let i = 0; i < amountOfChannels; i++) { + const audioChannel = document.createElement('audio') + audioChannel.setAttribute('class', 'audioChannel') + document.body.appendChild(audioChannel) + } +} +createAudioChannels(4) +export default createAudioChannels -- cgit