--[[
AnimateKey(note1,px,py,pz,ox,oy,oz,Time)
--note1(1-61), position x, position y, position z, orientation x, orientation y, orientation z, time

local obj = --object or gui or wahtever goes here
local Properties = {}
Properties.Size = UDim2.new()
Tween(obj,Properties,2,true,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false)
--Obj,Property,Time,wait,Easingstyle,EasingDirection,RepeatAmt,Reverse
]]


function HighlightPianoKey(note1,transpose)
	if not Settings.KeyAesthetics then return end
	local octave = math.ceil(note1/12)
	local note2 = (note1 - 1)%12 + 1
	local key = Piano.Keys.Keys:FindFirstChild(note1)
	local emitter = Piano.Case.ParticleEmitters:FindFirstChild(note1)
	if key and emitter then
		local obj = key
		local Properties = {}
		emitter.ParticleEmitter:Emit(1)
		if IsBlack(note1) then
			key.Material = "Neon"
			Properties.Color = Color3.fromRGB(70, 158, 44)
			Tween(obj,Properties,.15,true,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false)
			key.Material = "Neon"		
		else
			key.Material = "Neon"
			Properties.Color = Color3.fromRGB(106, 255, 106)
			Tween(obj,Properties,.15,true,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false)
			key.Material = "Neon"
		end
		Properties = {}
		Properties.Color = Color3.fromRGB(130, 130, 130)
		Tween(obj,Properties,.05,true,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false)
		key.Material = "SmoothPlastic"
	else
		print(note1..' was not found as either a key or emitter or both')
	end
	return
end
