RNBO 1.0.2 codebox copile bug - how can I downgrade?

Jan M's icon

I already submitted the support ticket. Unfortunately there is a bug the RNBO 1.0.2 that prevents RNBO patchers from compiling in some cases.

a simple codebox with:

@state parser = new midiparse();
let midistate = parser.next(in1);

and a [midiin] connected to in1 will break compilation

I still have the Max 8.5.1 installer. Is there a way to downgrade the RNBO package?

Unfortunately that break a project I am working on right now :)))

Ben Bracken's icon

It appears that as a workaround, you can explicitly declare the var type, ie:
let midistate : list = parser.next(in1);

I'm not 100% sure if this is expected or not now, but we will look into it. If you want to downgrade, you will have to install Max 8.5.1.

Jan M's icon

Thanks Ben for the fast reply, that works!

In my patch I use an modified version of the codebox voice controller from this article:

https://rnbo.cycling74.com/learn/building-a-note-controller-with-codebox

Maybe the example there can be updated, so that it continues to compile for other as well.

Ben Bracken's icon

@JAN just an update, I've ticketed this lack of type inference, as it does seem to have changed at some point. Thanks for pointing it out!

Jan M's icon

Thanks to you, Ben. The support you all offer is really outstanding.