tonalitytools.is_neighbor_note

abjad.tools.tonalitytools.is_neighbor_note.is_neighbor_note(note)[source]

New in version 2.0.

True when note is preceeded by a stepwise interval in one direction and followed by a stepwise interval in the other direction. Otherwise false.

abjad> from abjad.tools import tonalitytools
abjad> t = Staff("c'8 d'8 e'8 f'8")
abjad> for note in t:
...     print '%s\t%s' % (note, tonalitytools.is_neighbor_note(note))
...
c'8     False
d'8     False
e'8     False
f'8     False

Return boolean.

This Page