The tube length has an inverse relationship with pitch:
Tube length also affects timbre: longer tubes produce mellower, more resonant tones; shorter tubes yield brighter, more piercing sounds. Instrument makers carefully design tube length for desired pitch range and tone color.