Skip to content

Commit

Permalink
there is not need to update interval dict when portamento length is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulMelody committed Aug 8, 2024
1 parent ca78995 commit 1a89359
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"vscode": {
"extensions": [
"charliermarsh.ruff",
"DotJoshJohnson.xml",
"hbenl.vscode-test-explorer",
"littlefoxteam.vscode-python-test-adapter",
"mrorz.language-gettext",
"ms-python.mypy-type-checker",
"ms-python.python",
"redhat.vscode-xml",
"redhat.vscode-yaml",
"samuelcolvin.jinjahtml",
"seanwu.vscode-qt-for-python",
Expand Down
2 changes: 1 addition & 1 deletion libresvip/model/pitch_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __post_init__(self, note_list: list[Note]) -> None:
self.interval_dict[
portion.closedopen(current_portamento_start, current_portamento_end)
] = current_note.key_number
else:
elif current_portamento_start < current_portamento_end:
self.interval_dict[
portion.closedopen(current_portamento_start, current_portamento_end)
] = functools.partial( # type: ignore[call-arg]
Expand Down

0 comments on commit 1a89359

Please sign in to comment.