function IsBlack(v)if v%12==2 or v%12==4 or v%12==7 or v%12==9 or v%12==11 then return true end end function HighlightPianoKey(v)if not Settings.KeyAesthetics then return end local S=math.ceil(v/12)local f=(v-1)%12+1 local H=Keys[S][f]if IsBlack(v)then H.Mesh.Offset=Vector3.new(.02,-0.15,0)else H.Mesh.Offset=Vector3.new(0,-0.05,0)end delay(.5,function()RestorePianoKey(v)end)end function RestorePianoKey(v)local S=math.ceil(v/12)local f=(v-1)%12+1 local H=Keys[S][f]if IsBlack(v)then H.Mesh.Offset=Vector3.new(.02,-0.1,0)else H.Mesh.Offset=Vector3.new(0,0,0)end end


function IsBlack(note)
	if note%12 == 2 or note%12 == 4 or note%12 == 7 or note%12 == 9 or note%12 == 11 then
		return true
	end
end
function HighlightPianoKey(note1)
	if not Settings.KeyAesthetics then return end
	--print("highlight!")
	local octave = math.ceil(note1/12)
	local note2 = (note1 - 1)%12 + 1
	local key = Keys[octave][note2]
	if IsBlack(note1) then
		key.Mesh.Offset = Vector3.new(0.02, -0.15, 0)
	else
		key.Mesh.Offset = Vector3.new(0, -.05, 0)
	end
	delay(.5, function() RestorePianoKey(note1) end)
end
function RestorePianoKey(note1)
	local octave = math.ceil(note1/12)
	local note2 = (note1 - 1)%12 + 1
	local key = Keys[octave][note2]
	if IsBlack(note1) then
		key.Mesh.Offset = Vector3.new(0.02, -0.1, 0)
	else
		key.Mesh.Offset = Vector3.new(0, 0, 0)
	end
end
