Thursday, September 28, 2017
White Noise with HTML5 Audio API - COUNTER SURVEILLANCE
window.AudioContext = (window.AudioContext ||
window.webkitAudioContext ||
window.mozAudioContext)
context = new AudioContext()
osc = context.createOscillator()
noiseGain = 0
whiteNoise = context.createScriptProcessor(4096, 1, 1)
whiteNoise.onaudioprocess = (ev)->
output = ev.outputBuffer.getChannelData(0)
for i in [0...whiteNoise.bufferSize]
output[i] = noiseGain * (Math.random() * 2 - 1)
$("#noise").click ->
$(@).val if noiseGain is 1 then "on" else "off"
noiseGain = 1 - noiseGain
osc.connect(whiteNoise)
whiteNoise.connect(context.destination)
https://codepen.io/koheishingai/pen/yOMVxe
window.webkitAudioContext ||
window.mozAudioContext)
context = new AudioContext()
osc = context.createOscillator()
noiseGain = 0
whiteNoise = context.createScriptProcessor(4096, 1, 1)
whiteNoise.onaudioprocess = (ev)->
output = ev.outputBuffer.getChannelData(0)
for i in [0...whiteNoise.bufferSize]
output[i] = noiseGain * (Math.random() * 2 - 1)
$("#noise").click ->
$(@).val if noiseGain is 1 then "on" else "off"
noiseGain = 1 - noiseGain
osc.connect(whiteNoise)
whiteNoise.connect(context.destination)
https://codepen.io/koheishingai/pen/yOMVxe
Subscribe to:
Posts (Atom)
US - Saudi Arabia Intel ( Trump desesperate for vessels to exportation went Saudia Arabia changing Russia santions goal low oil price for the oposite policy exchanging 98$ barrel for Saudis for vessel industry investemnt in urgency)
https://www.instituteforenergyresearch.org/regulation/trump-asked-to-exclude-energy-products-from-new-proposed-shipping-rules/
