@tspro/web-music-score
    Preparing search index...

    Class ScaleFactory

    Scale factory class.

    Index

    Constructors

    Properties

    type: ScaleType

    Scale type.

    Methods

    • Get default tonic.

      Returns string

      • Default tonic.
    • Get scale by given tonic.

      Parameters

      • tonic: string

        Tonic (e.g. "C").

      Returns Scale

      • Scale.
    • Get list of tonics (e.g. "C", "C#", ... for Major scale type).

      Returns readonly string[]

      • Array of tonics.
    • Test if this scale factory has scale for given tonic value.

      Parameters

      • tonic: string

        Tonic.

      Returns boolean

      • True/false.