Ansteuerung mittels MIDI Controller

Tida
Mitglied
Beiträge: 91
Registriert: So 07 Jun 2015 12:00

Ansteuerung mittels MIDI Controller

Beitrag von Tida »

Gibt es Anwender, die einen MIDI-Controller zum Steuern von Photoline benutzen. Wäre toll, wenn man etwas hilfreiches aufbauen könnte, wie viele es jetzt mit dem Video-Verarbeitungsprogramm Davinci Resolve machen. Die machen es beispielsweise mit Hilfe vom Bome Midi Translator, wenn Maussteurerungen oder Keyboard-Shortcuts zum Ansteuern der Funkionen möglich sind. Auch für Lightroom gibt es mit dem Midi2LR-Plugin Möglichkeiten im Photo-Bereich.
Natürlich ware es toll, wenn Photoline vom Software-Entwickler direkt MIDI-Fähig programmiert werden könnte.
Tida
Mitglied
Beiträge: 91
Registriert: So 07 Jun 2015 12:00

Re: Ansteuerung mittels MIDI Controller

Beitrag von Tida »

Schade, dass hier anscheinend noch nichts gelaufen ist. Die bisherige Tastenbelegung von Photoline scheint gar nicht so schlecht zu sein. Warte gerade noch auf mein MIDI Controller (Behringer X-TOUCH Mini). Nach meiner Meinung könnte folgende Belegung nützlich sein:

Der MIDI Controller hat 8 drehbare Knöpfe ohne Endpunkt. Für 7 von denen hätte ich folgende Idee:
(1) SLOW: SHIFT+UP / SHIFT+DOWN
(2) MEDIUM: UP / DOWN
(3) FAST: STRG +UP / STRG +DOWN

(4) TOGGLE: RIGHT CLICK on FRAME ADJUSTMENT LAYER (to activate first numericUPDOWN box)
ENTER / SHIFT +TAB (move forward/backward between numericUPDOWN boxes)

(5) SLOW: SHIFT+LEFT / SHIFT+RIGHT
(6) MEDIUM: LEFT / RIGHT
(7) FAST: STRG +LEFT / STRG +RIGHT

Mittels der ersten drei Knöpfe könnten somit die Werte in den jeweils aktivierten numericUPDOWN Boxen verändert werden. Auch die DropDown Box des Blend Modes kann damit bedient werden. Es kann auch damit die Pinseldicke verändert werden, etc.

Mit (4) kann dann bei geöffnetem Adjustment Layer gut zwischen den numericUPDOWN boxen hin und her gesprungen werden. Dieses sollte zum Beispiel gut beim Gray Mixer funktionieren.

(1)-(3) als auch (5)-(7) sollten dann auch nützlich sein, wenn beispielweise ein Curve Punkt bewegt werden soll.

Die Taster sollten hauptsächlich dazu dienen, zu bestimmten Positionen zu springen. Beispielsweise bei Layes auf den Blendenwert oder auch die Blendenart, um dann weiter mit den drehbaren Knöpfen die Einstellung vorzunehmen.


Hätte jemand von Euch eine andere Anregung???
PhilM
Mitglied
Beiträge: 171
Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium

Re: Ansteuerung mittels MIDI Controller

Beitrag von PhilM »

Hello

I am interested in what you are attempting.
I have a hard time understanding german, but I guess you want to use your midi controller to generate keystrokes to manage Photoline fields and functions.
If I understood, you are using the Bome Midi translator to convert the midi to keystrokes ?
Is there a free alternative to Bome ?

Regards.

Philippe
Tida
Mitglied
Beiträge: 91
Registriert: So 07 Jun 2015 12:00

Re: Ansteuerung mittels MIDI Controller

Beitrag von Tida »

Sorry for using german language. At the moment I'm more thinking about a self made MIDI controller software but only for Windows platform. I could share it if you like. A good base concerning VB.net programming would be:

https://www.codeproject.com/articles/81 ... sual-basic
PhilM
Mitglied
Beiträge: 171
Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium

Re: Ansteuerung mittels MIDI Controller

Beitrag von PhilM »

Hello,

Thanks for sharing.

My initial interest was to control the size of the brush/clone tool/etc on the fly as I am drawing. The mouse/tablet pencil in one hand and the knob in the other hand.

I have experimented with an Arduino board and a rotary encoder. It is quite simple to setup and program. Just a few lines.
Cost is minimal (encoder = 1.5$).
But at that point I only have 1 knob and no enclosure for it.
If you require a somewhat "finished" product with multiple knobs and push buttons with leds, it will end up to cost more than a Korg or a Behringer.

As far as the reference to the VStudio program you have refenced, I have loaded "Bome midi translator Classic" which is free (non commercial use). You can capture and see the midi codes.
But your suggested code is interesting and a good starting point for a home made solution.
https://www.bome.com/products/mtclassic

