Bow, Crossbow and Musket Tactics Compared

Around 1500 to 1600s all of these weapons were used. So what factors would make you pick one weapon over the other?

Crossbowmen hiding behind Pavise shields while reloading with a variety of devices: windlass, belt hook, pulling lever and cranequin