Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mungewell committed Jul 7, 2018
1 parent e66b673 commit ff882f0
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions mpk_mini.py
Expand Up @@ -260,6 +260,13 @@ def edit_arpeggio():
else:
Header = Header_Mk1

if config[0]['mk2']:
menu = qprompt.Menu()
for x,y in Header.enable.subcon.subcon.ksymapping.items():
menu.add(str(x),y)
if config[0]['enable'] == y:
dft = str(x)
config[0]['enable'] = int(menu.show(msg="Enable", dft=dft))

menu = qprompt.Menu()
for x,y in Header.division.subcon.ksymapping.items():
Expand Down Expand Up @@ -296,14 +303,6 @@ def edit_arpeggio():
dft = str(x)
config[0]['swing'] = int(menu.show(msg="Swing", dft=dft))

if config[0]['mk2']:
menu = qprompt.Menu()
for x,y in Header.enable.subcon.subcon.ksymapping.items():
menu.add(str(x),y)
if config[0]['enable'] == y:
dft = str(x)
config[0]['enable'] = int(menu.show(msg="Enable", dft=dft))

config[0]['taps'] = \
qprompt.ask_int("Taps", vld=list(range(2,4)),
dft=config[0]['taps'])
Expand Down Expand Up @@ -386,8 +385,6 @@ def edit_transpose():
else:
Header = Header_Mk1

print(type(Header))

menu = qprompt.Menu()
if config[0]['mk2']:
for x,y in Transpose.transpose.subcon.subcon.ksymapping.items():
Expand Down

0 comments on commit ff882f0

Please sign in to comment.