Skip to content

onInput()

Set up a function to call when a message arrives at a given address.

oscin.onInput(oscAddress, action)

An OSC address looks like a URL, for example "/first/second/third". The address may also be a pattern, to match several addresses at once.

Parameters

oscin.onInput(oscAddress, action)
Parameter Type Default Description
oscAddress str required The OSC address to listen for, for example "/first/second/third".
action function required The function to call; it receives one parameter, the incoming OscMessage.