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

    Function pickProgressionPreset

    • The preset generateProgression would choose for a style and seed.

      The choice is otherwise invisible: the generator returns chords, not the preset it drew them from, so a caller who wants to show or reproduce it has no way to name it.

      Parameters

      • style: "rock" | "minimal" | "dance" | "idol"

        The style pool to choose from.

      • ctx: GenerationContextInput = 0

        The same context the generator would be given, or the seed alone.

      Returns ProgressionPreset

      The preset that context selects.

      If no preset claims the style.

      import { pickProgressionPreset } from '@libraz/libcantus';
      pickProgressionPreset('dance', 3).name;