Things are getting busy but I get by. So this week we discussed mapping, the connection between the player and the instrument and however they are to interact, i.e. what the interface is controlling.
The importance of parameter mapping to the electronic instrument...
There are different mapping strategies, all of which are pretty self-explanatory:
- one to one
- one to many
- many to many
DMSS5 Wk7
All we really did this week so far is learn some code to reading serial in a different way by splitting up the total into separate bytes for a more accurate read.
Serial.print(analogData >> 7, BYTE);
Serial.print(analogData % 128, BYTE);
The first line shifts the first three digits to the end of the binary code, and the second line gets the remainder needed to make the total, e.g.
analogData = 1111111111
Byte1 = 00000111
Byte2 = 01111111
No comments:
Post a Comment