1. First steps in Reaktor Core - Native Instruments
1. First steps in Reaktor Core - Native Instruments
1. First steps in Reaktor Core - Native Instruments
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
4. Structures with <strong>in</strong>ternal state<br />
4.<strong>1.</strong> Clock signals<br />
How a <strong>Reaktor</strong> <strong>Core</strong> module processes an <strong>in</strong>com<strong>in</strong>g event is completely up<br />
to the module. Normally a module would process the <strong>in</strong>com<strong>in</strong>g value <strong>in</strong> some<br />
way, but it can also completely ignore it. The most typical case of such process<strong>in</strong>g<br />
is clock <strong>in</strong>puts.<br />
One example of a module with a clock <strong>in</strong>put is a Latch. The Latch is not a<br />
built-<strong>in</strong> module; it’s a macro; nevertheless, it’s perfect for demonstrat<strong>in</strong>g the<br />
clock pr<strong>in</strong>ciple.<br />
The Latch has two <strong>in</strong>puts – one for the value and one for the clock.<br />
�<br />
��<br />
68 – REAKTOR CORE<br />
����� �<br />
The value <strong>in</strong>put (the upper one) will store the <strong>in</strong>com<strong>in</strong>g value to the <strong>in</strong>ternal<br />
memory of the latch <strong>in</strong> response to an <strong>in</strong>com<strong>in</strong>g event; noth<strong>in</strong>g will be sent<br />
to the output. The clock <strong>in</strong>put will send the last stored value to the output <strong>in</strong><br />
response to an <strong>in</strong>com<strong>in</strong>g event.<br />
Clock <strong>in</strong>puts (unless otherwise specified) completely ignore the value<br />
of the <strong>in</strong>com<strong>in</strong>g event and respond only to the fact that the event is<br />
com<strong>in</strong>g.<br />
(Because now we are discuss<strong>in</strong>g clock signals, not latches, examples of us<strong>in</strong>g<br />
the Latch module will come later.)<br />
Because there are modules with clock <strong>in</strong>puts, it should be clear that some of<br />
the signals <strong>in</strong> the structure do not carry any used (or, for that matter, useful)<br />
values. Some signals can even be produced for the sole purpose of be<strong>in</strong>g used<br />
as a clock source. We will call them clock signals.<br />
A sampl<strong>in</strong>g-rate clock is one example of a clock signal. It produces an event<br />
for each new audio sample to be generated, so at 44.1 kHz sampl<strong>in</strong>g rate it<br />
would tick 44,100 times per second. The value of the signal has no mean<strong>in</strong>g,<br />
is not <strong>in</strong>tended to be used <strong>in</strong> any way, and is (<strong>in</strong> the current implementation)<br />
always zero.