Data Deliver

Written Plan For Final mightlike.py

For the final me and my partner have conversed about this matter and came to a consensus  that before combining each of us needs to comment our sides of the code and revise it for any mistakes. And right before this latest version, my partner Justin ran into another problem with the back end with the restarting loop. the objective after completing all the match making never turned false. We later on conversed with Mr. Lev and found that we need to include the top part of the function saying the objective variable is once again false. In addition,  when ending the  program we found that clicking any other characters or numbers can automatically re run the code, so we later on said enter anything else besides “n” and it will re run the code. Next we will run code again several times to see more errors if there are. And if error free, we would clean out the program codes for any unnecessary lines of code.

 

Latest Version: mightlikecombAJ11.py

 

This slideshow requires JavaScript.

Data: Develop

This slideshow requires JavaScript.

What happens in each version?

Version 5

If at the end there were no matches, program picks out a random song from the song library. If there at the end there was a final match, presents to user, no surprise, which uses the random function. If at end there were more than one match, program randomly selects a song and presents to user, using the random function.

Version 6

We have included the restart function within the program to give the user an option if they want more song recommendations or not. In version 6, we have included one big loop from the front end to the back end. The problem with this version was that there was no way to get out of the program, it just keeps running and running again. The only way to get out of the loop was to get a single match. If there were no matches or more than one match it would keep running over and over.

Version 7

We have excluded the 4 small loops nested within the big loop for restarting the program. But the variable objective stayed and was still false. There are two ways to get out of the loop, one being one perfect match and running through the matching process which opens the exit door for the program. Once it opens it would be able to get to the final matching process, randomly selecting if needed.

Functions used in these versions: randint, print, append, abs, len, int, str, value error

Data: Midpoint Status Report

What is going on so far in the code?

So far as we are completing our four to five versions, in front and back end, we have completed the front end. One common problem that occurred for the front and back end was the raw data. One of our comrades took their time off and cleaned the data later on for us. For example, for genre someone put “hip pop” or someone put special characters for certain fields. The computer can read normal characters. The front end did have some problems. One problem that occurred was that when converting the integers to strings one of the genres had “-“, this was hip hop and the data was cleaned for only hip hop. So that was one problem in front end. A problem that occurred in the back end was using a single variable “prevList” and “prevLname”. I have gotten confused as to which areas go back to songLib and which areas go back to the previous element matches.

And whats my plant to finish off the code?

To finish off the code, we decided to include a while loop in order to ask the user if they want to be recommended another song. Also we will also need a while loop for the element match making when adding the restart function. Additionally, we are planning to include comments on both sides of the code after done. Cleaning off both sides of the code and combining them. Before submitting and calling the code final, we will test the program for any errors and mistakes we have done or haven’t seen.

Wondering what Justin is up to check it out here 

Data: Design

A code brought to you by Justin Hua and Abdul Mamun

Check out Justin’s from here

Roles:

Justin Hua: Front End

  • Description: Crafting a piece of work to gather data from users to send over as a idea of what the user might like in a song.  (Asking questions to the user about a song they like consisting of: Title, Performer, Primary Instrument, Lyric, Bass, Tempo and Feeling)

Abdul Mamun: Back End

  • Description: Crafting a piece of work to  match a song that the user might like.  Within this back end compiled by this group, we decided to only use four necessary elements, (genre, performer, primary instrument and bass).

PSEUDO CODE:

This slideshow requires JavaScript.

——————————————FRONT END————————————————–

This slideshow requires JavaScript.

Version 1: Starting off by genre and conversions

Version 2: Includes all elements and questions

Version 3: Appends elements into song list

Functions used in these versions: print, int, str, append

——————————————BACK END————————————————–

This slideshow requires JavaScript.

Version 1: Starting off by

Version 2: Includes genreMatch, perfomerMatch, prinstrumentMatch and bassMatch

Version 3:System Exit

Functions used in these versions: print, len, int, str

 

Data: Discover

What is a song and why are people attracted to songs?

A song is a length of time which includes forms of expressing your inner self. People are attracted to songs and music because it gets them going and moving. This sounds very cliche but this reason resides with most people. People have their own unique nature. You nature could be calm and you could reside mostly with tranquility songs or classic songs. For example, a extrovert, curious, hardworking individual could like hip hop including rap. Another example is, a person that is depressed may like to either listen to sad music or uplifting music to fill in their mellow hearts.

