Changing the octave will change the pitch of a note. Below are two C notes played one octave above middle C and one C note played two octaves above middle C:
You can also wire in a 'play any note' function and wire in the frequency and duration of the note to be played:
See the question "Create an echo-locator" for a great example of how to use change of pitch to your advantage.