1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is it possible for software to detect what song is currently being played?

Discussion in 'General Programming Chat' started by DPatel304, Apr 25, 2013.

  1. DPatel304

    DPatel304 Regular Member

    Joined:
    Nov 11, 2009
    Messages:
    227
    Likes Received:
    31
    Got an idea and just want to know the feasibility of it. I want to be able to run software on any Windows/Mac and have it be able to detect a song that is being played from that machine. The should be able to be played from a variety of programs (iTunes, Spotify, Grooveshark, etc..), and my software could still extract the artist and title.

    My software won't actually play any songs itself, it'll just sorta run in the background and broadcast what is being played.
     
  2. Panther28

    Panther28 Elite Member

    Joined:
    May 2, 2010
    Messages:
    2,274
    Likes Received:
    3,414
    Occupation:
    Internet.
    Location:
    Internet.
  3. DPatel304

    DPatel304 Regular Member

    Joined:
    Nov 11, 2009
    Messages:
    227
    Likes Received:
    31
    Thanks. Heard of that. I'd prefer something that just scrapes the current title of track being played, rather than using sound. By the way, I don't need an existing program that does this, I just want to know if this is something I can do myself by creating an application.
     
  4. ginasims

    ginasims Jr. VIP Jr. VIP Premium Member

    Joined:
    May 19, 2009
    Messages:
    110
    Likes Received:
    31
    So you want to create a program/bot to scrap a song that is being played from a player like itunes or Spotify ? What's your programing background?
     
  5. DPatel304

    DPatel304 Regular Member

    Joined:
    Nov 11, 2009
    Messages:
    227
    Likes Received:
    31
    Well I have a BS in Computer Science and work as a Software Engineer, but still know very little about Programming. This project is partially to help me learn.
     
  6. ginasims

    ginasims Jr. VIP Jr. VIP Premium Member

    Joined:
    May 19, 2009
    Messages:
    110
    Likes Received:
    31
    You have BS in Computer Science and work as Software Engineer and have no programming skills?? How is this possible??
     
  7. DPatel304

    DPatel304 Regular Member

    Joined:
    Nov 11, 2009
    Messages:
    227
    Likes Received:
    31
    I don't know, honestly. I just kinda coasted through college, and learned the bare minimum to be good at what I do. I didn't do a lot of actual programming in college, so I learned a lot of theory, but not practical knowledge. This is one of my attempts to learn practical knowledge.
     
  8. DPatel304

    DPatel304 Regular Member

    Joined:
    Nov 11, 2009
    Messages:
    227
    Likes Received:
    31
    I don't have 'zero programming skills'. I did program and college and program every day at work, it's just always been very inside the box programming. I'm always just trained on the few skills I need and that's all I use all day every day. I've never really had to venture out and create a program from an idea of my own, so this is sorta complex for me, but, with my background, I should be able to pick it up.
     
  9. ginasims

    ginasims Jr. VIP Jr. VIP Premium Member

    Joined:
    May 19, 2009
    Messages:
    110
    Likes Received:
    31
    Well the first thing you need to do is list everything you expect this app of yours to do before anyone here can help. Each type of programming has it pros and cons and there's enough skilled people on here to help narrow down the best way to do this. I personally haven't done any real programming like C++ in over 10 years, I mostly just do scripts and winauto these days. I don't have itunes or spotify on this machine, I do have both on my office computer which I can't get to until tomorrow. I will check them out and see if can help. But the more info you can post here the better.
     
  10. DPatel304

    DPatel304 Regular Member

    Joined:
    Nov 11, 2009
    Messages:
    227
    Likes Received:
    31
    Thanks, I appreciate the help.

    I believe I know the rest of my application is feasible. This was the one thing I wasn't sure about. My end goal is basically an application that runs on Windows/Mac in parallel to a program like iTunes/Spotify/whatever and can output the current song artist and title being played to a website or a complementary cell phone app in real time. If I can figure out how to tell what song is being played and make it work for multiple music players, I'm confident that I can do the rest. Sorry if I'm being vague, I'd just prefer not to give too much information out about my idea, in case it actually happens to be a decent, original idea.

    Thanks in advance.
     
  11. ginasims

    ginasims Jr. VIP Jr. VIP Premium Member

    Joined:
    May 19, 2009
    Messages:
    110
    Likes Received:
    31
    Ok tried both Itunes and Spoify and can't copy, export or print any information about tracks or playlist, so my automation software will not work. I did find out you can interact with itunes with the Apple Scripting Bridge, but that limits you to apple devices so no PC. I also found a program that's very similar to what your wanting to do called Tunatic.

    Search google for these items in quotes:

    "Tunatic (App Review)"

    "dougscripts"

    "About Scripting Bridge"

    Post your thoughts after you've looked at these.