While you know all about this project we don't and therefore can not offer any usefull advice. Things we need to know
How are you going to detect the ball hitting the bottle ..... Or is that what you are asking if so then we need to know about the bottle, size weight, is it fixed or can it move and so on. The ball, is it flying through the air, or rolling on the ground, will it break the bottle, make a noise move the bottle.
The melody, what code are you using, link it or post it.