diff --git a/libresvip/plugins/aisp/aisingers_generator.py b/libresvip/plugins/aisp/aisingers_generator.py index 69110b2a8..64ba84a15 100644 --- a/libresvip/plugins/aisp/aisingers_generator.py +++ b/libresvip/plugins/aisp/aisingers_generator.py @@ -195,7 +195,7 @@ def generate_pitch(self, pitch_param_curve: ParamCurve, note: Note) -> list[floa pitch_param_in_note = [ p for p in pitch_param_curve.points.root - if note.start_pos + self.first_bar_length <= p.x <= note.end_pos + self.first_bar_length + if note.start_pos + self.first_bar_length <= p.x < note.end_pos + self.first_bar_length ] pitch_param_time_in_note = dict(pitch_param_in_note) diff --git a/libresvip/plugins/nn/niaoniao_generator.py b/libresvip/plugins/nn/niaoniao_generator.py index 75d0261e5..4656f152c 100644 --- a/libresvip/plugins/nn/niaoniao_generator.py +++ b/libresvip/plugins/nn/niaoniao_generator.py @@ -93,7 +93,7 @@ def generate_pitch(self, pitch_param_curve: ParamCurve, note: Note) -> NNPoints: p for p in pitch_param_curve.points.root if p.x >= note.start_pos + self.first_bar_length - and p.x <= note.start_pos + self.first_bar_length + note.length + and p.x < note.end_pos + self.first_bar_length ] pitch_param_time_in_note = dict(pitch_param_in_note) diff --git a/libresvip/plugins/y77/y77_generator.py b/libresvip/plugins/y77/y77_generator.py index cd75e015b..f516c6f70 100644 --- a/libresvip/plugins/y77/y77_generator.py +++ b/libresvip/plugins/y77/y77_generator.py @@ -62,7 +62,7 @@ def generate_pitch(self, pitch_param_curve: ParamCurve, note: Note) -> list[floa p for p in pitch_param_curve.points.root if p.x >= note.start_pos + self.first_bar_length - and p.x <= note.start_pos + self.first_bar_length + note.length + and p.x <= note.end_pos + self.first_bar_length ] pitch_param_time_in_note = dict(pitch_param_in_note)