A good music consists of the artists wrapped emotions and a nice mood towards it. Many songs include any of the following components: lyrics, rhythm,  tempo, artist, instruments, title, and mood

Data Define:**A Song in Data/My Library Song

A song, tis but thy song that is my enemy. Thou art thyself thou not a song, strip thy name of a song, what we call rose my heda.

  1. A title is a name given to a song officially, in this data project, we will be using a regular unrestricted string for a response. Example: Closer
  2. A performer is the person who sings most of the song or known as the artist. This will be a regular unrestricted string for a response. Example: Chain smokers
  3. A genre is a category which the song is placed under based on style of artist composition. This will be a restricted integer with multiple choice answers. The multiple choice user answer will later be converted to the genre word. The loop used here is the while loop. The integer range will be 1 to 15.
    1. Blues
    2. Classical
    3. Country
    4. Electronic
    5. Folk
    6. Hip Hop
    7.  Jazz
    8. Latin
    9. Pop
    10. Reggae
    11. Religious
    12. Rock
    13. Rnb
    14. World
    15. Other_______
  • A sub-genre is a category that falls under genre to narrow down the deeper category of the style and composition of the artist. This will be an unrestricted string. Example: Dance
  • A primary instrument is the instrument you mostly hear within a song. This will be coded in as an unrestricted string. Example: Guitar
  • Lyrics are the words of a song that are spoken in many languages. This will be coded in as an integer field from 1 to 10. 1 being the song doesn’t require lyrics in the song and 10 being the lyrics are very important of the song. The loop used here is the while loop.
  • Bass of the song is how much the song has a rumble to it in a rhythm.  This will be an integer field from 1 to 10. 1 being the song has little rumble rhythm or any rhythm where as 10 is the song has a lot of rumbling rhythm and requires a lot of rhythm. The loop used here is the while loop.
  • A tempo is the speed of a song according to the subject of what makes a song. This will be coded in as an integer from 1 to 10. 1 being the song is slow and steady where as 10 is the song is really fast. And will have restricted integer. The loop used here is the while loop.
  • Feeling are the emotional mood that is displayed towards the audience, this will be coded in as a restricted integer. This will be a restricted integer with multiple choice answers. The field will be 1 to 13.  The multiple choice user answer will later be converted to the feeling. The loop used here is the while loop.
    1. joyful
    2. sad
    3. romantic
    4. angry
    5. chill
    6. motivating
    7. compassion
    8. humorous
    9. enlightening
    10. confused
    11. passionate
    12. regret
    13. grace
Title                                                       Performer               Genre        Sub-G     Prinstri/Lyrics/Bass/Temp Feeling Name
Allahu Yousuf Younus Al Blushi religious nasheed voice 8 2 2 joy M@mun-dono
Goulou l’Mama Jalal El Hamdaoui world pop drum 5 5 4 joy M@mun-dono
Tumimoy Tahsan Rahaman Khan world pop piano 7 3 5 romantic M@mun-dono
Assalamu Alaika Maher Zain world Islamic vocal 6 6 5 motivational M@mun-dono
Silhouette Kana-boon world world guitar 7 6 6 motivational M@mun-dono
Three Empty Words Shawn Mendes pop romantic guitar 8 2 5 sad Justin-Kun
Pursuit Of Happiness Kid Cudi hip hop alternative hip hop drum machine 6 6 4 chill Justin-Kun
R.I.P Roach “EAST SIDE SOULJA” Xxxtentacion rnb contemporary r&b drum machine 8 8 8 hype Justin-Kun
Say You Won’t Let Go James Arthur pop folk guitar 7 4 5 sad Justin-Kun
Drowning A Boogie Wit Da Hoodie hip hop rap drum machine 7 7 6 motivational Justin-Kun

***myGraphics.py DEFINE

Some elements I will include in my map project using graphics is:

  • Mountain
  • Tree
  • Building
  • Road

The tree function will be created. Then I will use the tree function to make the forest function (plural trees). (Circles and Rectangles)

The mountain function will be created.Then I will use the mountain function to make the mountains function. (Polygons )

The building function will be created. Then I will use the building function to make the town function.  (Rectangles )

The roads will be made manually, using rectangles.

**myGraphics.py DISCOVER

In my graphics project I will be producing a map.

Another idea I was thinking about was making a starry night. But I saw one already produced so I threw that in the trash bag.

 

Some other ideas I thought of were a line of of pc’s, but this was plain and was sent to the trashbag. So I have made my mind to make a map. This will be made adjusting to a birds eye view.