Audio overlap loop

From Rosetta Code
Revision as of 20:35, 26 July 2011 by rosettacode>Ergdegdeg (made it a draft task, fixed JavaScript tasks)
Audio overlap loop is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

Audio Overlap Loop is a program that sets a file (in these code examples, the file is called loop.wav) to a manipulation level. The manipulation level is set to a certain number, and that is the number of times the file loops. In this program, the files overlappingly loop, so it sounds like multiple, overlapping copies of the same file, all going at once.

JavaScript/HTML

<lang JavaScript> <script> for(i=0, j=prompt("Enter the sound manipulation level you want", ""); i<j; i++){ document.write("<bgsound src='loop.wav'>")} </script> </lang>