Changing Audio Pitch based on collider position

OK, so I’ve been experimenting with Udon, and am loving it so far - difficult for someone that doesn’t do programming stuff regularly, but easier than writing it all out from scratch!

But, I’ve been trying to set up a little experiment project and ran into a problem: how would I go about changing the pitch of a looping audio segment based on the position of a collision Trigger? So far I’ve got it playing (nodes below) but I have no idea how the Pitch node works, and I haven’t even thought about the collider position math yet…

Note: the top Trigger Event should have been hooked up, but I didn’t notice until after I took the screenshot and couldn’t be bothered to fix it. =P