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

    Function requireScaleMask

    • The mask of a named scale, rejecting an unknown name.

      Every public entry point that takes a scale name funnels through here, so a typo is reported the same way everywhere instead of being answered with an empty result that also means "this scale has none".

      Parameters

      • name: ScaleNameInput

        The scale name.

      • label: string = 'scale'

        What the name is, for the error message.

      Returns number

      The 12-bit mask.

      If the name is not a built-in scale.