Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MelodyRegister

Register control signal. Extracts a tensor with one-hot register indicator, constant across time steps.

Hierarchy

  • MelodyRegister

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

boundaryPitches

boundaryPitches: number[]

depth

depth: number

Methods

extract

  • extract(melody: Melody): Tensor<R2>
  • Extract the register from a Melody object.

    Parameters

    • melody: Melody

      Melody object from which to extract register.

    Returns Tensor<R2>

    An n-by-depth 2D tensor containing the one-hot encoded melody register, constant across time steps.

Generated using TypeDoc