RedLFSR4:
Filter:
redSys/Classes (extension) | Red > redUGens

RedLFSR4
ExtensionExtension

4-bit linear feedback shift register

Description

4-bit fibonacci LFSR. see https://en.wikipedia.org/wiki/Linear_feedback_shift_register

Class Methods

.ar

.kr

Arguments:

trig

Trigger that will calculate a new value.

iseed

Initial seed. Use 8 (2r1000) to get the common sequence: [4, 2, 9, 12, 6, 11, 5, 10, 13, 14, 15, 7, 3, 1, 8]

Returns:

Pseudo random numbers 0-15.

Examples