• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login

Background Music [Continued from Help/Support]

Scheduled Pinned Locked Moved General Discussion and Gaming
musicbgm
343 Posts 109 Posters 325.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    backstander @ExarKunIv
    last edited by 3 Apr 2017, 19:48

    @ExarKunIv
    Just a note...make sure it is in all lowercase like "drastic"...also I'm not 100% sure that's what the process name is for DraStic. Whatever the actually process name is, that is what needs to be put in the script in the "emulatornames =" line.

    E 1 Reply Last reply 3 Apr 2017, 20:10 Reply Quote 0
    • B
      Brigane @backstander
      last edited by 3 Apr 2017, 20:06

      @backstander lol, I think I would've driven around by myself to get the attention instead :D

      Systems: Raspberry Pi 0/2/3 Model B+
      Os: RetroPie 4.5
      Frontend: Emulationstation & Attract Mode

      1 Reply Last reply Reply Quote 1
      • E
        ExarKunIv @backstander
        last edited by ExarKunIv 4 Mar 2017, 21:11 3 Apr 2017, 20:10

        @backstander

        yep i know,
        i have it both ways, for sh#t and giggles

        and i checked the runcommand.log
        the it comes up with nds and then drastic right after.

        some games the music.py script does not see. so far i know of three

        RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
        RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
        Maintainer of RetroPie-Extra .

        1 Reply Last reply Reply Quote 1
        • T
          tmak @backstander
          last edited by 4 Apr 2017, 02:01

          @backstander

          Hey, thanks for the tip. I did exactly what you said added "drastic" As the very last name In the emulator name list in music.py and it works! :)
          I used
          Sudo mc to locate the file then
          nano to edit it.

          So far I have tried new super Mario world and surfs up, and the music shuts down.

          Now I won't be keeping my gf up at 4am with that antikdote track hahaha.

          My next issue, is for some reason the file doesn't save in New super Mario world. I gotta search through the forums for that.

          1 Reply Last reply Reply Quote 1
          • T
            tmak @ExarKunIv
            last edited by 4 Apr 2017, 02:03

            @ExarKunIv

            Hey, it worked for me. I'm using the latest Retro pie script. And latest version of drastic. Try that maybe.

            B 1 Reply Last reply 4 Apr 2017, 02:41 Reply Quote 0
            • B
              backstander @tmak
              last edited by 4 Apr 2017, 02:41

              @ExarKunIv
              Maybe try added "drastic" as the very last emulator on the list like @tmak did?

              E 1 Reply Last reply 4 Apr 2017, 14:01 Reply Quote 0
              • E
                ExarKunIv @backstander
                last edited by ExarKunIv 4 Apr 2017, 15:10 4 Apr 2017, 14:01

                @backstander

                i know that im running 4.2.1 now, and i have "drastic" as the last one...but i don't think i updated the emulator. ill give that a shot

                EDIT
                ok weird it is now working. all i did was move "drastic" to be the first game in the list

                RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                Maintainer of RetroPie-Extra .

                1 Reply Last reply Reply Quote 0
                • A
                  anasazi29 @dragon3gabriel
                  last edited by 19 Apr 2017, 17:39

                  @dragon3gabriel Hey man. There is alot to read with over 200 posts on this particular subject, but I was wondering if you found out how to get the BGM script to mute the sound when using the PPSSPP emulator? I did. In the script under emulators just put in "PPSSPPSDL" and reboot.
                  The emulators execution is that name and causes the script to acknowledge and mute accordingly.

                  Thanks,
                  Anasazi

                  T 1 Reply Last reply 5 Oct 2018, 21:13 Reply Quote 0
                  • R
                    RaoulAngel
                    last edited by 21 Apr 2017, 13:06

                    So I am just seeing all this for the first time. I am putting together an NES classic styled project, that uses this script to play menu music, but I was wondering if there is a way to (from a menu or something) select the music playing as a choice. Some people might not want to have it. I am planning on giving these away at functions and meetings and stuff for people to enjoy, and trying to tweak the thing to make it as idiot-proof as possible. I would like to remove any configuration menus and such but also somehow give the user a way to toggle to menu music off if they choose.

                    Any ideas?

                    1 Reply Last reply Reply Quote 0
                    • V
                      vinnyl69 @Livewire
                      last edited by 3 May 2017, 01:15

                      @Livewire
                      @Livewire

                      re: Background Music [Continued from Help/Support] coolcv

                      hello! the background music does not turn off when going into coolcv for colecovision games. i have read that sometimes emulators need to be added to the emulator list for this to work. can you give some guidance on finding this 'list'?? thanks!!

                      B M 2 Replies Last reply 3 May 2017, 13:42 Reply Quote 0
                      • B
                        backstander @vinnyl69
                        last edited by backstander 5 Mar 2017, 14:43 3 May 2017, 13:42

                        @vinnyl69
                        https://retropie.org.uk/forum/post/68239
                        You would need to edit your music.py script and add coolcv_pi (or whatever the emulator's process name is) to the "emulatornames" list:

                        #TODO: Fill in all of the current RetroPie Emulator process names in this list.
                        emulatornames = ["retroarch","ags", ........ ,"coolcv_pi"]
                        

                        I've had better results added them to the end of the list.

                        V 1 Reply Last reply 3 May 2017, 17:39 Reply Quote 0
                        • V
                          vinnyl69 @backstander
                          last edited by 3 May 2017, 17:39

                          @backstander
                          worked! was a lot more simple than i thought.... did not realize the file could be opened in notepad. thank you!!!!!!!!!!!!!!!!!!!!!!

                          1 Reply Last reply Reply Quote 1
                          • E
                            edmaul69 @Livewire
                            last edited by 6 May 2017, 15:37

                            @Livewire i cannot get the music to stop in coolcv by adding it to line 25. ive tried ,"coolcv" ,"coleco" and ,"colecovision"to no avail.

                            B 1 Reply Last reply 8 May 2017, 18:01 Reply Quote 0
                            • B
                              backstander @edmaul69
                              last edited by 8 May 2017, 18:01

                              @edmaul69

                              @Livewire i cannot get the music to stop in coolcv by adding it to line 25. ive tried ,"coolcv" ,"coleco" and ,"colecovision"to no avail.

                              Did you try "coolcv_pi"? Make sure you have the "_pi" after "coolcv".

                              1 Reply Last reply Reply Quote 0
                              • X
                                x5PUDx
                                last edited by 3 Jun 2017, 19:44

                                I had to make an edit to rc.local for my PS3 controller to work and my BGM has stopped working, just wondering if someone could give this a once over and point me in the right direction.

                                if [ "$_IP" ]; then
                                  printf "My IP address is %s\n" "$_IP"
                                fi
                                (sudo python /home/pi/RetroPie/roms/music/script/retropie_bgm.py) &
                                sixad --start &
                                exit 0
                                E 1 Reply Last reply 5 Jun 2017, 14:50 Reply Quote 0
                                • E
                                  ExarKunIv @x5PUDx
                                  last edited by ExarKunIv 6 May 2017, 15:50 5 Jun 2017, 14:50

                                  @x5PUDx

                                  try moving sixad to be before your music script

                                  like this

                                  if [ "$_IP" ]; then
                                    printf "My IP address is %s\n" "$_IP"
                                  fi
                                  
                                  sixad --start &
                                  
                                  (sudo python /home/pi/RetroPie/roms/music/script/retropie_bgm.py) &
                                  
                                  exit 0
                                  

                                  thats all i got, i dont use a ps3 controller so i cant try it out

                                  RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                                  RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                                  Maintainer of RetroPie-Extra .

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    Muddyhardcore
                                    last edited by 8 Jun 2017, 02:27

                                    Went through this entire thread and not a single person simply answered the question of how to get Music to STOP playing when launching something from Ports or in my case Launching Kodi from its own system menu. Could anyone just give simple instructions on what lines to add to where?

                                    Pi 3, Retropie 4.2.7, 128GB SanDisk SD , CanaKit 5.1v Power Supply, 8bitdo NES30,

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      Muddyhardcore
                                      last edited by 8 Jun 2017, 02:30

                                      Where on the system is Music.py located?

                                      Pi 3, Retropie 4.2.7, 128GB SanDisk SD , CanaKit 5.1v Power Supply, 8bitdo NES30,

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        Muddyhardcore @vinnyl69
                                        last edited by 8 Jun 2017, 03:09

                                        @vinnyl69
                                        Did you ever get an answer on the how add an emulator (in my case Kodi as it's own system) to stop the background music when it's launched?

                                        Pi 3, Retropie 4.2.7, 128GB SanDisk SD , CanaKit 5.1v Power Supply, 8bitdo NES30,

                                        1 Reply Last reply Reply Quote 0
                                        • E
                                          ExarKunIv
                                          last edited by 8 Jun 2017, 13:34

                                          @Muddyhardcore

                                          to get kodi to stop it is a two part thing. one you need to make sure that it is added to the list of systems that the music script is looking for, that is if you are useing the way that @Livewire made.

                                          that list is on line 25 of the script.

                                          and if you followed the steps to make kodi its own system you need to change one thing.

                                          when you make the kodi.sh you need to change this

                                          #!/bin/bash
                                          sudo Kodi
                                          

                                          to this

                                          #!/bin/bash
                                          "/opt/retropie/supplementary/runcommand/runcommand.sh" 0 _PORT_ "kodi" ""
                                          

                                          once that is done it will music will stop

                                          RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                                          RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                                          Maintainer of RetroPie-Extra .

                                          M 1 Reply Last reply 8 Jun 2017, 16:01 Reply Quote 1
                                          • First post
                                            Last post

                                          Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                          Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.

                                            This community forum collects and processes your personal information.
                                            consent.not_received