Question: what determines the type of electromagnetic radiation emitted?
Answer: As atoms and molecules move about and collide, or vibrate in place, their electrons give off electromagnetic radiation. The characteristics of this radiation are determined by the temperature of those atoms and molecules.