Search
Preparing search index...
The search index is not available
@magenta/music - v1.23.1
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
"core/data"
DrumsConverter
Class DrumsConverter
Hierarchy
DataConverter
DrumsConverter
DrumRollConverter
DrumsOneHotConverter
Index
Constructors
constructor
Properties
NUM_
SPLITS
SEGMENTED_
BY_
TRACK
depth
end
Tensor
num
Segments
num
Steps
pitch
Classes
pitch
ToClass
Methods
tensor
Steps
to
Note
Sequence
to
Tensor
Constructors
constructor
new
Drums
Converter
(
args
:
DrumsConverterArgs
)
:
DrumsConverter
Parameters
args:
DrumsConverterArgs
Returns
DrumsConverter
Properties
NUM_
SPLITS
NUM_
SPLITS
:
number
= 0
SEGMENTED_
BY_
TRACK
SEGMENTED_
BY_
TRACK
:
boolean
= false
depth
depth
:
number
end
Tensor
end
Tensor
:
tf.Tensor1D
num
Segments
num
Segments
:
number
num
Steps
num
Steps
:
number
pitch
Classes
pitch
Classes
:
number
[]
[]
pitch
ToClass
pitch
ToClass
:
Map
<
number
,
number
>
Methods
tensor
Steps
tensor
Steps
(
tensor
:
tf.Tensor2D
)
:
tf.Scalar
Parameters
tensor:
tf.Tensor2D
Returns
tf.Scalar
to
Note
Sequence
to
Note
Sequence
(
oh
:
tf.Tensor2D
, stepsPerQuarter
?:
number
, qpm
?:
number
)
:
Promise
<
NoteSequence
>
Parameters
oh:
tf.Tensor2D
Optional
stepsPerQuarter:
number
Optional
qpm:
number
Returns
Promise
<
NoteSequence
>
to
Tensor
to
Tensor
(
noteSequence
:
INoteSequence
)
:
tf.Tensor2D
Parameters
noteSequence:
INoteSequence
Returns
tf.Tensor2D
Globals
"core/data"
Data
Converter
Drum
Roll
Converter
Drums
Converter
constructor
NUM_
SPLITS
SEGMENTED_
BY_
TRACK
depth
end
Tensor
num
Segments
num
Steps
pitch
Classes
pitch
ToClass
tensor
Steps
to
Note
Sequence
to
Tensor
Drums
One
Hot
Converter
Groove
Converter
Melody
Converter
Melody
Rhythm
Converter
Melody
Shape
Converter
Multitrack
Converter
Trio
Converter
Trio
Rhythm
Converter
Base
Converter
Args
Drum
Roll
Converter
Spec
Drums
Converter
Args
Drums
Converter
Spec
Drums
One
Hot
Converter
Spec
Groove
Converter
Args
Groove
Converter
Spec
Melody
Converter
Args
Melody
Converter
Spec
Melody
Rhythm
Converter
Spec
Melody
Shape
Converter
Spec
Multitrack
Converter
Args
Multitrack
Converter
Spec
Trio
Converter
Args
Trio
Converter
Spec
Trio
Rhythm
Converter
Spec
Converter
Spec
converter
From
Spec
Generated using
TypeDoc