Getting the RNBO parameters metadata with a getter from the rnbo_source.cpp (or similar)

Iwan Paturel's icon

Hi everyone,

I'm using the RNBO export function and the VCV rack SDK to translate my RNBO patches into Rack modules. I'm trying to hack a little bit into the system (module.cpp, rnbo_source.cpp and others) in order to be able to control the appearance of the final module directly from the parameters or in/outlets metadata field.

The issue is that there is no implementation of the "meta" field in the rnbo c++ export. Well, it does exist in the "description.json", but there is no solution implemented to access it easily, meaning that the field doesn't exit in the "rnbo_source.cpp", neither in the "ParameterInfo" struct in "RNBO_Types.h" :

struct ParameterInfo
	{
		ParameterType type;
		IOType ioType = IOTypeUndefined;
		ParameterValue min = 0.;
		ParameterValue max = 1.;
		ParameterValue initialValue = 0.;
		ParameterValue exponent = 1.;
		int steps = 0; // 0 = continuous, 1 = toggle, 2+ indicates steps in the normalized representation
		bool debug = false;
		bool saveable = false;
		bool transmittable = false;
		bool initialized = false;
		bool visible = false;
		const char **enumValues = nullptr;
		const char *displayName = "";
		const char *unit = "";
		SignalIndex signalIndex = INVALID_INDEX;
	};

As these files are generated by RNBO during the export, I cannot modify them in order to have the informations needed. I don't want my first option to be to parse the .json file... Is there any way that I could get the metadata directly from the RNBO export in a way similar to the ParameterInfo struct ?

Thank you !