Snapshot loading problems with custom assigned CCs [SOLVED!]

I’ve observed the following on my freshly updated vangelis system:

I assign a midi CC (with channel number, i.e. 16#106) to a knob, save it as new sub snapshot, save a new snapshot.
Case A: When I reload this snapshot, I got an error. The snapshot is not loaded, instead an empty snapshot is created.

Case B: When I don’t use midi channel assignment for the CC (i.e. 106), save the sub snapshot, save the snapshot and reload it, evrything works fine.

for case A: I saw an error in the UI log, but I am not sure it is the cause of the problem.

Sep 23 18:51:54 zynthianv51oram startx[2387]: ERROR:zynthian_state_manager.load_snapshot: Invalid snapshot: unsupported operand type(s) for >>: ‘str’ and ‘int’
Sep 23 18:51:54 zynthianv51oram startx[2387]: Traceback (most recent call last):
Sep 23 18:51:54 zynthianv51oram startx[2387]: File “/zynthian/zynthian-ui/zyngine/zynthian_state_manager.py”, line 1202, in load_snapshot
Sep 23 18:51:54 zynthianv51oram startx[2387]: self.load_zs3(zs3[“zs3-0”], autoconnect=False)
Sep 23 18:51:54 zynthianv51oram startx[2387]: File “/zynthian/zynthian-ui/zyngine/zynthian_state_manager.py”, line 1489, in load_zs3
Sep 23 18:51:54 zynthianv51oram startx[2387]: self.set_midi_capture_state(zs3_state[‘midi_capture’])
Sep 23 18:51:54 zynthianv51oram startx[2387]: File “/zynthian/zynthian-ui/zyngine/zynthian_state_manager.py”, line 1950, in set_midi_capture_state
Sep 23 18:51:54 zynthianv51oram startx[2387]: chan = (chan_cc >> 8) & 0xff
Sep 23 18:51:54 zynthianv51oram startx[2387]: ~~~~~~~~^^~~
Sep 23 18:51:54 zynthianv51oram startx[2387]: TypeError: unsupported operand type(s) for >>: ‘str’ and ‘int’

Sounds like a bug to me…

Regards

1 Like

Yep! It sounds like a bug, it must be a bug.
Please, update and test :wink:

3 Likes

Top! Works again :wink:

Regards

2 Likes