TMC is an independent, primarily volunteer organization that relies on ad revenue to cover its operating costs. Please consider whitelisting TMC on your ad blocker or making a Paypal contribution here: paypal.me/SupportTMC

Music Randomizer - Making random playlists on your USB drive

Discussion in 'Model S: User Interface' started by andykellr, Sep 4, 2014.

  1. andykellr

    andykellr New Member

    Joined:
    Feb 28, 2013
    Messages:
    3
    Location:
    Grand Rapids, MI
    I have a ton of music and I really missed being able to shuffle when listening to music in my car. I created a workaround that has worked well for me.

    It's an App for the Mac called Music Randomizer that randomizes music on a USB drive using random folder numbers and file prefixes.

    http://andykellr.github.io/music-randomizer/


    As I mentioned in a Tesla forum thread last week, my wife and I just had a baby girl and I took a short hiatus from my work at http://tractionsoftware.com. I wanted to write some code using the Swift language and this was big enough to be interesting but small enough to manage as we adapt to having two little ones.
     
  2. araxara

    araxara S-P85#3,218 X-90D#3,299

    Joined:
    May 11, 2012
    Messages:
    692
    Location:
    Tucson, AZ
    Thanks for providing this. Although I have not tried it out, I did check-out the version from Github. It needs some small changes to compile with the latest version of Xcode6 (Beta7). I can push the changes back in, but I have not tried them out.
     
  3. omarsultan

    omarsultan Active Member

    Joined:
    Jun 22, 2013
    Messages:
    1,496
    Location:
    Northern California
    I installed it after Andy first posted about it not he Tesla site--works great and makes it much more fun to listen to music off my USB stick.
     
  4. andykellr

    andykellr New Member

    Joined:
    Feb 28, 2013
    Messages:
    3
    Location:
    Grand Rapids, MI
    Thanks Omar.

    araxara, I just pushed the changes for Beta7. Since the runtime is embedded in the release, I didn't create a new release, but if you want to run from source in Beta7 you should be good now. Note that there's some unused code around (e.g. PlaylistParser.swift) from when I was originally copying from an iTunes XML playlist and I would probably reorganize things slightly. Swift is pretty great. The foreground/background functions in main.swift are kinda fun.
     
  5. jerry33

    jerry33 S85 - VIN:P05130 - 3/2/13

    Joined:
    Mar 8, 2012
    Messages:
    12,763
    Location:
    Texas
    Sounds like what we need. Thanks for taking the time to do this. RFE: A rating system to play some songs more than others.
     
  6. ZBB

    ZBB Emperor

    Joined:
    Feb 27, 2013
    Messages:
    1,419
    Location:
    Scottsdale
    Thanks for a great little app! I just tried it out -- really like your simple approach to just re-naming and organizing the music already on the USB stick.

    Congrats on becoming a father!
     
  7. RichardL

    RichardL Member

    Joined:
    Oct 6, 2013
    Messages:
    404
    Location:
    San Carlos, California
    I am using this and it works very well - very simple approach. However, in folder mode I gather it doesn't bother reading metadata except song name - no artist, no album, no cover art. Is that correct?

    Now that we have 6.0 with no apparent improvement (as far as I have heard), perhaps the only way to get both shuffle and metadata is to use a tool that applies a randomized prefix to the song name tag within the file (or copy of the file) - a kludge, but that should do the trick I think
     
  8. RichardL

    RichardL Member

    Joined:
    Oct 6, 2013
    Messages:
    404
    Location:
    San Carlos, California
    #8 RichardL, Sep 11, 2014
    Last edited: Sep 11, 2014
    So I was able to use the MP3Tag program, which has all kinds of re-tagging capabilities, to prefix each song title with a random number - for instance '[07345] Like it is'. By doing this is will now play all the songs in the sequence set by the numbers.

    In addition it will show the artist and album tags as before.

    However, the album art seems to be searched primarily from the song title - so even though all my songs have album art included, and it is showing the artist and album, it still displays no art because of the prefixed number, which kills a match :mad:

    If anybody is interested in the scripting to achieve this, I will happily share it.

    ------Update------

    After forcing the car to re-cache (by moving everything into a new directory) the album art now shows - so now I have shuffled music, with artist, album and art all showing! I will post my method later
     

Share This Page