|
|
|
11-30-2019, 03:38 AM
|
#1
|
Human being with feelings
Join Date: May 2014
Location: Germany
Posts: 643
|
Reaper 6: embedded JSFX
Hey, is there any way to detect "embedded" mode in JSFX? Would be very nice to show proper "embedded" GUI in TCP/MCP
|
|
|
11-30-2019, 04:09 AM
|
#2
|
Human being with feelings
Join Date: Dec 2012
Posts: 13,333
|
Do you mean whether plugin supports or not embedded mode? If yes, then it just should has its own GUI.
|
|
|
11-30-2019, 04:25 AM
|
#3
|
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
|
Do you mean allow the code to determine whether or not the GUI of the plugin is "currently floated" (which is the term shown by the Reaper GUI) ?
This might come handy sometimes, even though a totally new look when floated seems rather surprising for the user.
-Michael
|
|
|
11-30-2019, 08:12 AM
|
#4
|
Human being with feelings
Join Date: May 2014
Location: Germany
Posts: 643
|
... something like this:
Code:
@gfx 400 240
(is_embedded == 0 ) ? // normal floating GUI
(
1; // Normal GUI
):
(is_embedded == 1 ) ? // MCP embedded
(
1; // MCP embedded
):
(is_embedded == 2 ) ? // TCP embedded
(
1; // TCP embedded
);
|
|
|
11-30-2019, 08:19 AM
|
#5
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Quote:
Originally Posted by mschnell
Do you mean allow the code to determine whether or not the GUI of the plugin is "currently floated" (which is the term shown by the Reaper GUI) ?
|
Embedding in the TCP/MCP may require a very different UI compared to when the FX is floating and can be as big as it needs to.
Also, this thread should be in the pre-release forum since it's about Reaper 6.
|
|
|
11-30-2019, 11:06 AM
|
#6
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
|
Seems like a good idea (being able to query embedded status).
|
|
|
11-30-2019, 12:09 PM
|
#7
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,239
|
good idea. At the moment at least for MCP, you can just check the width and height and simplify or make another UI in case the window is very small which is the case of MCP. An example of it is the included jsfx general_dynamics. For TCP the area can be larger so it wouldn't work there.
|
|
|
12-01-2019, 03:51 AM
|
#8
|
Human being with feelings
Join Date: Jul 2008
Location: The Netherlands
Posts: 3,645
|
I'm not saying that a way to explicitly detect embedded mode wouldn't be useful, but you could do what gfx_analyzer does i.e. simply go "embedded" when below a certain size.
|
|
|
12-01-2019, 07:13 AM
|
#9
|
Human being with feelings
Join Date: May 2014
Location: Germany
Posts: 643
|
Quote:
Originally Posted by Tale
I'm not saying that a way to explicitly detect embedded mode wouldn't be useful, but you could do what gfx_analyzer does i.e. simply go "embedded" when below a certain size.
|
Right, but maybe you want to show something different, independently from size...
|
|
|
12-02-2019, 11:48 AM
|
#10
|
Human being with feelings
Join Date: Oct 2019
Location: Location: Location: Location: ###Fatal error: Interface RecursiveLocation cannot implement itself###
Posts: 40
|
It makes sense to have the info for all possibilities. The current way of checking size and making the UI responsive is probably good for most cases, including smaller floating windows.
|
|
|
12-05-2019, 11:18 AM
|
#11
|
Human being with feelings
Join Date: Nov 2012
Posts: 47
|
Hi,
Iīve developed an EQ plugin with JUCE and would love to add itīs GUI to the REAPER 6 MCP, with the new "embedded FX GUI" feature.
Would anyone have any starters on how this could be acheived? Iīve been looking around but couldnīt find anything...
|
|
|
12-05-2019, 12:29 PM
|
#12
|
Human being with feelings
Join Date: Jan 2007
Location: mcr:uk
Posts: 3,889
|
Quote:
Originally Posted by Gertius
Hi,
Iīve developed an EQ plugin with JUCE and would love to add itīs GUI to the REAPER 6 MCP, with the new "embedded FX GUI" feature.
Would anyone have any starters on how this could be acheived? Iīve been looking around but couldnīt find anything...
|
They probably haven't documented it yet as it's pretty new. Maybe try emailing Cockos about it?
|
|
|
12-05-2019, 01:24 PM
|
#13
|
Human being with feelings
Join Date: Nov 2012
Posts: 47
|
Quote:
Originally Posted by IXix
They probably haven't documented it yet as it's pretty new. Maybe try emailing Cockos about it?
|
Thanks for the tip! I will try that.
|
|
|
12-08-2019, 09:32 PM
|
#14
|
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 15,721
|
Quote:
Originally Posted by Gertius
Hi,
Iīve developed an EQ plugin with JUCE and would love to add itīs GUI to the REAPER 6 MCP, with the new "embedded FX GUI" feature.
Would anyone have any starters on how this could be acheived? Iīve been looking around but couldnīt find anything...
|
There are some descriptions of everything needed in the freshly updated reaper-plugin.h:
https://landoleet.org/dev/reaper_plugin.h
(search for fx-embed). JUCE is a beast, though, figuring out where to integrate might be the trickiest part.
|
|
|
12-08-2019, 09:33 PM
|
#15
|
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 15,721
|
Quote:
Originally Posted by TBProAudio
Right, but maybe you want to show something different, independently from size...
|
I thought about adding a hint, but really I can't think of a reason why you'd want the behavior to differ... if you did, might as well make it configurable to the user anyway
|
|
|
12-10-2019, 12:28 AM
|
#16
|
Human being with feelings
Join Date: Nov 2012
Posts: 47
|
Quote:
Originally Posted by Justin
There are some descriptions of everything needed in the freshly updated reaper-plugin.h:
https://landoleet.org/dev/reaper_plugin.h
(search for fx-embed). JUCE is a beast, though, figuring out where to integrate might be the trickiest part.
|
Thanks! Iīll look into it.
|
|
|
12-11-2019, 03:00 PM
|
#17
|
Human being with feelings
Join Date: Oct 2019
Location: Location: Location: Location: ###Fatal error: Interface RecursiveLocation cannot implement itself###
Posts: 40
|
Quote:
Originally Posted by Justin
I thought about adding a hint, but really I can't think of a reason why you'd want the behavior to differ... if you did, might as well make it configurable to the user anyway
|
There is a vertical flow in the MCP which size or aspect ratio can't be used to detect with accuracy. eg moving waveform display based control in floating + TCP vs MCP.
|
|
|
01-07-2020, 10:50 AM
|
#18
|
Human being with feelings
Join Date: Apr 2009
Location: Berlin, Germany
Posts: 1,248
|
WIP embed-fx support in iPlug2...
|
|
|
01-07-2020, 10:58 AM
|
#19
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
|
Quote:
Originally Posted by olilarkin
WIP embed-fx support in iPlug2...
|
Cool!
|
|
|
01-08-2020, 08:46 AM
|
#20
|
Human being with feelings
Join Date: May 2014
Location: Germany
Posts: 643
|
Quote:
Originally Posted by olilarkin
WIP embed-fx support in iPlug2...
|
Great. Is example code available? Thank you.
OK, I found it on GH.
Last edited by TBProAudio; 01-08-2020 at 08:56 AM.
|
|
|
01-24-2020, 07:31 PM
|
#21
|
Human being with feelings
Join Date: Sep 2013
Posts: 3
|
Quote:
Originally Posted by TBProAudio
Great. Is example code available? Thank you.
OK, I found it on GH.
|
Any chance we'll see an mvMeter2 MCP embed? I'd love that .
|
|
|
01-24-2020, 11:12 PM
|
#22
|
Human being with feelings
Join Date: May 2014
Location: Germany
Posts: 643
|
Quote:
Originally Posted by Simon-Claudius
Any chance we'll see an mvMeter2 MCP embed? I'd love that .
|
Lets see
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 10:57 PM.
|