Trying to preset the sound volume on startup

Godot Version

4.5.1.stable

Question

The volume slider works correctly, but I am trying to add code so the slider is preset at 50% when the game starts. However, I don’t know what lines of code is necessary to do that. Below is the code I have so far:

extends HSlider

@export var audio_bus_name := "Master"
@onready var _bus := AudioServer.get_bus_index(audio_bus_name)

func _ready():
	value = db_to_linear(AudioServer.get_bus_volume_db(_bus))

func _on_value_changed(_value: float):
	AudioServer.set_bus_volume_db(AudioServer.get_bus_index("Master"), linear_to_db(value))

Set both, slider value and bus volume in _ready()