environment noise translated to music

hello aruidners,
i am currently working on a project that consists of picking out ambient or environmental sound and translate it to music or assign a a note to each frequency received. its more of an interactive project rather than using pre recorded sounds. I'm guessing i should need a piezo speaker and a sound sensor. Any help regarding this? code? sensors?
Thank you.

Very vague requirements. Have you come across a thing called google? It allows you to search what others have done.