namespace NanoKontrolEnum
{
public class DeviceMapEnumDefenition : ManualDynamicEnumDefinitionBase<DeviceMapEnumDefenition>
{
public static DeviceMapEnumDefenition Instance => ManualDynamicEnumDefinitionBase<DeviceMapEnumDefenition>.Instance;
override protected bool AutoSortAlphabetically => false;
}
[Serializable]
public class DeviceMapEnum : DynamicEnumBase<DeviceMapEnum, DeviceMapEnumDefenition>
{
public DeviceMapEnum(string value) : base(value)
{
}
//this method needs to be imported in VL to set the default
public static DeviceMapEnum CreateDefault()
{
//use method of base class if nothing special required
return CreateDefaultBase();
}
}
}
None of your patches get executed, you placed them all in the document definition patch, so even the constructor of your KorgMidi node will never run and subsequently those enums will never get registered.
A better way to go about it is making use of the RegisterServices operation which gets executed (if present) for each document. Something like this: