title: Pure Data MIDI Toggle Switch
body: <p>I am looking to build a tool that allows me to toggle on/off certain GEMheads in my patch based on MIDI pad input. Pressing one pad would turn on a render chain and pressing a different pad would activate a new render chain.  Pressing the midi pad for any active render chain should disable the rendering.</p>
  
  <p>I'm having quite some trouble building this into my current patches which look like this: <br></p>
  
  <p><a href="https://i.stack.imgur.com/hHcw2.png" rel="nofollow noreferrer">pad_control</a> <br>
  <a href="https://i.stack.imgur.com/BgXvN.png" rel="nofollow noreferrer">template</a></p>
  
  <p>I grab the MIDI identity and use it to generate a one or a zero, however I'm not certain of the logic to keep the output as a 1 when pressing different MIDI pads and how to add the toggle functionality.  As of now, only one can be active at any given time.</p>
  
  <p>Any help is appreciated, thank you!</p>