Support

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

createEdit doesn't work in inactive VST plugin?

For general discussion related FlowStone

createEdit doesn't work in inactive VST plugin?

Postby ortseam » Sat Jan 04, 2014 12:02 am

Hi!
I've made a simple knob with numeric parameter entry using RUBY module. Everything works fine in Flowstone. But there is a problem with test VST module using this kind of knob. It works only if the VST module has a signal on it's input. When I set it inactive or simply stop the DAW the numeric field doesn't react to the mouse clicks any more (the knob itself does). When playing with this problem I found that all RUBY modules are "frozen" in inactive VST plug except the ones connected to MGU module by video connector. But in described case createEdit command is placed in MGU connected module inside def mouseLDouble ***** end block and should work as far as I understand. Help me please to find, what's wrong or simply give me *FSM example with RUBY based numeric data entry which can be translated to correctly working VST-plug.

Thank you!
ortseam
 
Posts: 12
Joined: Sun Dec 27, 2009 1:35 pm

Re: createEdit doesn't work in inactive VST plugin?

Postby tester » Sat Jan 04, 2014 1:11 am

Extract the routine you speak of to a degree you can, post your schematic, so that others could help.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: createEdit doesn't work in inactive VST plugin?

Postby Nubeat7 » Sat Jan 04, 2014 8:43 am

hello ortseam,

watch my example here:
viewtopic.php?f=3&t=2197

manual data input for the knobs too

you can find the knobs here:

viewtopic.php?f=3&t=641&start=50

knob 2.2 uses create edit in the label module
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: createEdit doesn't work in inactive VST plugin?

Postby ortseam » Sat Jan 04, 2014 9:59 am

Nubeat7 wrote:watch my example here:
viewtopic.php?f=3&t=2197

Thank you! Tried to make VST module from your example. The same problem is present: numeric entry does not work if the plugin doesn't receive audio data (DAW is stopped).

UPD: the same with knob 2.2. It seems to be the FS bug ((
ortseam
 
Posts: 12
Joined: Sun Dec 27, 2009 1:35 pm

Re: createEdit doesn't work in inactive VST plugin?

Postby Nubeat7 » Sat Jan 04, 2014 10:10 am

doesnt it update the values when changing it in stopped mode?
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: createEdit doesn't work in inactive VST plugin?

Postby ortseam » Sat Jan 04, 2014 10:38 am

Nubeat7 wrote:doesnt it update the values when changing it in stopped mode?

It even doesn't call the editing field where you print the figures. BUT when you move the knob the number changes accordingly.
ortseam
 
Posts: 12
Joined: Sun Dec 27, 2009 1:35 pm

Re: createEdit doesn't work in inactive VST plugin?

Postby Nubeat7 » Sat Jan 04, 2014 10:47 am

which DAW are you using? because on my machines with renoise 3 the editboxes are working (tested in the morning) cubase should work too, but i can test it in the evening because i`m @ work atm..
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: createEdit doesn't work in inactive VST plugin?

Postby ortseam » Sat Jan 04, 2014 11:06 am

Nubeat7 wrote:which DAW are you using? because on my machines with renoise 3 the editboxes are working (tested in the morning) cubase should work too, but i can test it in the evening because i`m @ work atm..

REAPER. It has an option not to run VST effects when stopped. So to be clear I should say: not DAW run/stop state means but the plugin off/on state. Try to bypass your plug in Cubase and look at the result.
ortseam
 
Posts: 12
Joined: Sun Dec 27, 2009 1:35 pm

Re: createEdit doesn't work in inactive VST plugin?

Postby trogluddite » Sat Jan 04, 2014 1:32 pm

Confirmed here on Reaper - and 'createDropList' also has the same behaviour.

In most DAWs, plugins are still processed when the transport is stopped - so that you can still hear 'live' inputs monitored via FX etc. But the Reaper setting that ortseam mentioned allows plugins to be completely shut down while stopped so that they use a minimum of CPU time - and this makes the Ruby event timer go to sleep, because it is synchronised to the audio buffers. I imagine the same would happen in other DAWs that have a plugin "on/off" button that is independent of the FX bypass.

For some reason 'createEdit' and 'createDropList' must be using the Ruby event system, so they get affected by the shut-down. This is seen clearly when the plugin is 'woken up' again - the 'buffered' events spring to life, and any pending edit boxes or drop lists will suddenly pop up.

This is not good!
IMHO, the Ruby timer should default to its "no audio" 100Hz clock when audio is stopped. A dead GUI is simply not what the user expects - and the sudden re-appearance of 'stored' events when the plugin wakes up just adds to the confusion.
Worse still, if the user has been clicking like crazy to work out what the hell is going on, there could be so many 'stored' events that it blows the Ruby "excess processing" fuse - resulting in a completely dead GUI!!

Meantimes, there's not a lot of choice for a workaround...

- Don't turn off the plugins (but maybe there is a very good reason why you want to - and not good force other users of our plugins to change their preferences just to suit us!)
- Use the old 'green' dropLists and edit boxes (PITA if the rest of your GUI is in Ruby!)
- Somehow detect that the clock is stopped, and indicate to the user somehow that some features are locked under those conditions (Yuck!).

I'll pass this info on to the guys at DSPr to see if we can get them to fix it.
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
trogluddite
 
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: createEdit doesn't work in inactive VST plugin?

Postby ortseam » Sat Jan 04, 2014 1:43 pm

trogluddite Thanks a lot for your explanation! Everything is clear for me now.
ortseam wrote:I'll pass this info on to the guys at DSPr to add to their 'to do' list!

That would be very good! Thanks!
ortseam
 
Posts: 12
Joined: Sun Dec 27, 2009 1:35 pm

Next

Return to General

Who is online

Users browsing this forum: No registered users and 36 guests