In Port Default

Macro to replace unconnected in-port with default value

(2 Votes)
minortom
1.0 (Updated 4 months 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
4 months ago
Glad it's useful!
Philippe Loiseau
4 months ago
Smart, thanks
bindlestiff
4 months ago
Helpful!
now