Audio overlap loop: Difference between revisions

From Rosetta Code
Content added Content deleted
(submitting another program source code)
 
m (made it a draft task, fixed JavaScript tasks)
Line 1: Line 1:
{{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 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.

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

Revision as of 20:35, 26 July 2011

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>