What primarily determines whether madd alif sounds heavy?

Alif, Waw and Ya: Types of Madd and Special Hamzah Rules