Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DataConverter

Abstract DataConverter class for converting between Tensor and NoteSequence objects. Each subclass handles a particular type of musical sequence e.g. monophonic melody or (a few different representations of) drum track.

Hierarchy

Index

Constructors

constructor

Properties

NUM_SPLITS

NUM_SPLITS: number = 0

SEGMENTED_BY_TRACK

SEGMENTED_BY_TRACK: boolean = false

Abstract depth

depth: number

Abstract endTensor

endTensor: tf.Tensor1D

numSegments

numSegments: number

numSteps

numSteps: number

Methods

tensorSteps

  • tensorSteps(tensor: tf.Tensor2D): tf.Scalar

Abstract toNoteSequence

  • toNoteSequence(tensor: tf.Tensor2D, stepsPerQuarter?: number, qpm?: number): Promise<INoteSequence>
  • Parameters

    • tensor: tf.Tensor2D
    • Optional stepsPerQuarter: number
    • Optional qpm: number

    Returns Promise<INoteSequence>

Abstract toTensor

  • toTensor(noteSequence: INoteSequence): tf.Tensor2D

Generated using TypeDoc