Prototype / Vult: getSwitch() error

The following code:

fun process(phase: real) {
    val why : bool = getSwitch(1);
    return phase;
}
and update() {
    _ = display("Why?");
}

Results in this error:

[string "C:\Users\Thorsten\Documents\Rack\prototype\ph..."]:24: 'struct LuaProcessBlock' has no member named 'switch'

Which as far as I can tell from template.vult is how you’re supposed to get the switch. Am I doing something wrong?

@modlfo

I found the bug. thanks for the report. I will push a fix soon that way it is available in the next release of the VCV Prototype.

1 Like