@make_duration_tab()
@make_duration_tab(start:numeric)
@make_duration_tab(start:numeric, stop:numeric)
returns a tab whose ith element is the duration in beats the ith musical event in the score.
Called with no arguments, the events considered are all the events in
the score. With a start
, only the events whose position in beats is
greater than start
are considered. If a stop
is specified, all
events must have a position in beats between start
and stop
. Grace
events do not appear in the tab.
Examples:
NOTE D6 1
NOTE C7 0
NOTE D6 1/2
NOTE C7 1/5
CHORD (D1 A7 Eb7) 1/8
Trill (CC6 D7 A7) 1/8 event6
@make_duration_tab
returns:
TAB[1.0, 0.5, 0.2, 0.125, 0.125]
Function @make_bpm_tab can be used to get the information necessary to translate the relative duration in absolute duration.
See also Score Introspection
[@always_next_event_except_sil_pos] @bach_score @current_event @event_label_position @make_bpm_map @make_bpm_tab @make_duration_map @make_duration_tab @make_label_bpm @make_label_duration @make_label_pitches @make_label_pos @make_pitch_tab @make_score_map [@next_event_except_sil_pos] [@next_event_with_sil_pos] [@next_sil_pos] @optional_attributes @performance_data @score_duration @score_tempi @specified_duration