Instrument Maker Reference

im.keyhold

Description:

Hold a key to trigger an event. Watch out - it doesn't always work to hold more than one key down together. If you find that certain notes hang try pressing the relevant key again.

Outputs control.
Args:

letter of the key to monitor, hold time threshold in milliseconds

Inlets:

none

Outlets:

off/on signal (0/1)

Example:

im.speaker im.fader im.fader im.pulsewave A 3 im.pulsewave B 3 im.speaker im.speaker im.player sounds/sn.wav im.player sounds/string.aif im.keyhold a 500 im.keyhold b 500 im.keyhold Up 1000 im.keyhold Space 1000
If this image does not display properly, try this alternative file.

Back to main reference page


im.keyhold was created by Alex Lucas, 2019/2020