aboutsummaryrefslogtreecommitdiff
path: root/webAO/components/audioChannels.js
blob: 1979653dfd115d056179747bddbfabba5040e2e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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