There are more possible situations which influence where the new label
will be set.
a) New boundary into the existing interval (the most common situation):
The interval is splitted into two parts. The left preserves the label
of the original interval, the right is set to the new (optional) label.
b) On the left of existing interval (i.e., enlarging the tier size):
The new interval starts with the new boundary and ends at the start
of originally first existing interval. The label is set to the new
interval.
c) On the right of existing interval (i.e., enlarging the tier size):
The new interval starts at the end of originally last existing
interval and ends with the new boundary. The label is set to the new
interval.
This is somewhat different behaviour than in a) and b) where the new
label is set to the interval which is on the right of the new
boundary. In c), the new label is set on the left of the new boundary.
But this is the only logical possibility.
It is a nonsense to insert a boundary between existing intervals to a
position where there is no interval. This is against the basic logic of
Praat interval tiers where, at the beginning, there is one large empty
interval from beginning to the end. And then, it is divided to smaller
intervals by adding new boundaries. Nevertheless, if the TextGrid is
created by external programmes, you may rarely find such discontinuities.
In such a case, at first, use the tgRepairContinuity()
function.