nnsvs.train_util.note_segments

nnsvs.train_util.note_segments(lf0_score_denorm)[source]

Compute note segments (start and end indices) from log-F0

Note that unvoiced frames must be set to 0 in advance.

Parameters:

lf0_score_denorm (Tensor) – (B, T)

Returns:

list of note (start, end) indices

Return type:

list