Cleaned up audio.js, added soundloud player for No new taxes.

This commit is contained in:
suroh 2019-05-04 18:03:11 +02:00
parent 89d12cf34e
commit 4ca264b00c
2 changed files with 4 additions and 3 deletions

View File

@ -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> <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> <hr>
<ul> <ul>

View File

@ -7,16 +7,15 @@ const audioEl = document.querySelector('#audioToggle')
masterGain.gain.value = 0.9 masterGain.gain.value = 0.9
masterGain.connect(audioEngine.destination) masterGain.connect(audioEngine.destination)
// window.onload = function() {
// // create gain
// }
const audioToggle = () => { const audioToggle = () => {
audioEl.classList.toggle('active'); audioEl.classList.toggle('active');
if (audioEngine.state == 'suspended') { if (audioEngine.state == 'suspended') {
console.log('resumed')
audioEngine.resume() audioEngine.resume()
} else { } else {
audioEngine.suspend() audioEngine.suspend()
console.log('suspended')
} }
} }