staffOffsetToStep static method
Converts staff position to a scale step.
This method should not be used directly as it doesn't account for clef and accidentals. Use Clef.staffPositionToPitch instead.
Implementation
static Step staffOffsetToStep(int offset) {
int adjustedOffset = offset;
while (adjustedOffset < 0) {
adjustedOffset += _staffOffsetToStep.length;
}
return _staffOffsetToStep[adjustedOffset % _staffOffsetToStep.length];
}