---
title: musicalGenre
framework: corespotlight
role: symbol
role_heading: Instance Property
path: corespotlight/cssearchableitemattributeset/musicalgenre
---

# musicalGenre

The musical genre of the song or audio composition that the file contains, such as jazz, pop, rock, or classical.

## Declaration

```swift
var musicalGenre: String? { get set }
```

## See Also

### Describing music

- [album](corespotlight/cssearchableitemattributeset/album.md)
- [artist](corespotlight/cssearchableitemattributeset/artist.md)
- [audioChannelCount](corespotlight/cssearchableitemattributeset/audiochannelcount.md)
- [audioEncodingApplication](corespotlight/cssearchableitemattributeset/audioencodingapplication.md)
- [audioSampleRate](corespotlight/cssearchableitemattributeset/audiosamplerate.md)
- [audioTrackNumber](corespotlight/cssearchableitemattributeset/audiotracknumber.md)
- [composer](corespotlight/cssearchableitemattributeset/composer.md)
- [keySignature](corespotlight/cssearchableitemattributeset/keysignature.md)
- [lyricist](corespotlight/cssearchableitemattributeset/lyricist.md)
- [recordingDate](corespotlight/cssearchableitemattributeset/recordingdate.md)
- [tempo](corespotlight/cssearchableitemattributeset/tempo.md)
- [timeSignature](corespotlight/cssearchableitemattributeset/timesignature.md)
- [generalMIDISequence](corespotlight/cssearchableitemattributeset/generalmidisequence.md)
- [musicalInstrumentCategory](corespotlight/cssearchableitemattributeset/musicalinstrumentcategory.md)
- [musicalInstrumentName](corespotlight/cssearchableitemattributeset/musicalinstrumentname.md)
