Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MajorMinorChordEncoder

ChordEncoder that outputs a one-hot encoding over major and minor triads.

Hierarchy

Index

Properties

Methods

Properties

depth

depth: number = 1 + 2 * constants.NUM_PITCH_CLASSES

Methods

encode

  • encode(chord: string): Tensor<R1>

encodeProgression

  • encodeProgression(chords: string[], numSteps: number): Tensor<R2>
  • Encode a chord progression over a specified number of steps.

    Parameters

    • chords: string[]

      An array of chord symbol strings.

    • numSteps: number

      Number of steps to use.

    Returns Tensor<R2>

    A 2D tensor containing the encoded chord progression.

Generated using TypeDoc