#include "noise.h" #include "builtins.h" #include "blocktype.h" static const char *outs[] = { "Out" }; static const char *typenames[] = { "White", "Pink", "Brown" }; static const int typevals[] = { NOISE_WHITE, NOISE_PINK, NOISE_BROWN }; static BLOCKPARAM params[] = { { .name = "Bits", .type = PAR_IRANGE, .u = { .irange = { .min = 1, .max = 16 } } }, { .name = "Type", .type = PAR_CHOICE, .u = { .choice = { .n = 3, .names = &typenames[0], .values = &typevals[0] } } } }; BLOCKTYPE block_noise = { .name = "Noise", .n_in = 0, .ins = 0, .n_out = 1, .outs = &outs[0], .n_param = 2, .params = ¶ms[0] };