Ruby - Just calc on trigger

For general discussion related FlowStone
Post Reply
User avatar
chackl
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg

Ruby - Just calc on trigger

Post by chackl »

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 9671 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
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

Re: Ruby - Just calc on trigger

Post by MyCo »

Code: Select all

def event(i, v, t)
    output(@ins[0]+@ins[1]) if (i == 2)
end
User avatar
chackl
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg

Re: Ruby - Just calc on trigger

Post by chackl »

Thanks it worked!!!
100% accuracy is the guarantee to your success. The value alters if you combine it with musical creativity.
Post Reply