Modular Synth Attack Time controlled by Spheres location

Hi guys

I’m currently trying to build a synthesizer inside of Unreal for my University dissertation.
At the moment, I’m trying to build an envelope that can be controlled by pushing shapes around in the level space.
I’ve got a sphere in a sort of bowling alley, and I want its location to give integer data that can be fed in to the Set Attack Time blueprint.
Any ideas? Screenshots attached.
Thanks a lot