markusschloesser / MackieC4_P3

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

clean up all the listener stuff #89

Closed markusschloesser closed 1 year ago

markusschloesser commented 1 year ago

there's like 500 lines of code in https://github.com/markusschloesser/MackieC4_P3/blob/master/wip/MackieC4/MackieC4.py about different listeners, which seems a) excessive and b) not really necessary. Especially as MackieControl just uses ONE kind of listeners, we have lots of different ones (mixer_listeners, send_listener, mixert_listener, mixerv_listener, master_listener, retsend_listener, retmixert_listener, retmixerv_listener, add_trname_listener). However MackieControl/ChannelStripController.py also has shitloads of listeners. There's gotta be be a better way

markusschloesser commented 1 year ago

now that I understand the listeners better, I've actually added a couple of them (frozen, device_is_active). So while the new way of doing things is with the @listen property and our way is old school, the current state of listeners will stay as long as we haven't fully migrated to framework code.