Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MelodyRhythm

Rhythm control signal. Extracts a depth-1 tensor indicating note onsets.

Hierarchy

  • MelodyRhythm

Implements

Index

Properties

Methods

Properties

depth

depth: 1 = 1

Methods

extract

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

    Parameters

    • melody: Melody

      Melody object from which to extract rhythm.

    Returns Tensor<R2>

    An n-by-1 2D tensor containing the melody rhythm, with 1 in steps with a note onset and 0 elsewhere.

Generated using TypeDoc