02.02.2013 Views

1. First steps in Reaktor Core - Native Instruments

1. First steps in Reaktor Core - Native Instruments

1. First steps in Reaktor Core - Native Instruments

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The OBC cha<strong>in</strong> at the bottom keeps the previous <strong>in</strong>put signal value. As you can<br />

see the new value is stored after the old one is read. The last Write module<br />

<strong>in</strong> the cha<strong>in</strong> performs the <strong>in</strong>itialization job for the previous value storage. We<br />

<strong>in</strong>itialize the storage to –1 so that the first positive value will be counted as<br />

a ris<strong>in</strong>g edge.<br />

Hav<strong>in</strong>g a Write module at the end of an OBC cha<strong>in</strong> is another way (as<br />

opposed to Merge) to <strong>in</strong>itialize the storage. It must be the last Write<br />

module <strong>in</strong> the cha<strong>in</strong> <strong>in</strong> order to overwrite the results stored by upstream<br />

Write modules.<br />

The Router controlled by the Sign Comparison module will gate the events,<br />

lett<strong>in</strong>g through only those where a sign change from negative to positive occurs.<br />

It’s not clear whether such a module will send an event dur<strong>in</strong>g <strong>in</strong>itialization<br />

or not, particularly because the storage is still zero at the time of <strong>in</strong>itialization<br />

event process<strong>in</strong>g, and the sign of zero is undef<strong>in</strong>ed. We can modify this<br />

structure <strong>in</strong> order to avoid send<strong>in</strong>g an event dur<strong>in</strong>g the <strong>in</strong>itialization:<br />

The ES Ctl module is an event sensitive control. The control signal produced<br />

by this module is true only if there is an <strong>in</strong>com<strong>in</strong>g event at the <strong>in</strong>put of this<br />

module. Because this <strong>in</strong>put is disconnected <strong>in</strong> the above structure, which<br />

means it’s connected to a zero constant, the only time the control signal is<br />

true is at <strong>in</strong>itialization. So the second router will block any event occurr<strong>in</strong>g<br />

dur<strong>in</strong>g <strong>in</strong>itialization and let all others through.<br />

REAKTOR CORE – 117

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!