Skip to content

Commit

Permalink
No linebreak after last words
Browse files Browse the repository at this point in the history
  • Loading branch information
rakuri255 committed Jan 3, 2025
1 parent 8ffbda7 commit 4e655a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/modules/Ultrastar/ultrastar_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,12 @@ def create_ultrastar_txt(
file.write(line)

# detect silence between words
#if not transcribed_data[i].is_word_end:
if not midi_segment.word.endswith(" "):
separated_word_silence.append(silence)
continue

if silence_split_duration != 0 and silence > silence_split_duration or any(
s > silence_split_duration for s in separated_word_silence) and i != len(midi_segments) - 1:
if i != len(midi_segments) - 1 and silence_split_duration != 0 and silence > silence_split_duration or any(
s > silence_split_duration for s in separated_word_silence):
# - 10
# '-' end of current sing part
# 'n1' show next at time in real beat
Expand Down

0 comments on commit 4e655a6

Please sign in to comment.