i’ve noticed that in my laziness i ignored the uniqueID in my plugs :hihi: so i’ve registered them and plonked them in. However, i was just wondering if my method of doing them is a bit ‘round the houses’ and if there was a nice simple juce way of doing it. There’s nothing wrong with what i’ve done, but for the sake of my tutorials and stuff i just want to see if there’s a more intuitive way.
currently:
uint8 uid[4] = {'d','c','b','a'};
info.id = *((uint32*) uid);
i haven’t checked the string class yet to see if it has a way of getting such an arrangement of bytes from a string, but i expect that, because it’s usually unicode, it probably doesn’t.