Skip to content

Commit

Permalink
Merge pull request #219 from rakuri255/No-linebreaks-after-last-words
Browse files Browse the repository at this point in the history
No linebreak after last words
  • Loading branch information
rakuri255 authored Jan 3, 2025
2 parents 8ffbda7 + 4e655a6 commit 736132f
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 736132f

Please sign in to comment.