Audio overlap loop: Difference between revisions
no edit summary
Thundergnat (talk | contribs) (alphabetize, minor clean-up) |
No edit summary |
||
Line 73:
}
</script></lang>
=={{header|Julia}}==
Uses Julia's ability to run iterations of a 4 loop in separate threads to play a file 4 times, with each play 0.1 seconds out of sync with the previous play. Requires 4 available threads on the CPU at Julia startup.
<lang julia>soundfile = "loop.wav"
@Threads.threads for secs in 0.0:0.1:0.3
begin sleep(secs); run(`play "$soundfile"`); end
end
</lang>
=={{header|Tcl}}==
|