#include "builtins.h" #include "blocktype.h" static const char *ins[] = { "Trig" }; static const char *outs[] = { "Env" }; static BLOCKPARAM params[] = { { .name = "Attack", .type = PAR_TIME }, { .name = "Hold", .type = PAR_TIME }, { .name = "Decay", .type = PAR_TIME } }; BLOCKTYPE block_envelope = { .name = "Envelope", .n_in = 1, .ins = &ins[0], .n_out = 1, .outs = &outs[0], .n_param = 3, .params = ¶ms[0] };