There is an interesting blog about Midi2LR from Dan Marker :
https://www.danorst.com/single-post/2017/07/26/xtouch
With a lot of explanations and links.

In particular, there is a link to an open source project :
https://github.com/rsjaffe/MIDI2LR/rele ... g/v2.2.0.0
It would be nice if someone could fork that code to make it a Photoline plugin.
I can't measure the effort to do it.
The advantage is that it would start and stop executing with Photoline.

If I were to buy a Behringer or a Korg, I would dedicate knobs to the size and fuzziness of my brush. Then also knobs for panning and zooming. And as you suggested for editing the fields of the adjustment layers.
I would dedicate push buttons for creating new layer and the most frequent adjustment layers.

Feel free to ask details.

Best regards

Philippe
Benutzeravatar
Gerhard Huber
Entwickler
Entwickler
Beiträge: 4143
Registriert: Mo 18 Nov 2002 15:30
Wohnort: Bad Gögging

Re: Ansteuerung mittels MIDI Controller

Beitrag von Gerhard Huber »

Ich möchte mich hier mal rein interessehalber auch mal einschalten.
Ich denke nicht, dass es viele Leute gibt, die einen MIDI Controller besitzen.
Was ist das eigentlich, im Internet fand ich da so kleine "Keyboards" mit diversen Tasten und Knöpfen außen rum?
Diese Teile werden wohl per USB an den Computer gesteckt.
Sprechen wir hier von Windows oder macOS?
Für die Teile gibt es dann wohl, zumindest unter Windows, einen Treiber. Was bewirkt der? Hat das Betätigen des Controllers irgendeine Auswirkung auf z.B. ein beliebiges Textprogramm?
PhilM
Mitglied
Beiträge: 171
Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium

Re: Ansteuerung mittels MIDI Controller

Beitrag von PhilM »

Gerhard,

Here is what the keyboard looks like :
https://www.musicstore.de/fr_BE/EUR/Beh ... gLrt_D_BwE
Only cost 50$.

There is no specific driver that I know, it is USB plug and play.
It sends MIDI messages that are interpreted by musical softwares.

It seems to be popular to use it to pilot Lightroom (see my previous post on open source project).
Available on both Windos and Mac.

Philippe
Benutzeravatar
Hoogo
Betatester
Beiträge: 4021
Registriert: So 03 Jul 2005 13:35
Wohnort: Mülheim/Ruhr

Re: Ansteuerung mittels MIDI Controller

Beitrag von Hoogo »

Quite some money for just an experiment.
By the way: People with flight simulators use similar gear.
----------------
Herr Doktor, ich bin mir ganz sicher, ich habe Atom! /Doctor, doctor, I'm sure, I've got atoms!
Tida
Mitglied
Beiträge: 91
Registriert: So 07 Jun 2015 12:00

Re: Ansteuerung mittels MIDI Controller

Beitrag von Tida »

@Gerhard

Would be great if Photoline could be directly be supported by MIDI controller. In Video for example Sony Vegas Pro does support MIDI input. Otherwise it would be a big help if certain dropdown textboxes, buttons and rotary text boxes could be activated by keyboard shortcuts. An example would be the drop box for blend mode, the New Adjustment Layer button etc. Then one would be able to run up and down by UP and DOWN ARROW directly.
Furthermore it would be great if dialog boxes could be more optimized for toggling through their elements by TAB control.
Tida
Mitglied
Beiträge: 91
Registriert: So 07 Jun 2015 12:00

Re: Ansteuerung mittels MIDI Controller

Beitrag von Tida »

PhilM hat geschrieben: Mo 30 Apr 2018 17:19
I have experimented with an Arduino board and a rotary encoder. It is quite simple to setup and program. Just a few lines.
Cost is minimal (encoder = 1.5$).
But at that point I only have 1 knob and no enclosure for it.
If you require a somewhat "finished" product with multiple knobs and push buttons with leds, it will end up to cost more than a Korg or a Behringer.
Another more direct way would be to buy a Contour Shuttle. This runs with Photoline quite well.

https://contourdesign.de/produkt/shuttlepro-v2-2/
PhilM
Mitglied
Beiträge: 171
Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium

Re: Ansteuerung mittels MIDI Controller

Beitrag von PhilM »

@Hoogo
Quite some money for just an experiment.
If you are a professional, your productivity will pay for it very quickly.
If you are a photographer, 50 $ is not much compare what you spend for gear, lens, tripod ...

It is not experimental, there are a few commercial solutions.
See :
https://palettegear.com/
For PS, Lightroom, Adobe Premiere, Capture One ...
https://loupedeck.com/
For Lightroom

But they are more expensive, in the range of 200$.
Tida
Mitglied
Beiträge: 91
Registriert: So 07 Jun 2015 12:00

Re: MIDI Controller usage for Photoline

Beitrag von Tida »

