123456789101112131415161718192021222324252627282930313233343536 |
- <!doctype html>
- <meta charset="UTF-8" />
- <html lang="en">
- <head>
- <title>noise roulette</title>
- </head>
- <body>
- <h1>
- Noise Roulette
- </h1>
- <p>
- Play random audio tracks in parallel
- </p>
- <audio controls autoplay></audio>
- <audio controls autoplay></audio>
- <audio controls autoplay></audio>
- <audio controls autoplay></audio>
- <audio controls autoplay></audio>
- <audio controls autoplay></audio>
- <audio controls autoplay></audio>
- <audio controls autoplay></audio>
- <!-- add as many audio players you like -->
- <script>
- // the list of the tracks to choose from:
- var noise=["1.mp3","2.mp3","3.mp3"];
- [].slice.call(document.getElementsByTagName("audio")).map(
- (player)=> {
- player.src=noise[Math.floor(Math.random()*noise.length)]
- player.onended = ()=> {
- player.src = noise[Math.floor(Math.random()*noise.length)] }})
- </script>
- </body>
- </html>
|