I believe the correct answer is: metaphor.
Metaphor is a figure of speech in which a word or phrase is regarded as representative or symbol of something else as it may identify hidden similarities between two ideas. In this example from Percy B. Shelly’s poem „Music when Soft Voices Die (To --)“, the odors are directly identified with music.