Instructors can include music in instruction when it meets Fair Use or another exemption.
Fair Use can allow the use of copyrighted music in your class if it meets the four-factor test. Unlike print materials, there are no set limits for how much of a song you can use—but shorter excerpts are usually safer.
There are a few situations where copying music is clearly legal, especially when it supports teaching and learning.
Restrictions
Not all uses of music are allowed under copyright law. These uses may require permission or licensing.