v-any-pulse

hio/nwt-gus-hi/v-any-pulse

Pulses on output when any input recieves a pulse
v-any-pulse
@/v-any-pulse
Pulses on output when any input recieves a pulse
IN1pulse
IN2pulse (variadic)
v-any-pulse
OUT
IN1
IN2
OUTpulse
To use the node in your project you should have the hio/nwt-gus-hi library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

node {
    void evaluate(Context ctx) {
        bool p1 = isInputDirty<input_IN1>(ctx);
        bool p2 = isInputDirty<input_IN2>(ctx);
        if (p1 || p2)
            emitValue<output_OUT>(ctx, true);
    }
}