Challenges in music generation technology: Communicating specific emotions through music via textual descriptions, MusicMagus offers precise editing solutions. Experiments confirm outstanding performance: MusicMagus outperforms baseline models in musical semantics and structure, advancing the development of music editing technology. The model innovatively combines the advantages of AR and diffusion models to enhance the quality and efficiency of music editing. Research indicates that MusicMagus has made significant progress in music editing, demonstrating its innovative approaches.