markusschloesser / MackieC4_P3

A Mackie C4 Midi Remote Script for Ableton 11
16 stars 2 forks source link

assertion error after grouping/ungrouping #90

Closed markusschloesser closed 1 year ago

markusschloesser commented 1 year ago

grouping or folding and then changing tracks produces an assertion error, which after going thru the tracks corrects itself again.

RemoteScriptError:   File "C:\ProgramData\Ableton\Live 11 Suite\Resources\MIDI Remote Scripts\MackieC4_DEV\MackieC4.py", line 362, in track_change 
RemoteScriptError: assert self.track_count == len(tracks)
RemoteScriptError: AssertionError

tested again, when no unfolding/ungrouping etc is done, the error does not occur

markusschloesser commented 1 year ago

idea: add listener, when something folds or unfolds, run update tracks amount

markusschloesser commented 1 year ago

last commit (https://github.com/markusschloesser/MackieC4_P3/commit/849e429f738108b62f7f81cb00c475fa1ed494e6) "accidentally" seemed to have this fixed 😇😂