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

Ruby Questions

For general discussion related FlowStone

Ruby Questions

Postby rlr » Sun Aug 26, 2012 3:39 pm

What's the preferred way to to implement user interface controls (button, slider, displays, etc) using the Ruby module (yes I did read the manuals before):
- use an Ruby module for each control?
- use a single Ruby module that contains all controls?
How efficient is the Ruby module (CPU, memory)? Does Flowstone start an instance of a Ruby interpreter for each Ruby module? Or is there only one interpreter?
rlr
 
Posts: 27
Joined: Tue Jul 13, 2010 9:17 pm

Re: Ruby Questions

Postby DSP » Thu Sep 06, 2012 4:02 pm

You can run lot's of ruby modules rather than one big one with out any effects on CPU etc.
DSP
 
Posts: 150
Joined: Fri May 14, 2010 10:55 pm

Re: Ruby Questions

Postby support » Sat Sep 08, 2012 6:51 pm

Hi rlr!

In FlowStone 3 we'll be providing updates to all the current interface controls using Ruby.

However, in FlowStone 2 we have a few controls already that use Ruby. These are under the 'vintage' heading. If you search for 'Vintage Knob' you'll see how we've used Ruby to make an animated knob (one that has a bitmap frame for each rotation).

In this module we decided to separate the drawing from the interaction and used a Ruby component for each. This is likely to be the way that we approach other interface control modules.

Have a look inside. Compared to the existing knobs which don't use Ruby I hope you'll find it's much easier to follow. In addition it uses around 90% fewer components.
User avatar
support
 
Posts: 151
Joined: Fri Sep 07, 2012 2:10 pm


Return to General

Who is online

Users browsing this forum: Google [Bot] and 75 guests