beatboxchad

Avatar
from
New Orleans, LA, USA
About

Chad Cassady

beatboxchad's code

controlling a synth with HID

13 Jul'23 19:33 in delayhidtonetouchscreentheramin

There are some hardcoded values you'll have to mess with to play with this. On my Thinkpad touchscreen, an element with usage type Finger indicates a touch with a float either 1.0 or 0.0. First touch element has ID 2, followed by 13, 24, 35, 46. The X and Y axis data ID's are similarly catchy. The X's have ID's 11, 22, 33, 44, 55 and the Y's have ID's 12, 23, 34, 45, 56. I am using a ProxySpace stored in variable `p`, and this code gets executed when sclang boots up. It's placed in that magic directory. I also have to run `sudo chmod 664 /dev/hidraw*; sudo chgrp audio /dev/hidraw*` every time I reboot, and a couple other FIXME's. I'll never get around to them, because this thing is so fun to play with. Super fun delay swooshes. I'm calling it a "Touchscreen Theramin". This code, the name "Touchscreen Theramin", and all related content are Copyright 2023 Chad Cassady AKA beatboxchad, working from New Orleans, LA, USA. I wrote it, I'm gonna make more cool stuff out of it, don't steal the name or any of that or I'll get all mad and ask you for a share of whatever you make so we can get back to being playful. This here submission is proof of all that. Holler at me if you make something out of it, I'm down to collaborate and share.