Music on Boot Menu?

Home Forums RetroPie Project Ideas for Further Enhancements Music on Boot Menu?

RetroPie has a new website and forum. Please visit https://retropie.org.uk/ for the new site. The new forum is located at https://retropie.org.uk/forum/. This forum is left here as a read-only archive.

This topic contains 9 replies, has 7 voices, and was last updated by Profile photo of labelwhore labelwhore 1 year, 2 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #109997
    Profile photo of alphatech
    alphatech
    Participant

    Would it be possible to have a folder of MP3 files somewhere on the system, then on the boot menu, it would randomly choose one to play and basically create a playlist out of them? I think this would be a cool feature to add to my gaming cabinet. Any help would be appreciated, thanks!

    #110003
    Profile photo of ronoh55
    ronoh55
    Participant

    You mean the system menu or on the splash screen? For the splash screen your best bet would be to make multiple videos (of a static image if that’s all you want) with the music playing, and use the splash screen randomizer (http://blog.petrockblock.com/forums/topic/splashscreen-randomizer/) to pick them randomly.
    If you want it on the systems menu or Emulationstation as a whole, I don’t think it’s currently possible. Hopefully someone who knows more about Linux systems and ES/Retropie as a whole can give more help.

    #110064
    Profile photo of alphatech
    alphatech
    Participant

    Actually, all I was looking for was background music on the system menu, not the splashscreen. The system menu just seems a bit boring, and I’d like to spice it up a bit on my system. If possible, please let me know, thanks.

    #110066
    Profile photo of herbfargus
    herbfargus
    Moderator

    You’d have to recode emulationstation source code and recompile it. I think recalbox has it integrated with their build of emulationstation if you want to try them out.

    #110074
    Profile photo of synack
    synack
    Participant

    One quick way is to run a script in the background checking for the existence of a few processes. The bash script should work if you use all RetroArch emulators, and will play random mp3s in the background until a game is launched.

    #!/bin/bash
    
    while true; do
    
    RA=$(pgrep retroarch)
    ES=$(pgrep emulationstat)
    M123=$(pgrep mpg123)
    
    if [ "$RA" ]; then
      pkill mpg123
    elif [ ! "$RA" ] && [ ! "$M123" ] && [ "$ES" ]; then
      mpg123 -q -Z ~/RetroPie/media/mp3/* &>/dev/null &
    fi
    
    sleep 1
    done
    #110380
    Profile photo of alphatech
    alphatech
    Participant

    Thanks a ton! I added DJ Silenze’s “I Love VGM” track to the boot menu, and I love it!

    #111194
    Profile photo of writerson
    writerson
    Participant

    hi, im a newbie
    could you please guide me a way, how to edit this bash script ?
    how could i add these code? i am trying to open \bin\bash from winSCP, file is not like config files..

    if i use command prompt, after i write all these codes, nothings happening.

    thanks

    #116311
    Profile photo of g0nz0uk
    g0nz0uk
    Participant

    What a great idea, did it work?

    #116512
    Profile photo of labelwhore
    labelwhore
    Participant

    Take a look at what I’m working on. It’s a little more complex than what’s above, but I think I can integrate that into what I’m doing. It may make some things a bit simpler. 🙂

    *Edit: on second thought, the above code looks like it works only with retroarch emulators. I hacked the emulator launch scripts to be more thorough.

    Adding Music To RetroPie (A Work in Progress)

    http://www.th3rdwave.com/tracks/
    ^^ my other hobby

    • This reply was modified 1 year, 2 months ago by Profile photo of labelwhore labelwhore.
    #116515
    Profile photo of labelwhore
    labelwhore
    Participant

    hi, im a newbie
    could you please guide me a way, how to edit this bash script ?
    how could i add these code? i am trying to open \bin\bash from winSCP, file is not like config files..

    if i use command prompt, after i write all these codes, nothings happening.

    thanks

    If you’re editing bash scripts on PC , you need to save the files for a UNIX file system. If you use textpad like I do, the option is on the save as menu.

    http://www.th3rdwave.com/tracks/
    ^^ my other hobby

Viewing 10 posts - 1 through 10 (of 10 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar