If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Global Variables
3 posts
• Page 1 of 1
Global Variables
It seems that global variables used in Ruby are shared even between VST plugin instances?
I notice that with this plugin I'm working on, that I had to circle back and make the arrays local because when they were global they affected different plugin instances on different tracks. Is this normal? If so, there may be some useful application for that with plugins.
I notice that with this plugin I'm working on, that I had to circle back and make the arrays local because when they were global they affected different plugin instances on different tracks. Is this normal? If so, there may be some useful application for that with plugins.
- S1User
- Posts: 58
- Joined: Thu Sep 17, 2015 4:05 pm
Re: Global Variables
yes it is normal. Instances of the same plugin share ruby interpreter, because they are instances of the same class. That means they effectively share everything in ruby that can be considered global (Constants, class and method declarations, class variables, etc.)
- KG_is_back
- Posts: 1196
- Joined: Tue Oct 22, 2013 5:43 pm
- Location: Slovakia
Re: Global Variables
Thanks. I incorrectly assumed that the Ruby classes would be instance specific when they were (I assume) converted to C++ or whatever on VST compile. Knowing otherwise now, there is some opportunity there to pass data between different plugin instances that I hadn't considered.
I'll have to look more into that.
I'll have to look more into that.
- S1User
- Posts: 58
- Joined: Thu Sep 17, 2015 4:05 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 40 guests