Demos
Guides
Advanced guides
Notes
Package reference
compute_pitch_regularization_weight()
Resources
Meta information
Compute pitch regularization weight given note segments
segments (list) – list of note (start, end) indices
N (int) – number of frames
decay_size (int) – size of the decay window
max_w (float) – maximum weight
weights of shape (N,)
Tensor