To insert music into PowerPoint slides that will play automatically for a set number of slides:
1) Set up the slideshow to advance slides using a timer and for the desired number of slides.
2) Insert the music file onto a slide and select for it to play automatically.
3) Use custom animations to set the music to stop playing after a set number of slides.
4) Rehearse slide timings to set the duration for each slide.