This is because with that code you are constantly sending data. In a practical setup you should only send MIDI data when the value you read from the analogue input actually changes. If it stays the same then don't send it.
This is because with that code you are constantly sending data. In a practical setup you should only send MIDI data when the value you read from the analogue input actually changes. If it stays the same then don't send it.