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

    Function instrumentRange

    • The lowest and highest pitch an instrument sounds.

      For a string instrument this is derived from the tuning and the fret count, never stored; for a kit it is the extent of the voices the player's limbs reach. The range is not necessarily gapless — use canSound to ask about one pitch.

      Parameters

      Returns { low: number; high: number }

      The extreme sounding pitches, inclusive.

      import { BASS_5_STRING, instrumentRange } from '@libraz/libcantus';
      instrumentRange(BASS_5_STRING).low; // 23, low B