Menu sounds

Hi, I'd like the menu in my game to have a different sound effect when opening and closing the menu than the normal OK or Cancel sounds. One sound effect for opening the menu, another for when the menu is closed. Are there any existing scripts that do this already? I only found one that lets me change the sound of opening the menu, but not closing it.


Edit: Sorry, did not mean to double post.
You can change sound effects in the systems tab in the Database.


You can listen to a sound to make sure its the one you want to change...


Have fun making! ^w^
You can change sound effects in the systems tab in the Database.

I know I can change it in the systems tab. I want different sound effects just for opening and closing the menu, while keeping the OK and Cancel sounds the same.
Insert this little snippet right below the default scripts:

Spoiler
class Scene_Map < Scene_Base

def call_menu
# Menu open SE: RPG::SE.new("file name", volume, pitch).play
RPG::SE.new("Absorb1", 80, 100).play
SceneManager.call(Scene_Menu)
Window_MenuCommand::init_command_position
end

end

class Window_MenuCommand < Window_Command

def process_cancel
# Menu cancel SE: RPG::SE.new("file name", volume, pitch).play
RPG::SE.new("Absorb2", 80, 100).play
Input.update
deactivate
call_cancel_handler
end

end



Edit the file names, volume and pitch how you want in the script. 

Original thread: https://forums.rpgmakerweb.com/threads/menu-sounds.65923/