The heart tube undergoes regional differentiation to form the primitive atria and ventricles. This process involves the formation of septa, which partition the heart into four chambers. The atrial septum and the ventricular septum arise from the growth and fusion of endocardial cushions.