Pots to midi with hairless

Now that it works improve it by making the pot reading and data transmission into a function that you can call with parameters, thus avoiding repetition of what is basically the same code.

Or

Use arrays to hold the data and iterate through it using a for loop. This would make it easier to expand the number of post if required.