No consistency in my experience. On recent flights (a few different airlines) I've seen people carry on what looks to be guitars and other small musical instruments and on other flights the Gate Agents and/or Flight Attendants made the owners gate check the instruments. I get the impression it's rather arbitrary.