Photoshop transparency controlled by a ultrasonic MIDI controller

0
0

Hi,

For a university project I want to use an ultrasonic sensor as a MIDI controller to control sounds in Ableton Live. It works fine. Additionally to that, I would like to control the transparency value in Photoshop, at the same time. The closer the hand gets to the ultrasonic sensor, the less the transparency value should be. It should work in both directions. If you hold a position with your hand, the value should stay at this level.

I tried to control it via the mouse wheel outgoing option or the keystroke (left/right) option, but it didn’t work properly. I don’t know how to program it in MT Pro. Is there a way to do that? I hope you can help me.

Thanks for any assistance.

All the best from Berlin

Robin

Attachments:
Marked as spam
Posted by (Q&A Forum: 1, Answers: 1)
November 29, 2017 2:41 pm
38 views
1
Private answer

If using left and right keystrokes for output, something like this should work. I scaled it down from 0-127 (MIDI values) to (0-100%) transparency level. Not sure if that is how Photoshop handles it but I tested with Corel Paintshop Pro 2018.

 

Marked as spam
Posted by (Q&A Forum: 22, Answers: 1133)
November 29, 2017 10:50 pm
1
Private answer

Does it work with the real mouse wheel or keystroke? If it does, are these the actions that it works with? (Scroll wheel or right-left arrows?

It is possible you will need some rules in your translator since MIDI is sending absolute data and Photoshop will probably need relative data.

You will need to set up rules to press right arrow (or scroll up) when the value increases and left arrow (or scroll) down when the value decreases. The question is, what happens when you get to the end? What if it is not completely non-transparent at value 127?  Can you modify your MIDI controller to send relative values instead of fixed values. If you can, this would be ideal. If not, we need to deal with how we handle the endpoints.

If you can change to relative value, let me know and I will show you how, if not, I can show you other ways in MT Pro you can simulate relative values but again, we will need to understand what we do when you reach maximum and minimum values.

 

 

Are you on Windows or Mac.

Marked as spam
Posted by (Q&A Forum: 22, Answers: 1133)
November 29, 2017 5:43 pm

Hey Steve,

Thank you so much! You really helped me! It works perfectly on a Windows laptop with Corel Paintshop Pro. My ultrasonic sensor start sending messages at a distance of 30cm. 30 is like the 0 value.
I tried it with Gimp and Photoshop on my MacBook, which I usually use, but it didn’t work properly. Gimp is much too slow, Photoshop may need relative data like you said.
I know that I had to set up rules to press right arrow when the value increases and the other way around but I did’t know how to program it. Thank you again!

All the best from Berlin

Robin

( at November 30, 2017 2:28 pm)

Glad to have helped, Robin! Feel free to review any of the 30+ tutorials that are out there on YouTube.

Bome MIDI Translator Tutorials

https://www.youtube.com/playlist?list=PLzwHsH6-VZ8Qy_dxsf0LqorjarvnDIFiy

BomeBox Tutorials

https://www.youtube.com/playlist?list=PLzwHsH6-VZ8SJw5VztKiEDleEFAx8p7K8

( at November 30, 2017 3:18 pm)