View Single Post
Old 01-29-2018, 02:18 PM   #5
Human being with feelings
Join Date: Feb 2016
Posts: 143

Reckon it might need splitting into two separate code blocks, one to process midi inputs, one to process the OSC feedback from Reaper with a single flag UIopen that tracks the GUI state.

Loosely in pseudo code something like

if button is pressed
   if UIopen
      close VSTi GUI
      open VSTi GUI

if /fxinst/openui 
    if oscparm(0,f) == 0
      UIopen=false     // it is closed
    if oscparm(0,f) == 1
      UIopen=true      // it is open
goldenarpharazon is offline   Reply With Quote