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 trigger basics

For general discussion related FlowStone

Ruby trigger basics

Postby gvalletto » Tue Mar 12, 2019 3:07 pm

Hi all. I want to improve the time precision of a complex step modulator made with DSP code and green prims.

Does anybody know how to make Ruby codes to replace these green trigger prims?
Attachments
trigger.PNG
trigger.PNG (6.57 KiB) Viewed 13579 times
User avatar
gvalletto
 
Posts: 117
Joined: Fri Jul 09, 2010 10:15 pm
Location: Argentina

Re: Ruby trigger basics

Postby gvalletto » Tue Mar 12, 2019 7:15 pm

...at least tell me where to find that to learn to make it myself... :)
User avatar
gvalletto
 
Posts: 117
Joined: Fri Jul 09, 2010 10:15 pm
Location: Argentina

Re: Ruby trigger basics

Postby tulamide » Tue Mar 12, 2019 8:19 pm

Here you are. However, it doesn't make sense, since you convert from green to Ruby, then back to green. The unreliable timing of green stays. And the overhead will probably make it more CPU intensive.
Attachments
bool-trigger.fsm
(785 Bytes) Downloaded 813 times
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Ruby trigger basics

Postby gvalletto » Tue Mar 12, 2019 8:44 pm

Thanks Tulamide! I understand the reason why it has no sense if I use them in an isolated way (that´s, a Ruby module with just that small code). Perhaps if I add that code in several already existent Ruby modules on my scheme, so to avoid go and back to green, it may make the difference... I will try.
User avatar
gvalletto
 
Posts: 117
Joined: Fri Jul 09, 2010 10:15 pm
Location: Argentina

Re: Ruby trigger basics

Postby RJHollins » Tue Mar 12, 2019 10:02 pm

Thanks Tulamide!
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: Ruby trigger basics

Postby RJHollins » Wed Mar 13, 2019 10:40 am

Appreciate the RUBY offer ... but I could not load in the schematic [v:3.06]
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: Ruby trigger basics

Postby gvalletto » Wed Mar 13, 2019 7:42 pm

RJHollins wrote:Appreciate the RUBY offer ... but I could not load in the schematic [v:3.06]


Search for the topic "Ruby basic examples". There I put the scheme fixed.

viewtopic.php?f=2&t=15205&p=48563&hilit=Ruby+basic+examples#p48563
User avatar
gvalletto
 
Posts: 117
Joined: Fri Jul 09, 2010 10:15 pm
Location: Argentina

Re: Ruby trigger basics

Postby gvalletto » Fri Mar 15, 2019 12:35 pm

tulamide wrote:Here you are. However, it doesn't make sense, since you convert from green to Ruby, then back to green. The unreliable timing of green stays. And the overhead will probably make it more CPU intensive.


Hi Tulamide. I deleted some of the code of your trigger scheme, and surprise, it still working... what can be the difference? Here I attach the original and the modified version.
Attachments
ruby trigger FS3081.fsm
(1.77 KiB) Downloaded 798 times
User avatar
gvalletto
 
Posts: 117
Joined: Fri Jul 09, 2010 10:15 pm
Location: Argentina

Re: Ruby trigger basics

Postby tulamide » Fri Mar 15, 2019 5:30 pm

When only having a line of code (or several) that will be executed whenever the RubyEdit gets triggered, you can omit the event method definition. I wouldn't advise it though. Read chapter 8 of the user guide, it is a treasure for questions like these!
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Ruby trigger basics

Postby gvalletto » Fri Mar 15, 2019 6:59 pm

Thanks! II read it several times, but I'll read it again ...
User avatar
gvalletto
 
Posts: 117
Joined: Fri Jul 09, 2010 10:15 pm
Location: Argentina

Next

Return to General

Who is online

Users browsing this forum: No registered users and 96 guests