Problem with multiple instances of plugin

For general discussion related FlowStone
aefa
Posts: 48
Joined: Wed Mar 26, 2014 12:52 pm

Re: Problem with multiple instances of plugin

Post by aefa »

I wouldn't know what to tell you! I had a rough time setting reaper for that was my first time trying it.
Regardless, my plugin doesn't put out sound. It's just a midi that randomizes patterns on other vsts. Kontakt and BFD in this case
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: Problem with multiple instances of plugin

Post by RJHollins »

From my Reaper experience [with FS created MIDI controller], the MASTER BUS of Reaper seems to have a unique property.

In short ... there MUST be at least one [1] multi-track [blank] before anything [fs] works. This was especially true with RUBY in the FS project.

On the old SM forum [and probably carried over to the FS forum], you may find my 'trials and tribulations' that I encounter.

All I've been able to gather [might be] that a single multi-track must be made [it can be blank], that will now tell the MASTER BUS things like the SampleRate of the project, along with other things that seem to activate the Master Bus effects section. I tried to get clarification from Reaper Dev's to no avail.

It's possible you might be having this exact problem ... I don't know. For me, it also affected 'Buttons', Knobs, Pull Down Menus, with RUBY.

Hope this gleans some insight/help.
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: Problem with multiple instances of plugin

Post by Spogg »

You may already know this but Reaper needs to be in Record-enabled mode, and also for the plugin to fully work when not actually recording you need to do this:

In Reaper go to Options|Preferences|Audio|Playback and tick the box for Run Fx when stopped.

Maybe this will help?

Cheers

Spogg
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Problem with multiple instances of plugin

Post by tulamide »

This might also be an old issue, that we should be aware of by now. Ruby shares only one runtime among all instances of the same plugin. So, if the Ruby code uses class variables (e.g. @@myvariable) or globals/constants, then all instances may change the same variable/global, which will lead to strange effects.

But I don't remember any Ruby module of the last 2+ years that still makes use of class variables or globals.
"There lies the dog buried" (German saying translated literally)
aefa
Posts: 48
Joined: Wed Mar 26, 2014 12:52 pm

Re: Problem with multiple instances of plugin

Post by aefa »

I suppose it was the problem with the Ruby variables and runtime sharing. The code was pretty straight forward (to me) but still, the plugin would only word properly when it was on the foreground. I managed to replace the whole code with prims and it worked like a charm. Thanks to Spogg, who pointed me to an error on the code.
Post Reply