markusschloesser / MackieC4_P3

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

regression bug: Devices are not always shown in chan strip mode #56

Closed markusschloesser closed 3 years ago

markusschloesser commented 3 years ago

something changed, while I used to see all device listed neatly in chan strip mode, now that's not always the case. My template includes a track purely for m4l devices (5), and I used to see all 5. Now it reverted back to only showing 1. Selecting via vpot press works and then it shows 1 or 2(!) more, but not all. I could attach it, but it's a Live11 template, meaning you can't load it. But maybe play around with a similar setup (4-5 m4l devices, not all activated).

markusschloesser commented 3 years ago

@BilldarBagdar I just checked out your newest commits ( https://github.com/markusschloesser/MackieC4_P3/commit/49add594c08b69da785e0ed0e1df50e757f044f9 ) and now the devices are shown, BUT I cannot access any of them anymore. A "device up" shows "Device nr" (e.g. Device 4) on the top display, but a "No devices selected on this track" on the second display. Log shows:

2021-04-11T01:09:36.283943: info: Python: INFO:MackieC4.MackieC4:283 - (MackieC4) Param 0 name <Device On>
2021-04-11T01:09:36.284051: info: Python: INFO:MackieC4.MackieC4:283 - (MackieC4) Param 1 name <Open/Close>
2021-04-11T01:09:36.284237: info: Python: INFO:MackieC4.MackieC4:283 - (MackieC4) Param 0 tuple name <Device On>
2021-04-11T01:09:36.284367: info: Python: INFO:MackieC4.MackieC4:283 - (MackieC4) Param 1 tuple name <Open/Close>
2021-04-11T01:09:36.284472: info: Python: INFO:MackieC4.MackieC4:283 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.284571: info: Python: INFO:MackieC4.MackieC4:284 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.284667: info: Python: INFO:MackieC4.MackieC4:284 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.284758: info: Python: INFO:MackieC4.MackieC4:284 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.284850: info: Python: INFO:MackieC4.MackieC4:284 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.284940: info: Python: INFO:MackieC4.MackieC4:284 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.285032: info: Python: INFO:MackieC4.MackieC4:284 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.285124: info: Python: INFO:MackieC4.MackieC4:284 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.285215: info: Python: INFO:MackieC4.MackieC4:284 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.285307: info: Python: INFO:MackieC4.MackieC4:284 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.285398: info: Python: INFO:MackieC4.MackieC4:284 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.285491: info: Python: INFO:MackieC4.MackieC4:284 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.285588: info: Python: INFO:MackieC4.MackieC4:285 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.285680: info: Python: INFO:MackieC4.MackieC4:285 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.285797: info: Python: INFO:MackieC4.MackieC4:285 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.285891: info: Python: INFO:MackieC4.MackieC4:285 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.285984: info: Python: INFO:MackieC4.MackieC4:285 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.286077: info: Python: INFO:MackieC4.MackieC4:285 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.286169: info: Python: INFO:MackieC4.MackieC4:285 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.286262: info: Python: INFO:MackieC4.MackieC4:285 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.286354: info: Python: INFO:MackieC4.MackieC4:285 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.286447: info: Python: INFO:MackieC4.MackieC4:285 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.286562: info: Python: INFO:MackieC4.MackieC4:286 - (MackieC4) track device list size <5> BEFORE device update
2021-04-11T01:09:36.286650: info: Python: INFO:MackieC4.MackieC4:286 - (MackieC4) before <Selection Filter>
2021-04-11T01:09:36.286732: info: Python: INFO:MackieC4.MackieC4:286 - (MackieC4) before <ClipLoopMonitorMS12 v2>
2021-04-11T01:09:36.286814: info: Python: INFO:MackieC4.MackieC4:286 - (MackieC4) before <M4L Tom Cosm - Metronope 1.0>
2021-04-11T01:09:36.286895: info: Python: INFO:MackieC4.MackieC4:286 - (MackieC4) before <jo.Locators>
2021-04-11T01:09:36.286974: info: Python: INFO:MackieC4.MackieC4:286 - (MackieC4) before <ClipGain>
2021-04-11T01:09:36.287076: info: Python: INFO:MackieC4.MackieC4:286 - (MackieC4) no devices currently on track <False>
2021-04-11T01:09:36.287162: info: Python: INFO:MackieC4.MackieC4:286 - (MackieC4) add event <False> delete event <False> change event <True>
2021-04-11T01:09:36.287281: info: Python: INFO:MackieC4.MackieC4:286 - (MackieC4) found event index <3> and device <jo.Locators>
2021-04-11T01:09:36.287386: info: Python: INFO:MackieC4.MackieC4:286 - (MackieC4) for 'change selected' device event handling
2021-04-11T01:09:36.287470: info: Python: INFO:MackieC4.MackieC4:286 - (MackieC4) switching __chosen_plugin jo.Locators to device at index 3
2021-04-11T01:09:36.287563: info: Python: INFO:MackieC4.MackieC4:287 - (MackieC4) __chosen_plugin is now None
2021-04-11T01:09:36.287729: info: Python: INFO:MackieC4.MackieC4:287 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.287823: info: Python: INFO:MackieC4.MackieC4:287 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.287915: info: Python: INFO:MackieC4.MackieC4:287 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.288005: info: Python: INFO:MackieC4.MackieC4:287 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.288095: info: Python: INFO:MackieC4.MackieC4:287 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.288186: info: Python: INFO:MackieC4.MackieC4:287 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.288276: info: Python: INFO:MackieC4.MackieC4:287 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.288366: info: Python: INFO:MackieC4.MackieC4:287 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.288457: info: Python: INFO:MackieC4.MackieC4:287 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.288550: info: Python: INFO:MackieC4.MackieC4:288 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.288656: info: Python: INFO:MackieC4.MackieC4:288 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.288766: info: Python: INFO:MackieC4.MackieC4:288 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.288860: info: Python: INFO:MackieC4.MackieC4:288 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.288951: info: Python: INFO:MackieC4.MackieC4:288 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.289043: info: Python: INFO:MackieC4.MackieC4:288 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.289135: info: Python: INFO:MackieC4.MackieC4:288 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.289227: info: Python: INFO:MackieC4.MackieC4:288 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.289319: info: Python: INFO:MackieC4.MackieC4:288 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.289411: info: Python: INFO:MackieC4.MackieC4:288 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.289609: info: Python: INFO:MackieC4.MackieC4:288 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.289778: info: Python: INFO:MackieC4.MackieC4:289 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.289881: info: Python: INFO:MackieC4.MackieC4:289 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.289981: info: Python: INFO:MackieC4.MackieC4:289 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.290090: info: Python: INFO:MackieC4.MackieC4:289 - (MackieC4) vpot_index + preset_bank_index == invalid parameter index
2021-04-11T01:09:36.290346: info: Python: INFO:MackieC4.MackieC4:289 - (MackieC4) track device list size <5> AFTER device update
2021-04-11T01:09:36.290455: info: Python: INFO:MackieC4.MackieC4:289 - (MackieC4) after <Selection Filter>
2021-04-11T01:09:36.290589: info: Python: INFO:MackieC4.MackieC4:290 - (MackieC4) after <ClipLoopMonitorMS12 v2>
2021-04-11T01:09:36.290676: info: Python: INFO:MackieC4.MackieC4:290 - (MackieC4) after <M4L Tom Cosm - Metronope 1.0>
2021-04-11T01:09:36.290764: info: Python: INFO:MackieC4.MackieC4:290 - (MackieC4) after <jo.Locators>
2021-04-11T01:09:36.290849: info: Python: INFO:MackieC4.MackieC4:290 - (MackieC4) after <ClipGain>
markusschloesser commented 3 years ago

Update: when I switch over from another track, ONE device is selected and can be edited, but an up/down does "no devices" again. Same for all tracks which have more than 1 device

BilldarBagdar commented 3 years ago

Yep, I think it's the same " selected device changed" issue in both cases. Unfortunately, this might be one of those cases where it had to get worse before it could get better. ...working (Or maybe I had to make it worse, before I could make it better... :))

BilldarBagdar commented 3 years ago

FYI - I recently learned this key command in PyCharm. Alt + Shift + Insert toggles what I call "column select mode" in text files.

This issue should be fixed now, too

And bonus, the selected device (if exists) name on selected track is printed (in 15 characters) on the top display in channel mode.

markusschloesser commented 3 years ago

looks great and works for me 👍, will close issue