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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The speed of the number change <strong>in</strong> the meter must correspond to the frequency<br />

of the oscillator, def<strong>in</strong>ed by the pitch knob. At the pitch value of zero<br />

the oscillator frequency is approximately 8 Hz, so the numbers should <strong>in</strong>crement<br />

at approximately the rate of 8 per second.<br />

8. Arrays<br />

8.<strong>1.</strong> Introduction to arrays<br />

Let’s imag<strong>in</strong>e you want to build an audio-signal selector module, which, depend<strong>in</strong>g<br />

on the value at the control <strong>in</strong>put, picks up the signal from one of<br />

four audio-signal <strong>in</strong>puts:<br />

One approach would be to use Router modules, but there is also another possibility—we<br />

can use another feature of <strong>Reaktor</strong> <strong>Core</strong> – arrays.<br />

A one-dimensional array is an ordered collection of data items of the same<br />

type which can be addressed by their rank <strong>in</strong> this order or <strong>in</strong>dex. For example,<br />

here we have a group of 5 float numbers:<br />

5.2 16.1 -24.0 1<strong>1.</strong>9 -0.5<br />

In <strong>Reaktor</strong> <strong>Core</strong> the array element <strong>in</strong>dices are zero-based, which means that<br />

the first element of the array has an <strong>in</strong>dex of 0. Therefore, the element with<br />

an <strong>in</strong>dex of 0 is 5.2, an <strong>in</strong>dex of 1 gives us 16.1, and <strong>in</strong>dices of 2, 3, and 4<br />

address –24.0, 1<strong>1.</strong>9, and 0.5, respectively.<br />

Here is a representation of this array us<strong>in</strong>g a table:<br />

Index 0 1 2 3 4<br />

Value 5.2 16.1 -24.0 1<strong>1.</strong>9 0.5<br />

Arrays are created <strong>in</strong> <strong>Reaktor</strong> <strong>Core</strong> us<strong>in</strong>g Array modules (Built-In Module ><br />

Memory > Array):<br />

An Array module has a s<strong>in</strong>gle output which is of Array OBC type. The size of<br />

the array (number of elements) and the type of data kept <strong>in</strong> the elements of<br />

the array are specified <strong>in</strong> the Array module’s properties:<br />

REAKTOR CORE – 119

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

Saved successfully!

Ooh no, something went wrong!