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

    Function assertDegree

    • Require a bounded scale/chord degree, counted from 1 the way musicians count degrees: 1 is the tonic, 5 the dominant. Zero and negative degrees name no degree at all and are rejected.

      Parameters

      • value: number
      • name: string = 'degree'

      Returns number