Audio overlap loop

Revision as of 06:56, 15 February 2013 by rosettacode>TimToady (this needs more entries to come out of draft)

Audio Overlap Loop is a program that produces an "echo chamber" effect by playing an audio file several times in an overlapping loop. A repetition level determines the number of times that the file is looped. For the purpose of this task, write a program that takes a parameter for the number of repetitions and plays the file loop.wav in an overlapping loop according to the number of repetitions.

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.

Optionally take parameters for delay between repetitions, and decay (fractional volume reduction between consecutive repetitions).


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>