Skip to content

Commit

Permalink
fix pitch range
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulMelody committed Jun 15, 2024
1 parent 32968bc commit e9a0cb7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libresvip/plugins/aisp/aisingers_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion libresvip/plugins/nn/niaoniao_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion libresvip/plugins/y77/y77_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e9a0cb7

Please sign in to comment.