Tune sound with music?

How would I tune my electricity sound with music? Im making a musical tesla coil, here is how detuned it is

here is how i set the pitch for the electricity sound:

while wait() do
	if script.Parent.Parent.Parent.Lightning.music.PlaybackLoudness < 610 then script.Parent.Playing = false else if script.Parent.Playing == false then script.Parent:Play() end end
	script.Parent.Pitch = script.Parent.Parent.Parent.Lightning.music.PlaybackLoudness / 400
end