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
11 posts
• Page 1 of 2 • 1, 2
Ruby trigger basics
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?
Does anybody know how to make Ruby codes to replace these green trigger prims?
- Attachments
-
- trigger.PNG (6.57 KiB) Viewed 13560 times
-
gvalletto - Posts: 117
- Joined: Fri Jul 09, 2010 10:15 pm
- Location: Argentina
Re: Ruby trigger basics
...at least tell me where to find that to learn to make it myself...
-
gvalletto - Posts: 117
- Joined: Fri Jul 09, 2010 10:15 pm
- Location: Argentina
Re: Ruby trigger basics
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 811 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
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.
-
gvalletto - Posts: 117
- Joined: Fri Jul 09, 2010 10:15 pm
- Location: Argentina
Re: Ruby trigger basics
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
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
-
gvalletto - Posts: 117
- Joined: Fri Jul 09, 2010 10:15 pm
- Location: Argentina
Re: Ruby trigger basics
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 796 times
-
gvalletto - Posts: 117
- Joined: Fri Jul 09, 2010 10:15 pm
- Location: Argentina
Re: Ruby trigger basics
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
Thanks! II read it several times, but I'll read it again ...
-
gvalletto - Posts: 117
- Joined: Fri Jul 09, 2010 10:15 pm
- Location: Argentina
11 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: Google [Bot] and 69 guests