News for hackers. Stuff that matters.
Re:Show HN: An online drawing tool that lets you change colo... by pmoriarty on Tuesday February 18, 2020 @01:24PM (#22358634)
Anyone interested in this sort of thing should check out mididings,[1] a python package with which you can intercept MIDI messages and use them however you like.

I've used it in combination with visgrep from the xautomation package[2] to locate and click on non-MIDI-learnable GUI buttons on a software synth, but it can be anything.

I've also used mididings to control mpv[3], allowing me to pause, play, rewind and fast-forward videos with my feet using my MIDI foot pedal controller[4] while with my hands I type up a transcript of what's being said in the video.

[1] - http://das.nasophon.de/mididings/

[2] - https://hoopajoo.net/projects/xautomation.html

[3] - https://mpv.io/

[4] - https://www.behringer.com/Categories/Behringer/Accessories/M...

Re:Show HN: An online drawing tool that lets you change colo... by GuiA on Tuesday February 18, 2020 @11:30AM (#22357189)
Most music applications have a feature called “MIDI Learn”, where you basically click any parameter, turn a knob or push a button on your controller, and it binds that input to the parameter. It’s amazing and allows for the creation of complex, expressive workflows.

I wish that this was a feature throughout the OS. Being able to bind a foot pedal to pasting from the clipboard, or a slider to a variable in your IDE, or a rotary to a control in a video editing app, would be amazing and open up entirely new avenues for computing and letting people customize their setup. Particularly thinking of the accessibility implications.

Re:Show HN: An online drawing tool that lets you change colo... by arianestrasse on Tuesday February 18, 2020 @09:28AM (#22356274)
Loving the retro look of the controller! I find it a bit confusing that you have letters R, G, and B on the controller but you're modifying the Hue, Saturation, and Brightness values on the editor. Just a small nitpick.
Re:Show HN: An online drawing tool that lets you change colo... by rhklein on Tuesday February 18, 2020 @02:08PM (#22359170)
I changed that, because most people prefer HSB. Personally I draw in RGB mode, press 'm' to toggle modes.
Re:Show HN: An online drawing tool that lets you change colo... by ryanthedev on Tuesday February 18, 2020 @07:13PM (#22361833)
I love it! Really cool idea and execution! I would love to experiment using a ball as the selector.

My current strategy for binding automation is using my razer naga and binding all those buttons to do various actions depending on the app that's up.

Re:Show HN: An online drawing tool that lets you change colo... by sitkack on Tuesday February 18, 2020 @10:59AM (#22356938)
What a great creation, people have already brought art into the world with it.
Re:Show HN: An online drawing tool that lets you change colo... by _def on Tuesday February 18, 2020 @04:29PM (#22360600)
I think Gimp also allows control via MIDI input. Never tried it though.
Re:Show HN: An online drawing tool that lets you change colo... by rhklein on Tuesday February 18, 2020 @05:18PM (#22360990)
Yes, there is a Gimp build that allows you to change colors via MIDI. One thing I didn't like about the built I tested was that you can't change colors while! making a stroke.
Re:Show HN: An online drawing tool that lets you change colo... by wdfx on Wednesday February 19, 2020 @03:58AM (#22364018)
With midi data being 7-bit aren't you losing out on an awful lot of the available colour space? Or is it near enough to not really matter in this case?
Re:Show HN: An online drawing tool that lets you change colo... by rhklein on Wednesday February 19, 2020 @11:57AM (#22367366)
You lose half of the possible steps in RGB mode (128 instead of 256), but a change of 2 is hardly noticeable when painting, even when applied to all three channels.
Re:Show HN: An online drawing tool that lets you change colo... by Tossrock on Tuesday February 18, 2020 @02:26PM (#22359399)
Really neat! Shame it's Chromium only, though. Does Firefox intend to implement web MIDI eventually?

I'm using MIDI as an input to the control software for an art installation at the moment, and once WebGPU is out and compute shaders are available on the web, the whole thing could be deployed to the browser, which would be cool. At the moment it's built to a native executable, which is fast, but not as easy to share.

Re:Show HN: An online drawing tool that lets you change colo... by detaro on Wednesday February 19, 2020 @12:01PM (#22367417)
Mozilla for now has been against WebMIDI due to concerns about the scope and security implications: https://github.com/mozilla/standards-positions/issues/58
Re:Show HN: An online drawing tool that lets you change colo... by captn3m0 on Wednesday February 19, 2020 @07:07AM (#22364809)
Found a cool similar drawing example app: etchasketch.fun

(Yup, lets you draw on a Etch-a-sketch with MIDI knobs)

Re:Show HN: An online drawing tool that lets you change colo... by rhklein on Wednesday February 19, 2020 @12:16PM (#22367598)
Needs an SSL update, otherwise it won't work in newer chrome versions.
Re:Show HN: An online drawing tool that lets you change colo... by captn3m0 on Friday February 21, 2020 @02:20AM (#22381478)
The MIDI web APIs aren't HTTPS-only, so you can just use HTTP (site doesn't redirect)
Re:Show HN: An online drawing tool that lets you change colo... by rhklein on Saturday February 22, 2020 @04:21AM (#22390128)
Re:Show HN: An online drawing tool that lets you change colo... by MartijnBraam on Tuesday February 18, 2020 @11:30AM (#22357190)
I wish more software could map external controls over midi or osc.