function effectHandler(effect, effectSelector){
  let effectString = `${effect}`.toLowerCase();
  if (audioSettings.effects[effectString] === "off"){
    effect.wet.value = 0.8;
    audioSettings.effects[effectString] = "on";
    effectSelector.style.backgroundColor = '#ff5500';
  } else {
    effect.wet.value = 0;
    audioSettings.effects[effectString] = "off"
    effectSelector.style.backgroundColor = 'white'
  }
}
//effects handlers; function takes a Tone.js effect and a button, and changes the wet signal and button color when the effect is turned on/off
effects handlers; function takes a Tone.js effect and a button, and changes the wet signal and button color when the effect is turned on/off
effects handlers ; function takes a Tone . js effect and a button and changes the wet signal and button color when the effect is turned on / off
function effectHandler(effect, effectSelector){
  let effectString = `${effect}`.toLowerCase();
  if (audioSettings.effects[effectString] === "off"){
    effect.wet.value = 0.8;
    audioSettings.effects[effectString] = "on";
    effectSelector.style.backgroundColor = '#ff5500';
  } else {
    effect.wet.value = 0;
    audioSettings.effects[effectString] = "off"
    effectSelector.style.backgroundColor = 'white'
  }
}
function effectHandler ( effect , effectSelector ) { let effectString = ` ${ effect } ` . toLowerCase ( ) ; if ( audioSettings . effects [ effectString ] === "off" ) { effect . wet . value = 0.8 ; audioSettings . effects [ effectString ] = "on" ; effectSelector . style . backgroundColor = '#ff5500' ; } else { effect . wet . value = 0 ; audioSettings . effects [ effectString ] = "off" effectSelector . style . backgroundColor = 'white' } }
effects handlers; function takes a Tone.js effect and a button, and changes the wet signal and button color when the effect is turned on/off
effects handlers ; function takes a Tone . js effect and a button and changes the wet signal and button color when the effect is turned on / off