I'm trying to make an emulation of the Turing Machine Euro shift-register pattern-generator.
The original uses 2 analogue shift-register ICs in series. I thought of using a 16bit number to store the bits that need to be shifted. I can rotate the bits, then use bit-shifting to extract two 8bit numbers.
What I'm wondering is, would it be better to use a 32bit int instead of the 16bit uint I was thinking of?
If 16bit is ok, what's the best way to convert the value to the signed 32bit format required for the output value?
Can I just assign the 16bit uint16_t value to the 32bit int32_t outlet?
Sorry for the stupid questions. Am still struggling with variable type-related issues.
Talking of which.. I'm also struggling to do a simple numerical comparison between the value of a 32bit unsigned param and the sampled 32bit signed value from a '+-' inlet.
I just want to branch based on whether one is greater than the other, but can't seem to get it to work properly using the '<' operator.
Any tips on either issue much appreciated.
a|x