make a bang depending on how long you press the button


    Apr 20 2014 | 5:54 pm
    Hi,
    I would like my controller make a bang depending on how long you press the button.
    Could anybody give me a advice ?
    Thanks,
    Phil

    • Apr 20 2014 | 6:33 pm
      Assuming your controller sends a non-zero velocity when pressed and 0 when released, you can route these 2 values to the inlets of a timer object.
      You will get, in ms, the duration for which you kept the button pressed.
      If you want something to happen only after X ms while holding the button, you're looking for the clocker object tied to a >= object.
    • Apr 30 2014 | 10:29 pm
      Hi JBL,
      Thanks a lot.
      It works great.
      Phil