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
Multiple instances of a plugin in DAW?
11 posts
• Page 1 of 2 • 1, 2
Multiple instances of a plugin in DAW?
I am having erratic hangups with Reaper when I use three instances of my plugin La Voz Cantante. It does not happen if I only load one instance. Is there a problem with having more than one instance of the same plugin in a daw? For instance (no pun intended), the preset parameters have similar names in each instance, would that be a concern? What about Ruby?
-
martinvicanek - Posts: 1328
- Joined: Sat Jun 22, 2013 8:28 pm
Re: Multiple instances of a plugin in DAW?
I never had such issues. Maybe its a combination with your plugin and Reaper? Did you try it in a different daw?
- adamszabo
- Posts: 667
- Joined: Sun Jul 11, 2010 7:21 am
Re: Multiple instances of a plugin in DAW?
I have only Reaper to test with. But I can try FS3.x vs. FS4, 32 vs. 64 bit, etc. However, before I do I wanted to know if multiple instances can be a problem because my findings seemed like a cue.
-
martinvicanek - Posts: 1328
- Joined: Sat Jun 22, 2013 8:28 pm
Re: Multiple instances of a plugin in DAW?
I loaded six La Voz Cantante 6B in FL Studio and it works just fine over here.
- adamszabo
- Posts: 667
- Joined: Sun Jul 11, 2010 7:21 am
Re: Multiple instances of a plugin in DAW?
On several occasions I’ve loaded multiple instances of a FS plugin in Reaper without issue. It might be down to your audio interface ASIO setup. Did you try to increase the buffer size?
As I understand it, having the same plugin with the same preset parameters etc should be no problem because each instance is treated in isolation by the DAW.
As I understand it, having the same plugin with the same preset parameters etc should be no problem because each instance is treated in isolation by the DAW.
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Multiple instances of a plugin in DAW?
While for all instances of the same plugin only one Ruby engine runs, you would only have problems when using (caution: I might use the wrong wording here, sorry, I'm a stupid German)singleton globals. Methods, class instances and other variables than globals are per instance of your plugin.
What I mean by singleton? When using globals not in instances, but in class definitions. Such a global would only exist once for all instances of your plugin. It could be used for inter-plugin communication, but it is too risky, so I don't promote it.
Other than that you're safe.
What I mean by singleton? When using globals not in instances, but in class definitions. Such a global would only exist once for all instances of your plugin. It could be used for inter-plugin communication, but it is too risky, so I don't promote it.
- Code: Select all
class Klass
WORLDDOMINATION = True
end
## WORLDDOMINATION will exist once for ALL instances of Klass in ALL instances of the same plugin.
Other than that you're safe.
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Multiple instances of a plugin in DAW?
tulamide wrote:... for all instances of the same plugin only one Ruby engine runs ...
I’ve read this before but not really understood just how the Ruby engine can be shared and in common.
Does a plugin load the Ruby engine into memory and other similar or identical plugins will look there first? That would suggest something like static (absolute and defined) memory addressing rather than dynamic. It feels counter-intuitive that a DAW would allow such behaviour.
Just out of interest!
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Multiple instances of a plugin in DAW?
Spogg wrote:tulamide wrote:... for all instances of the same plugin only one Ruby engine runs ...
I’ve read this before but not really understood just how the Ruby engine can be shared and in common.
Does a plugin load the Ruby engine into memory and other similar or identical plugins will look there first? That would suggest something like static (absolute and defined) memory addressing rather than dynamic. It feels counter-intuitive that a DAW would allow such behaviour.
Just out of interest!
It has nothing to do with static memory.
But it has to do with how DAWs deal with plugins.
But first, please understand that Ruby is an application. It is just window-less. And just as you don't need static memory to run Flowstone, you also don't need it to run Ruby.
A dll contains instructions that tell the parent application what to do and how. It is not a fixed space in memory, filled with random bits and bytes. When a DAW loads a DLL it allows memory to be allocated for whatever functionality there is (here, instruments and effects) under supervision. You access the dll with so called entry points, which are specifically designed function calls. Now, when the same plugin is used again on another track, instead of allocating another huge portion of memory, it simply allows the same function calls to be executed in the original memory space. This is clever. It prevents memory overloading even under minimal RAM conditions, and at the same time the function calls are of course giving different results, depending on the caller. Exactly like two people can use a pocket calculator, the first asking for the result of 3 + 4, and the second asking for the result of 9 * 13. The same pocket calculator will give correct, different results to those two different people.
Since -spoken simplified- the dll only exists in memory once for all plugin instances, Ruby also exists only once for all instances, because only one dll called Ruby to run. It's a startup call, once loaded, it will neve be called again.
If I was good enough at explaining, you now also see why there are several Ruby apps running, when you load several different plugins.
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Multiple instances of a plugin in DAW?
Thanks for the detailed explanation tulamide!
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Multiple instances of a plugin in DAW?
That was clear to me .... thanks T for the explanation.
- RJHollins
- Posts: 1571
- Joined: Thu Mar 08, 2012 7:58 pm
11 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 67 guests