Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "core/data"

Module containing functionality for creating and using DataConverter objects that convert between tensors and NoteSequences. A DataConverter is created from a ConverterSpec (typically read from JSON) that specifies the converter type and optional arguments.

license

Copyright 2018 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Type aliases

ConverterSpec

Interface for JSON specification of a DataConverter.

property

type The name of the DataConverter class.

property

args Map containing values for argments to the constructor of the DataConverter class specified above.

Variables

Const DEFAULT_DRUM_PITCH_CLASSES

DEFAULT_DRUM_PITCH_CLASSES: number[][] = [// bass drum[36, 35],// snare drum[38, 27, 28, 31, 32, 33, 34, 37, 39, 40, 56, 65, 66, 75, 85],// closed hi-hat[42, 44, 54, 68, 69, 70, 71, 73, 78, 80],// open hi-hat[46, 67, 72, 74, 79, 81],// low tom[45, 29, 41, 61, 64, 84],// mid tom[48, 47, 60, 63, 77, 86, 87],// high tom[50, 30, 43, 62, 76, 83],// crash cymbal[49, 55, 57, 58],// ride cymbal[51, 52, 53, 59, 82]]

Functions

converterFromSpec

  • Builds a DataConverter based on the given ConverterSpec.

    Parameters

    Returns DataConverter

    A new DataConverter object based on spec.

Generated using TypeDoc