timespan_2_contains_timespan_1_improperly

timespantools.timespan_2_contains_timespan_1_improperly(timespan_1=None, timespan_2=None, hold=False)

Makes time relation indicating that timespan_2 contains timespan_1 improperly.

>>> import abjad
>>> relation = abjad.timespantools.timespan_2_contains_timespan_1_improperly()
>>> f(relation)
abjad.TimespanTimespanTimeRelation(
    inequality=abjad.CompoundInequality(
        [
            abjad.TimespanInequality('timespan_2.start_offset <= timespan_1.start_offset'),
            abjad.TimespanInequality('timespan_1.stop_offset <= timespan_2.stop_offset'),
            ],
        logical_operator='and',
        ),
    )
>>> staff = abjad.Staff(
...     r"c'8. \p \< fs'16 a'4 af'8 \f \> g'8 ~ g'16 f' e' ef' \p",
...     )
>>> timespan_1 = abjad.Timespan((1, 4), (3, 8))
>>> show(staff) 
>>> offset_lists = staff[:]._get_offset_lists()
>>> time_relation = abjad.timespantools.timespan_2_contains_timespan_1_improperly(timespan_1=timespan_1)
>>> start_index, stop_index = time_relation.get_offset_indices(*offset_lists)
>>> selected_notes = staff[start_index:stop_index]
>>> selected_notes
Selection([Note("a'4")])
>>> abjad.label(selected_notes).color_leaves('red')
>>> show(staff) 

Returns time relation or boolean.