GitXplorerGitXplorer
n

Soundmood

public
1 stars
3 forks
0 issues

Commits

List of commits on branch master.
Unverified
bf7598cf054ae3c242a74d1ede892d7b851dd59b

Update README.md

nnoidontdig committed 10 years ago
Unverified
de440f2a489d2da4aa2679ccdef438b958a568ba

Update README.md

nnoidontdig committed 10 years ago
Unverified
a1f7fdb9dd817b61fba43f1d3ddf4ec33ba64f9d

Update README.md

nnoidontdig committed 10 years ago
Unverified
4767c18c09fca4b899586779f46592fb56614070

Update README

nnoidontdig committed 10 years ago
Unverified
7c213fc55438e9fb29812541b9f48f1e8eebb39a

Update README

nnoidontdig committed 10 years ago
Unverified
a9636ec47493ba94d29d5ffab36c99880a3d79fb

Better comments

nnoidontdig committed 10 years ago

README

The README file for this repository.

Soundmood

ScriptEd Year 2 Curriculum project - Using the Souncloud API

Project description

  • Search: Simply type in the mood you are currently in and a song will be generated based on that mood
  • Hear: We grab all of our songs directly from Soundcloud, so there are millions of selections.
  • Explore: Using Soundmood, you can find hundreds of songs based on unique mood
  • Quantity & Quality: Soundmood has a selection of many different emotions/mood, so good luck entering one that doesn't exist.

#Assignment

####Make Soundmood work! You will need to do the following:

###1) Play a track

Play a track using the Soundcloud API (Reading the Soundcloud documentation will help you figure out how to play a track)

  1. Read the Soundcloud documentation to figure out how to stream (or play) a track
HTTP API GUIDE -> Playing Sounds ->  Streaming sounds
  1. Use SC.stream to play a track
  • Hint: you need to know something about the track
  1. Fill out the playOneTrack() function
  • Hint: don’t forget to add playOneTrack() to document.ready()

###2) Add click handlers

Add a click handler for the #go button -- make the #go button DO something by adding a click handler!

  • Hint: you can use Javascript or jQuery for this
  • Hint: call the click handler playOneTrack() to play a song when you click the button

###3) Find a track based on the user's mood and play it

Find a track based on the user’s mood and play it -- make the click handler play a song based on the user's input!

  1. Fill out the goClicked() function! It should:
  2. Get the user's input from the #mood field
  3. Call searchTracks(mood). * Hint: there are helper methods in script.js that you can use!
  4. Fill out searchTracks(mood)
  5. Read API documentation to find SC.get
  6. Fill out searchTracks() to find the track for the user's mood using SC.get
  7. Make sure to console.log() the response from the API so you can see what it returned!
  8. Get the track's id
  9. Call playTrack(id)
  10. BONUS: Update jumbotron #songtitle to display the song title
  11. Fill out playTrack()
  12. Make sure to keep track of the song you are playing by storing it in currentSong
  13. Play the track for the given id * Hint: look at playOneTrack() for help

###4) Randomization: Make the random button work!

  1. Fill out the moodList array with 10 moods/emotions
  • ex. 'happy', 'sad'
  1. Add #random button click handler
  2. Fill out randomClicked() + randomMood()

###5) Bonus Challenges:

  1. Change the color of the jumbotron to match the user's mood!
  2. Add Bootstrap typeahead to the #mood input field
  3. Find more fun stuff to do with the Soundcloud API!