Old 04-13-2011, 07:21 PM   #1
d.bop
Human being with feelings
 
d.bop's Avatar
 
Join Date: Apr 2009
Location: Duluth, MN
Posts: 1,712
Default JS Global Variables - regxx Master List!

This thread was created to provide a list of JS plugins that are currently using the regxx variables for master/slave operation in REAPER. The purpose of this list is to avoid any possible collisions when using multiple plugins with global variables.

ATTN: Programmers!
Use this list to determine which regxx variables you should use in your plugins. When you upload your plugins, please add them to this list. Thanks!

ATTN: Plugin users!
Use this list to determine whether or not you will encounter any problems while using multiple master/slave JS plugins in your projects.

Thanks!


*Dear Mods...... sticky me?
*edit*
Thank you!

Last edited by d.bop; 04-13-2011 at 08:45 PM. Reason: I got stickied :)
d.bop is offline   Reply With Quote
Old 04-13-2011, 07:22 PM   #2
d.bop
Human being with feelings
 
d.bop's Avatar
 
Join Date: Apr 2009
Location: Duluth, MN
Posts: 1,712
Default

I'll start

Saturation_Master & Saturation_Slave
- Uses reg99
- Download link: https://stash.reaper.fm/v/8272/satura...ster-slave.zip

nonlinear_Master & nonlinear_Slave
- Uses reg98, reg97, and reg96
- Stash link: https://stash.reaper.fm/v/8273/nonlin...ster-slave.zip
d.bop is offline   Reply With Quote
Old 04-13-2011, 09:27 PM   #3
d.bop
Human being with feelings
 
d.bop's Avatar
 
Join Date: Apr 2009
Location: Duluth, MN
Posts: 1,712
Default

Till/Transient-driven Auto-Pan v1.0 (Master) & Till/Transient-driven Auto-Pan v1.0 (Slave)
- uses reg00, reg01, reg02, reg03, reg04, reg05, reg06, reg07, reg08, reg09
- included with REAPER

Till/Transient-driven Auto-Pan v1.1(Master) & Till/Transient-driven Auto-Pan v1.1 (Slave)
- uses reg00, reg01, reg02, reg03, reg04, reg05, reg06, reg07, reg08, reg09
- included with REAPER


There will be a conflict if both v1.0 and v1.1 are used together because they share the same regxx variables.
d.bop is offline   Reply With Quote
Old 05-21-2013, 05:40 PM   #4
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,737
Default

Perhaps we should make something where plugins can register named globals, i.e. _glob_* are automatically shared across all instances...
Justin is offline   Reply With Quote
Old 05-22-2013, 02:28 AM   #5
IXix
Human being with feelings
 
Join Date: Jan 2007
Location: mcr:uk
Posts: 3,891
Default

Quote:
Originally Posted by Justin View Post
Perhaps we should make something where plugins can register named globals, i.e. _glob_* are automatically shared across all instances...
That would be great!
IXix is online now   Reply With Quote
Old 05-22-2013, 03:54 AM   #6
bang
Human being with feelings
 
bang's Avatar
 
Join Date: Jul 2006
Posts: 626
Default

Quote:
Originally Posted by Justin View Post
Perhaps we should make something where plugins can register named globals, i.e. _glob_* are automatically shared across all instances...
that would be sweet! /dan
bang is offline   Reply With Quote
Old 05-23-2013, 11:27 AM   #7
beyond
Human being with feelings
 
Join Date: Jun 2007
Location: Palm Beach FL
Posts: 265
Default

Quote:
Originally Posted by Justin View Post
Perhaps we should make something where plugins can register named globals, i.e. _glob_* are automatically shared across all instances...
Any chance, these could also be delay compensated (multithreaded render ahead, etc.)?
beyond is offline   Reply With Quote
Old 05-23-2013, 01:00 PM   #8
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,737
Default

Quote:
Originally Posted by beyond View Post
Any chance, these could also be delay compensated (multithreaded render ahead, etc.)?
Not possible, no.


Getting back to the main topic:

In the next build (4.5rc2), you will be able to use _global.* across instances, and regXX are mapped to _global.regXX.

You can also use the namespace facility with this, so you could do:
Code:
function inc() (
  this.value += 1;
);

_global.inc(); // _global.value += 1;
_global.boo.inc(); // _global.boo.value += 1;
Justin is offline   Reply With Quote
Old 12-05-2014, 12:21 PM   #9
Rubberfrog
Human being with feelings
 
Join Date: Jun 2009
Location: vancouver
Posts: 6
Default Is it possible...

Is it possible to pass globals from eel to JSFX, (maybe OSCii-bot, and WALTER(?is eel?)). I realize that that they are probably implementations of eel inside different programs, and if so that pretty well would sum up why not. but It would open up (I'm gonna call it routing )routing.

for instance say you want some way to make a dockable gui (stuck in JSFX) of dynamic midi sliders or controls(OSCII-bot,JSFX) to control Reascript sytle stuff(eel) and send the data back to the Gui.

or +walter... use osciibot or jsfx to take in my controls and pass them to an eel script actively updating variables in walter.
Rubberfrog is offline   Reply With Quote
Old 02-26-2015, 05:03 AM   #10
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,268
Default

could someone put some example code of how to use _global in EEL? Where are _global variables documented?
heda 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 12:25 PM.


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