Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- function RollSlott(){
- var context = new AudioContext();
- var lfo = context.createOscillator();
- lfo.frequency.value = 0.5;
- var hfo = context.createOscillator();
- hfo.frequency.value = 200.0;
- var modulationGain = context.createGain();
- modulationGain.gain.value = 100.5;
- lfo.connect(modulationGain);
- modulationGain.connect(hfo.detune);
- hfo.connect(context.destination);
- hfo.start();
- lfo.start();
- var Bar=parseFloat(Math.random()*21.9);
- var Barr=parseFloat(Math.random()*21.9);
- document.body.innerHTML=(Bar+":"+Barr);
- var PlayLen=21.1;
- if(Bar!=0){
- Bar--
- }else if(Bar!=21){
- Bar++
- }
- var context = new AudioContext();
- oscillator=context.createOscillator();
- oscillator.type = 'sine';
- oscillator.frequency.value = Bar;
- oscillator.connect(context.destination);
- oscillator.start(0);
- oscillator.stop(PlayLen);
- oscillator.disconnect(PlayLen);
- lfo.stop(PlayLen);
- lfo.disconnect(PlayLen);
- hfo.stop(PlayLen);
- hfo.disconnect(PlayLen);
- }
- </script>
- <button onclick="script:
- var rolls=10;
- while(rolls!=0){
- rolls--;
- var Timer1 = setTimeout ('RollSlott();',0.0001);
- var Timer1 = setTimeout ('RollSlott();',0.002)
- var Timer1 = setTimeout ('RollSlott();',0.03)
- var Timer1 = setTimeout ('RollSlott();',0.04)
- var Timer1 = setTimeout ('RollSlott();',0.5)
- }">Roll Static Test Now!!</button>
- <script>
Advertisement
Add Comment
Please, Sign In to add comment