How do I pitch piano keys correctly?

I’m trying to make a piano. But i’m having trouble pitching notes correctly.

image

I am using pitch shift for every sound but it doesn’t work all that well. Does anyone know how to pitch each note correctly?

1 Like

Perhaps you can try using Sound PlaybackSpeed on the properties.

1 Like

The formula for pitch shifting is

local pitch = 1 + math.pow(2, n/12)

swap n with how many semitones you want to pitch up the note