Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MelodyConverter

Hierarchy

Index

Constructors

constructor

Properties

FIRST_PITCH

FIRST_PITCH: 2 = 2

NOTE_OFF

NOTE_OFF: 1 = 1

NUM_SPLITS

NUM_SPLITS: number = 0

SEGMENTED_BY_TRACK

SEGMENTED_BY_TRACK: boolean = false

depth

depth: number

endTensor

endTensor: tf.Tensor1D

ignorePolyphony

ignorePolyphony: boolean

maxPitch

maxPitch: number

minPitch

minPitch: number

numSegments

numSegments: number

numSteps

numSteps: number

Methods

tensorSteps

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

toNoteSequence

  • toNoteSequence(oh: tf.Tensor2D, stepsPerQuarter?: number, qpm?: number): Promise<NoteSequence>

toTensor

  • toTensor(noteSequence: INoteSequence): tf.Tensor2D

Generated using TypeDoc