The Word 'music' is a noun.
A noun functions as the subject of a sentence or a clause, and as the object of a verb (direct or indirect) or a preposition. A noun also functions as a predicate nominative.
Examples:
- The music from the block party filled the neighborhood. (subject of the sentence)
- I couldn't decide which music to play. (subject of the relative clause)
- I heard music coming from his room. (direct object of the verb 'heard')
- Grandma tapped her foot to the music. (object of the preposition 'to')
- The manager's compliment was music to my ears. (predicate nominative)