Skip to content

Instantly share code, notes, and snippets.

View cyberluke's full-sized avatar
🏠
Working from home

Lukas Satin cyberluke

🏠
Working from home
View GitHub Profile
@cyberluke
cyberluke / gist:a49b7ae767360e1cadb9544a3a16fc81
Created September 25, 2022 13:14
Use external 2nd monitor for Akai MPC
MPC Desktop renders MPC like screen for the Touch, it can be tricked into displaying it on a 2nd monitor.
With monitor connected by USB-C or USB dock, use 'CRU util' to change monitor's product ID to 'THI1211' (Tango Hotel India 1211) and reboot.
Screen renders after MPC is started with Touch attached via USB, but not powered by it's DC brick (ie no screen active on Touch).
Changes made by CRU are held in registry once set. They can also be removed by app.
https://youtu.be/Hh2QtuKLiSk
@cyberluke
cyberluke / FreePIE_Thrustmaster_HOTAS_Gameport_Win10.py
Last active August 16, 2022 10:07
FreePIE_Thrustmaster_HOTAS_Gameport_Win10.py - Mark II Weapon System converting PS/2 keyboard input to vJoy joystick device (need to create vJoy joystick manually: in vJoy configuration check: X,Y,Z,Rx,Ry,Rz,Slider,Slider2 and POV select 1 - continuous), number of buttons: 8
if starting:
import time
import math
#The following is the tweakaxis function. Don't change this unless you know how to program. Call on this function in the Axis Rebinds section.
def tweakaxis(input, input_range_min, adjusted_center, input_range_max, dband):
if input >= adjusted_center:
return filters.ensureMapRange(input, adjusted_center + dband, input_range_max, 0, 1000)
elif input <= adjusted_center:
return filters.ensureMapRange(input, input_range_min, adjusted_center - dband, -1000, 0)
else:
@cyberluke
cyberluke / creative_coding_video_tutorials.md
Last active September 20, 2015 17:55 — forked from timpulver/creative_coding_video_tutorials.md
[List] Creative Coding Video Tutorials [Processing