pub fn offset_end(
offset: FloatType,
length: FloatType,
spacing: FloatType,
tied: Tied,
) -> (FloatType, FloatType)Expand description
Where a note’s bar starts and how long it is drawn, a little short of
its length so untied notes stand apart: music21’s
OffsetEndAxis.extractOneElement.
use music21::graph::axis::{Tied, offset_end};
assert_eq!(offset_end(1.0, 0.5, 0.0625, Tied::Not), (1.0, 0.4375));
assert_eq!(offset_end(1.0, 0.5, 0.0625, Tied::Onward), (1.0, 0.5));