Instrument Maker Reference

im.sensor

Description:

Take a sensor reading and output as a value from 0 - 1 This range can be expanded using the second argument -- state the number of intervals you would like to trigger.

Outputs control.
Args:

input number, multiplier,

Inlets:

none

Outlets:

control signal applied to range

Example:

im.speaker im.fader im.noise im.sensor 1 im.speaker im.fader im.scale E lydian 3 im.sensor 3 im.sawtooth im.sensor 2 7 im.sensor input:A0 range:12 im.fizzy im.scale c minor 5 im.sensor input:A0 range:2- im.filter resonance:1 im.speaker
If this image does not display properly, try this alternative file.

Back to main reference page


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