title: Pure Data osc~ on/off switch
body: <p>I've got this simple patch:</p>
  
  <p><img src="https://i.stack.imgur.com/5VtcS.png" alt="Simple Patch Diagram"></p>
  
  <p>Now I connected a game controller to Pd where the keys give me 1 or 0 depending whether I press the button or not.</p>
  
  <p>If I press my button I want the osc~ to "play" and if I release it it should stop.</p>
  
  <p>BUT: I wasn't able to find a point where to attach a switch.
  I don't want to switch off the DSP as I want to play another sound at another key the same time.</p>
  
  <p>It would be nice if anyone of you would have a solution</p>
  
  <p><b>EDIT:</b>
  Okay the below solution worked, If there is any need for the project I've done (using a game controller as an instrument) just contact me directly.</p>