In Port Default

Macro to replace unconnected in-port with default value

(2 Votes)
minortom
1.0 (Updated 3 years ago)
7.1kB
December 28, 2021
Reaktor 6

DESCRIPTION

Guaranteed to output a single event when:

* In port is connected (outputs connected value as init-derived event)
* In port is disconnected (outputs default as init-derived event)
* In port has event (outputs regular event)
* Init (outputs either connected port value or default as init-derived event)

Based on https://www.native-instruments.com/en/reaktor-community/reaktor-user-library/entry/show/13977/ and much hair pulling when trying to correctly handle unconnected defaults.

COMMENTS  (3)

minortom
3 years ago
Glad it's useful!
krosstalk
3 years ago
Smart, thanks
bindlestiff
3 years ago
Helpful!
now