Audio overlap loop: Difference between revisions

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



=={{header|JavaScript}}/{{header|HTML}}==
=={{header|JavaScript}}/{{header|HTML}}==

Revision as of 17:52, 28 January 2013

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 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).


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>