Skip to content

Commit

Permalink
Fix a bug for loading rest and continuous mark with non-zero octave v…
Browse files Browse the repository at this point in the history
…alue

0이 아닌 옥타브 값을 가진 쉼표 및 연음 부호를 불러오지 못하는 문제 수정
  • Loading branch information
depth221 committed Jul 17, 2023
1 parent 3ccfba4 commit 648b66a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions jeonggan.py
Original file line number Diff line number Diff line change
Expand Up @@ -1733,11 +1733,14 @@ def input_by_keyboard(self, key: str, octave: int = 0):
def find_value_by_key(key: str, octave: int = 0) -> str:
dict_pitchname = PitchName.__members__.items()
dict_etc_note = PitchEtcName.__members__.items()
list_all_note = list(dict_pitchname) + list(dict_etc_note)

note = None

for pitchname_key, pitchname_member in list_all_note:
for pitchname_key, pitchname_member in dict_etc_note:
if key == pitchname_key:
return pitchname_member.value

for pitchname_key, pitchname_member in dict_pitchname:
if key == pitchname_key:
if octave == 0:
note = pitchname_member.value
Expand Down

0 comments on commit 648b66a

Please sign in to comment.