Just an idea about my implanted "One Line Macro language" (driven by different adjustable timers) which will give enough possibilities to program the MIDI controller :)
Still waiting for MIDI controller to arrive. I can only test it with shortcut keys and my Contour Shuttle. Hence I'm now able to program the buttons of the contour shuttle to jump to buttons or drop down menus and click on them in different ways. (That is not possible with their current driver)

Code: Alles auswählen


#### SENDKEYS ####
      Case "KEY"  Usage of   https://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.send(v=vs.110).aspx
      
#### M  MOUSE #### (L  Left     R  Right       M  Middle)
        'D  Hold Down
      Case "MLD"  MOUSEEVENTF_LEFTDOWN,dX,dY
      Case "MRD"  MOUSEEVENTF_RIGHTDOWN,dX,dY
      Case "MMD"  MOUSEEVENTF_MIDDLEDOWN,dX,dY

       'U  Go Up
      Case "MLU"  MOUSEEVENTF_LEFTUP,dX,dY
      Case "MRU"  MOUSEEVENTF_RIGHTUP,dX,dY
      Case "MMU"  MOUSEEVENTF_MIDDLEUP,dX,dY

        'MC  Click 
      Case "MCL"
          MOUSEEVENTF_LEFTDOWN
          MOUSEEVENTF_LEFTUP
      Case "MCR"
          MOUSEEVENTF_RIGHTDOWN
          MOUSEEVENTF_RIGHTUP
      Case "MCM"
          MOUSEEVENTF_MIDDLEDOWN
          MOUSEEVENTF_MIDDLEUP

        'MD  Double Click 
      Case "MDL"
          MOUSEEVENTF_LEFTDOWN
          MOUSEEVENTF_LEFTUP
          MOUSEEVENTF_LEFTDOWN
          MOUSEEVENTF_LEFTUP
      Case "MDR"
          MOUSEEVENTF_RIGHTDOWN
          MOUSEEVENTF_RIGHTUP
          MOUSEEVENTF_RIGHTDOWN
          MOUSEEVENTF_RIGHTUP
      Case "MDM"
          MOUSEEVENTF_MIDDLEDOWN
          MOUSEEVENTF_MIDDLEUP
          MOUSEEVENTF_MIDDLEDOWN
          MOUSEEVENTF_MIDDLEUP


#### MM  Mouse MOVE To Relative Position
      Case "MMP"  
          MOUSEEVENTF_MOVE,dX,dY



       '#### CP  Place Absolute Cursor Position
      Case "CPP"   ' CPP#####:#####
          SetCursorPos, X,Y
      Case "CPA"
          SetCursorPos(XA,YA)
      Case "CPB"
          SetCursorPos(XB,YB)
      Case "CPC"
          SetCursorPos(XC,YC)
      Case "CPD"
          SetCursorPos(XD,YD)
      Case "CPE"
          SetCursorPos(XE,YE)


#### Toggle #####
      Case "TGU"    ' TGU# - Toggle Up Command (Change Parameter) # Times
          TP = TP + 1
          If TP > TPmax Then TP = 0
      Case "TGD"    ' TGU# - Toggle Up Command (Change Parameter) # Times
          TP = TP - 1
          If TP < 0 Then TP = TPmax
      Case "TPA"
          TP = 0
      Case "TPB"
          TP = 1
      Case "TPC"
          TP = 2
      Case "TPD"
          TP = 3
      Case "TPE"
          TP = 4

      Case "TXY"    ' Toggle between A,B,C,D,E
          SetCursorPos(TP_X,TP_Y)
          
Capture.JPG
Capture2.JPG
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Zuletzt geändert von Tida am Do 03 Mai 2018 00:40, insgesamt 1-mal geändert.
Tida
Mitglied
Beiträge: 91
Registriert: So 07 Jun 2015 12:00

Re: MIDI Controller usage for Photoline

Beitrag von Tida »

Capture2.JPG
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
PhilM
Mitglied
Beiträge: 171
Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium

Re: Ansteuerung mittels MIDI Controller

Beitrag von PhilM »

@Tida

Hello,

"One Line Macro language"
What language are you talking about ?

Philippe
Tida
Mitglied
Beiträge: 91
Registriert: So 07 Jun 2015 12:00

Re: Ansteuerung mittels MIDI Controller

Beitrag von Tida »

@PhilM
"One Line Macro language"
That means that several commands which has to be given should line up in one Cell of a table. As you might see in the 3rd row of above table under CODE MAIN it is mentioned:

KEY{TAB}_CPA_MLC

That means as soon as MIDI signal or Keyboard signal (here Alt+1, upper button left of Contour Shuttle) shows up, following will happen:

(1) Key command TABULATOR will make sure that in case that a drop down lists is open, it will be closed
(2) Mouse Cursor will be placed at position x=2100, y=35
(3) Mouse Left Click will drop down the list of a ComboBox (here Display Mode)

The advantage is that its more readable and it is easy to either add, change, move, insert or delete commands.