Melodic shape control signal. Extracts a depth-3 tensor representing a
melodic contour as a Parsons code, a sequence of {up, down, same} values
corresponding to the pitch interval direction. We use a one-hot encoding,
where 0 = down, 1 = same, and 2 = up.
Melodic shape control signal. Extracts a depth-3 tensor representing a melodic contour as a Parsons code, a sequence of {up, down, same} values corresponding to the pitch interval direction. We use a one-hot encoding, where 0 = down, 1 = same, and 2 = up.