How do the brain and ear work together to process sound waves?