Skip to content

Commit

Permalink
Fix missing dump_device call
Browse files Browse the repository at this point in the history
  • Loading branch information
tomduncalf committed May 11, 2016
1 parent cad5ba7 commit 7ab5819
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions Devices/UbermapDevices.py
Expand Up @@ -49,23 +49,6 @@ def dump_device(self, device):
config[self.SECTION_CONFIG]['Cache'] = False
config[self.SECTION_CONFIG]['Ignore'] = True

'''
Code to dump original ableton mapping - not working
bank_names = parameter_bank_names(device, skip = True)
banks = parameter_banks(device, skip = True)
count = 0
for bank_name in bank_names:
config[SECTION_BANKS][bank_name] = {}
for param in banks[count]:
if(param):
config[SECTION_BANKS][bank_name][param.original_name] = param.original_name
count = count + 1
#config[SECTION_BEST_OF]['Bank'] = best_of_parameter_bank(device, _ubermap_skip = True)
config[SECTION_BEST_OF]['Bank'] = config[SECTION_BANKS].itervalues().next()
'''

count = 0
bank = 1
total_count = 1
Expand Down Expand Up @@ -95,6 +78,7 @@ def get_device_config(self, device):
def get_custom_device_banks(self, device):
device_config = self.get_device_config(device)
if(not device_config):
self.dump_device(device)
return False

return device_config.get(self.SECTION_BANKS).keys()
Expand Down

0 comments on commit 7ab5819

Please sign in to comment.