Musical greeting cards are usually a battery, piezo speaker, switch, all wired together on a piece of board with black blob on it. The 'blob', is a C.O.B. (circuit-on-board), in this case a programmable device. The COB is simple and cheap to manufacture, and tough to rip off...