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"
MelodyConverter
Class MelodyConverter
Hierarchy
DataConverter
MelodyConverter
Index
Constructors
constructor
Properties
FIRST_
PITCH
NOTE_
OFF
NUM_
SPLITS
SEGMENTED_
BY_
TRACK
depth
end
Tensor
ignore
Polyphony
max
Pitch
min
Pitch
num
Segments
num
Steps
Methods
tensor
Steps
to
Note
Sequence
to
Tensor
Constructors
constructor
new
Melody
Converter
(
args
:
MelodyConverterArgs
)
:
MelodyConverter
Parameters
args:
MelodyConverterArgs
Returns
MelodyConverter
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
end
Tensor
end
Tensor
:
tf.Tensor1D
ignore
Polyphony
ignore
Polyphony
:
boolean
max
Pitch
max
Pitch
:
number
min
Pitch
min
Pitch
:
number
num
Segments
num
Segments
:
number
num
Steps
num
Steps
:
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
Drums
One
Hot
Converter
Groove
Converter
Melody
Converter
constructor
FIRST_
PITCH
NOTE_
OFF
NUM_
SPLITS
SEGMENTED_
BY_
TRACK
depth
end
Tensor
ignore
Polyphony
max
Pitch
min
Pitch
num
Segments
num
Steps
tensor
Steps
to
Note
Sequence
to
Tensor
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