The project is done (Old 49 keys casio) to midi using Arduino MEGA

Thanks. I will think about this but have to go to bed now as it is 4:44 here. Post later.