Fix missing words

This commit is contained in:
Vadim committed 2024-12-02 21:33:05 +01:00
1 parent 9b7bd046fd
commit e394fe5f56
3 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ from modules.Ultrastar.ultrastar_txt import FormatVersion
@dataclass_json
@dataclass
class Settings:
APP_VERSION = "0.0.12-dev3"
APP_VERSION = "0.0.12-dev4"
create_midi = True
create_plot = False
+2 -1
View File
@@ -271,6 +271,7 @@ def merge_syllable_segments(midi_segments: list[MidiSegment],
for i, data in enumerate(transcribed_data):
is_note_short = data.end - data.start < thirtytwo_note
is_same_note = midi_segments[i].note == midi_segments[i - 1].note
has_breath_pause = False
if previous_data is not None:
@@ -278,7 +279,7 @@ def merge_syllable_segments(midi_segments: list[MidiSegment],
if (str(data.word).startswith("~")
and previous_data is not None
and is_note_short or midi_segments[i].note == midi_segments[i - 1].note
and (is_note_short or is_same_note)
and not has_breath_pause):
new_data[-1].end = data.end
new_midi_notes[-1].end = data.end
+1 -1
View File
@@ -105,7 +105,7 @@ class UltrastarNoteLine:
class UltrastarTxtValue:
"""Vaules for Ultrastar TXT files."""
version = "1.0.0"
version = "1.1.0"
artist = ""
title = ""
year = None