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

    Function selectVocabulary

    • Every entry of a dictionary that answers a query, in dictionary order.

      Order is preserved so a selection made from the result is reproducible: the same dictionary and the same query always offer the same candidates in the same positions.

      Type Parameters

      • T

      Parameters

      Returns Vocabulary<T>[]

      The matching entries, in the order they appear in the dictionary.

      import { BASS_LICKS, selectVocabulary } from '@libraz/libcantus';
      const candidates = selectVocabulary(BASS_LICKS, { genre: 'motown', difficulty: 3 });