M2PatternSlot.id

ID of the currently played pattern

struct M2PatternSlot
uint id;

Meta