What determines the pitch of the sound produced in wind and brass instruments?

What determines the pitch of the sound produced in wind and brass instruments?