notes_and_chords_are_in_range

instrumenttools.notes_and_chords_are_in_range(expr)

Is true when notes and chords in expr are within traditional instrument ranges.

Todo

Move to WellformednessManager.

Example 1. In range:

>>> staff = Staff("c'8 r8 <d' fs'>8 r8")
>>> violin = instrumenttools.Violin()
>>> attach(violin, staff)
>>> show(staff) 
>>> instrumenttools.notes_and_chords_are_in_range(staff)
True

Example 2. Out of range:

>>> staff = Staff("c'8 r8 <d fs>8 r8")
>>> violin = instrumenttools.Violin()
>>> attach(violin, staff)
>>> show(staff) 
>>> instrumenttools.notes_and_chords_are_in_range(staff)
False

Returns true or false.