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 - Just calc on trigger

For general discussion related FlowStone

Ruby - Just calc on trigger

Postby chackl » Thu May 23, 2013 10:19 pm

Hello!

I have a simple question to ruby but i did not find anything that was useable.
I want to execute some lines in ruby only if a Trigger in incoming like that:
ruby trigger question.png
ruby trigger question.png (15.66 KiB) Viewed 8386 times


i think it is simple - but i do not get it :D

Regards
100% accuracy is the guarantee to your success. The value alters if you combine it with musical creativity.
User avatar
chackl
 
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg

Re: Ruby - Just calc on trigger

Postby MyCo » Thu May 23, 2013 10:22 pm

Code: Select all
def event(i, v, t)
    output(@ins[0]+@ins[1]) if (i == 2)
end
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany

Re: Ruby - Just calc on trigger

Postby chackl » Thu May 23, 2013 10:28 pm

Thanks it worked!!!
100% accuracy is the guarantee to your success. The value alters if you combine it with musical creativity.
User avatar
chackl
 
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg


Return to General

Who is online

Users browsing this forum: No registered users and 91 guests