First try
File:Music_project2.maxpat
I have to add others musical instuments
Second try
File:Music_project2.1.maxpat
Now I have to find a way to trigger the notes of the different instruments with the microphone. Every time the microphone picks up a sound it creates a random note