How is pitch controlled by frequency?