Audio overlap loop: Difference between revisions

From Rosetta Code
Content added Content deleted
m (draft rewording)
m (promoted to task)
Line 1: Line 1:
{{draft task}}
{{task}}
'''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 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.


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





Revision as of 19:48, 11 February 2013

Task
Audio overlap loop
You are encouraged to solve this task according to the task description, using any language you may know.

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.

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>