Old 02-09-2017, 11:33 AM   #1
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default JUCE GUI example for a Reaper extension

edit 30th March 2017 : For anyone interested, I did a (relatively) simple example project that adds actions to open Juce GUI windows.

The code in action :

http://imgur.com/a/l65H1

Git repository :

https://bitbucket.org/xenakios/reape...xample2017/src

The code of most interest is in main.cpp. A fairly big portion of the code deals with adding and handling Reaper actions. It can be done in a more straight forward manner but I just reused some code here I've done for it previously to make dealing with the actions easier.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.

Last edited by Xenakios; 03-30-2017 at 04:27 AM.
Xenakios is offline   Reply With Quote
Old 02-09-2017, 01:25 PM   #2
WyattRice
Human being with feelings
 
WyattRice's Avatar
 
Join Date: Sep 2009
Location: Virginia
Posts: 2,067
Default

Wow,
Thanks for this Xen.

I'll definitely check this out as soon as I get a chance.
Many thanks for sharing.

Wyatt
__________________
DDP To Cue Writer. | DDP Marker Editor.
WyattRice is offline   Reply With Quote
Old 02-09-2017, 01:33 PM   #3
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Please note that the web browser component has no special meaning or purpose, I just put it in so that there would be something relatively interesting to see in the demo screen capture.

I have no particular plans to do anything with the web browser component and I actually don't even have an idea if anything meaningful can be done with it in the context of a Reaper extension plugin, due to the limitations of the Juce web browser component.


edit : The code no longer uses the Webbrowser component.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.

Last edited by Xenakios; 03-30-2017 at 04:29 AM.
Xenakios is offline   Reply With Quote
Old 02-09-2017, 01:37 PM   #4
pcartwright
Human being with feelings
 
Join Date: Jan 2009
Posts: 1,030
Default

Quote:
Originally Posted by Xenakios View Post
Please note that the web browser component has no special meaning or purpose, I just put it in so that there would be something relatively interesting to see in the demo screen capture.

I have no particular plans to do anything with the web browser component and I actually don't even have an idea if anything meaningful can be done with it in the context of a Reaper extension plugin.
Maybe routing audio from a website to a Reaper track input digitally? That would be cool.
pcartwright is offline   Reply With Quote
Old 02-09-2017, 01:38 PM   #5
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by pcartwright View Post
Maybe routing audio from a website to a Reaper track input digitally? That would be cool.
Yeah exactly, that's the kind of stuff that people probably would want to do, but which likely is not going to be possible.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 02-10-2017, 01:51 AM   #6
ceanganb
Human being with feelings
 
Join Date: May 2009
Location: Brazil
Posts: 323
Default

Xenakios, I'm so glad I have access to Reaper API with JUCE that I'm almost nervous. But since my knowledge of Reaper API, JUCE and C++ are all average, do you mind if I make some stupid questions?

1) About this method, ´setContentNonOwned(&m_browser, true)´, I tried to create another component but it only works with ´setContentNonOwned(new myComponent, true)´. I know it's a weakness in my C++, but I want to be sure I can use it this way.

2) Why don't I have access to FNG_ API?

Thanks.
__________________
Ceanganb
ceanganb is offline   Reply With Quote
Old 02-10-2017, 07:14 AM   #7
SpiderFox
Human being with feelings
 
Join Date: Jan 2017
Posts: 29
Default

Thank you very much!

Looks good!
I hope I will find time today to have a close look.
SpiderFox is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:44 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.