Need help to connect 8 rotary encoders and 8 switches to arduino as midi control

Cross posting is a way to annoy people on this forum. Thread reported to moderator.