Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ChordEncoder

Abstract ChordEncoder class for converting chord symbols to tensors.

Hierarchy

Index

Properties

Methods

Properties

Abstract depth

depth: number

Methods

Abstract encode

  • encode(chord: string): tf.Tensor1D

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