Listening to music can affect people emotions. They can experience simultaneous feelings, such as happiness and hope, or sadness and angry, when a song is being played. However, infering emotions that can be caused by a musical fragment is a complex task. To deduce relationships between feelings and music, we propose a sentiment analysis method based on data mining. In particular, different musical features are extracted and classified to analyze the influence of some music parameters on human emotions. In this process, data mining algorithms such as Random k-Labelsets, Multi-Label k-Nearest Neighbors or Apriori have been essential for the success of our proposal.