Apple granted patent to censor music