Instrument Maker Reference

im.debounce

Description:

Wait a certain amount of time (in milliseconds) before allowing a second trigger through. Useful in combination with audiotrigger or keypress, or certain physical switches through im.sensor..

Expects control in the left hand side. Outputs control.
Args:

time in milliseconds

Inlets:

trigger from a sensor or keypress

Outlets:

processed trigger

Example:

im.sensor 1 im.keypress Space im.speaker im.debounce 10 im.player sounds/string.aif im.sensor 1 im.speaker im.player sounds/sn.wav im.debounce 100 im.keypress x
If this image does not display properly, try this alternative file.

Back to main reference page


im.debounce was created by Charles Matthews, 2019/2020