@libraz/libcantus - v1.1.0
    Preparing search index...

    Type Alias PartWritingOptions

    Options controlling checkPartWriting.

    type PartWritingOptions = {
        ranges?: VoiceRange[];
        maxSpacing?: number;
    }
    Index
    ranges?: VoiceRange[]

    Per-voice ranges, ascending (index 0 = lowest), against which the range rule is judged. Defaults to SATB_RANGES for a four-voice exercise; for any other voice count there is no conventional compass to assume, so the rule is skipped unless ranges are given. Given ranges must cover every voice of the widest chord, and each must be finite with min no greater than max.

    maxSpacing?: number

    Maximum spacing in semitones between adjacent upper voices. The bass-tenor pair is exempt, as convention has it. Must be finite and non-negative.

    12