These are chat archives for brunchboy/afterglow

19th
Feb 2018
Joen Tolgraven
@tolgraven
Feb 19 2018 11:06
sigabort's P2D+ is what I was thinking of. Further inspection reveals he's patching the libusb dylib in Push2DisplayProcess.app, so prob hacky and hard to replicate without reverse engineering skills far exceeding mine (unless he's just flipping a bit to turn a call for exclusive access into non-exclusive? will investigate), but the fact it's at all possible is definitely encouraging... as a stopgap I guess just duck the exception and continue with straight MIDI? so don't get the display but at least the rest
Joen Tolgraven
@tolgraven
Feb 19 2018 11:31
mea culpa, the patched libusb is only required for drawing on top of Live. Simply grabbing display from Live and later handing it back works from the free standard version. So def doable through regular means, will keep looking.
http://sigabort.co/Assets/Code/Gridlock/P2D_1.4.0_Standard.zip
Joen Tolgraven
@tolgraven
Feb 19 2018 13:25
welp dumb of course there is no way to share something previously claimed without hooking into its context. Then again no need to go so low level, use the Live API and ask the Push liveobj to disconnect, then claim. So on failure, keep handle open until ready to claim. Then add a detach() method to Wayang so can go back and forth without full re-init. Makes sense no? Gonna give it a go but will probably need help for the finer points :)
Joen Tolgraven
@tolgraven
Feb 19 2018 15:09

huzzah! in Push2/setup_component.py

def make_it_go_boom_button(self, _button):
    self.make_it_go_boom = True

now just gotta figure out which one is the make_it_go_boom_button and press it, should surely do the trick lol

Joen Tolgraven
@tolgraven
Feb 19 2018 18:56
Yeah after poking around for ages and realising disconnect() went too far and set_enabled() not far enough and trying in vain to mod the push2 script, hit me to just route it through virtual midi, point life to that, yank it out, pkill push2. Too fucking easy!