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

    Function toStringedProfile

    • Resolve any instrument-shaped value to a plain StringedProfile.

      What toInstrumentProfile is for an entry point that reads any instrument, this is for one that only has a neck to work with: a bass line placed on strings and frets cannot be written for a kit, and saying so by name is more use than a missing tuning surfacing later as a note the generator could not place.

      Parameters

      • value: InstrumentProfileLike

        A plain profile, or a value whose toJSON returns one.

      • name: string = 'instrument'

        What the instrument is called in an error message.

      Returns ValidatedStringedProfile

      The validated profile, narrowed to the stringed family.

      If the value names no instrument, or names one with no strings.