Cleaned up audio.js, added soundloud player for No new taxes.
This commit is contained in:
parent
89d12cf34e
commit
4ca264b00c
|
@ -284,6 +284,8 @@
|
|||
|
||||
<p>A collaboration with artist <a href="http://www.amypickles.co.uk/" targe="_blank">Amy Pickles</a> developing and performing part of the sound component. Custom developed a looper mangler using open source software and hardware. The project text :</p>
|
||||
|
||||
<iframe width="100%" height="300" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/615639498&color=%23333333&auto_play=false&hide_related=true&show_comments=false&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe>
|
||||
|
||||
<hr>
|
||||
|
||||
<ul>
|
||||
|
|
|
@ -7,16 +7,15 @@ const audioEl = document.querySelector('#audioToggle')
|
|||
|
||||
masterGain.gain.value = 0.9
|
||||
masterGain.connect(audioEngine.destination)
|
||||
// window.onload = function() {
|
||||
// // create gain
|
||||
// }
|
||||
|
||||
const audioToggle = () => {
|
||||
audioEl.classList.toggle('active');
|
||||
if (audioEngine.state == 'suspended') {
|
||||
console.log('resumed')
|
||||
audioEngine.resume()
|
||||
} else {
|
||||
audioEngine.suspend()
|
||||
console.log('suspended')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue