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

    Function scaleSystemOf

    • The system a scale belongs to.

      A name — canonical or an alias — is answered exactly: 'nahawand' is a maqam even though its mask is the natural minor's. A KeyScale carries no tradition, so it is answered by its mask, under the Western reading of that mask; a mask that is no built-in scale answers undefined.

      Parameters

      Returns ScaleSystem | undefined

      The system, or undefined for a mask that names no built-in scale.

      If scale is a string naming no built-in scale. An unknown name is a typo, and answering it the way an unrecognised mask is answered would hide that.

      import { scaleSystemOf, majorKey } from '@libraz/libcantus';
      scaleSystemOf('harmonicMinor'); // 'common-practice'
      scaleSystemOf('dorian'); // 'modal'
      scaleSystemOf('hijaz'); // 'non-functional'
      scaleSystemOf(majorKey(0)); // 'common-practice'