How Analog and Digital Recording Works