A SONG IN DATA
My class defined a song by using the following components:
Title
A string given by the user (What is the title of the song?)
Performer
A string given by the user (Who is the performer of the song?)
Genre
A restricted string that provides genres that you can only pick from. (What is the genre of the song?)
- Blues
- Classical
- Country
- Electronic
- Folk
- Hip Hop
- Jazz
- Latin
- Pop
- Reggae
- Religious
- Rock
- RnB
- World
- Other
Sub genre
A string given by the user (What is the sub genre of the song?)
Primary Instrument
A string given by the user (What is the main instrument in the song?)
Lyrics
An integer (On a scale from 1-10 how important are the lyrics to the song?)
Bass
An integer (On a scale from 1-10 how strong is the bass in the song?)
Tempo
An integer (On a scale from 1-10 how fast is the song?)
Feeling
A restricted string providing options for user to pick how the song makes them feel.
These options are:
- Happy/Joyful
- Sad
- Romantic
- Angry
- Chill
- Motivating
- Compassionate
- Humorous
- Enlightening
- Confused
- Passionate
- Hype
- Grace
Example of song data
Title Performer Genre
Violet | Hole | rock | punk | guitar | 4 | 6 | 4 | sad |
Day ‘N’ Nite (nightmare) | Kid Cudi | hip hop | alternative hip hop | drum machine | 4 | 4 | 5 | chill |
Slide | Calvin Harris | electronic | synthpop | piano | 5 | 5 | 7 | joy |
DYWM | NAO | electronic | synthpop | guitar | 5 | 5 | 8 | romantic |
Super Rich Kids | Frank Ocean | RnB | neo soul | piano | 5 | 7 | 9 | chill |