1. First steps in Reaktor Core - Native Instruments
1. First steps in Reaktor Core - Native Instruments
1. First steps in Reaktor Core - Native Instruments
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
And now the connection:<br />
The upper <strong>in</strong>put of the Index module is always <strong>in</strong>teger type and accepts the<br />
<strong>in</strong>dex value. Here we are address<strong>in</strong>g the array element with the <strong>in</strong>dex of 1:<br />
Notice that the constant module has also been set to <strong>in</strong>teger mode (you<br />
can tell that by the look of the output port). This is not necessary, because<br />
automatic conversion to <strong>in</strong>teger would have been performed anyway; it just<br />
looks better.<br />
Alternatively we could have used a QuickConst:<br />
The output of the Index module is a Latch OBC type, which means that you<br />
can connect Read and Write modules (or even several of them) to that output.<br />
Of course, you need to take care that the Read and Write modules are set to<br />
the same data type as the data type of the Array and Index modules.<br />
Here the array element with <strong>in</strong>dex of 1 will be <strong>in</strong>itialized to 16.1:<br />
If an out-of-range <strong>in</strong>dex is sent to the Index module, the result of access<strong>in</strong>g<br />
the array is undef<strong>in</strong>ed. The structure will not crash, but it’s<br />
unspecified which array element will be accessed <strong>in</strong> this case or whether<br />
the access operation will take place at all. If you’re unsure of the range<br />
of <strong>in</strong>com<strong>in</strong>g <strong>in</strong>dex values, you should clip the <strong>in</strong>put value range us<strong>in</strong>g<br />
Routers or macro modules from the library.<br />
REAKTOR CORE – 121