Ruby trigger basics

For general discussion related FlowStone
User avatar
gvalletto
Posts: 117
Joined: Fri Jul 09, 2010 10:15 pm
Location: Argentina
Contact:

Ruby trigger basics

Post by gvalletto »

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 16267 times
User avatar
gvalletto
Posts: 117
Joined: Fri Jul 09, 2010 10:15 pm
Location: Argentina
Contact:

Re: Ruby trigger basics

Post by gvalletto »

...at least tell me where to find that to learn to make it myself... :)
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Ruby trigger basics

Post by tulamide »

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 879 times
"There lies the dog buried" (German saying translated literally)
User avatar
gvalletto
Posts: 117
Joined: Fri Jul 09, 2010 10:15 pm
Location: Argentina
Contact:

Re: Ruby trigger basics

Post by gvalletto »

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.
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: Ruby trigger basics

Post by RJHollins »

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

Re: Ruby trigger basics

Post by RJHollins »

Appreciate the RUBY offer ... but I could not load in the schematic [v:3.06]
User avatar
gvalletto
Posts: 117
Joined: Fri Jul 09, 2010 10:15 pm
Location: Argentina
Contact:

Re: Ruby trigger basics

Post by gvalletto »

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
Contact:

Re: Ruby trigger basics

Post by gvalletto »

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 864 times
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Ruby trigger basics

Post by tulamide »

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)
User avatar
gvalletto
Posts: 117
Joined: Fri Jul 09, 2010 10:15 pm
Location: Argentina
Contact:

Re: Ruby trigger basics

Post by gvalletto »

Thanks! II read it several times, but I'll read it again ...
Post Reply