Page 2 of 2

Re: Set GUI Controls to a Value - Halp?

Posted: Tue Apr 23, 2013 10:08 am
by oshex
Hi, I just started experimenting with flowstone a few days ago. Could someone send me an example or explain how i reset a knob to a value via mouseLDouble or a mouse event component? Could only find help on synthmaker, but i want to use ruby, and most of all, understand what i'm doing. I dont really understand the talk in this thread :)

Edit: Figured it out :idea:

def mouseLDouble x,y
@value = [[@value,0.5].min,0.5].max
output 0,@value
output 1,true
redraw

Re: Set GUI Controls to a Value - Halp?

Posted: Tue Apr 23, 2013 10:20 am
by Perfect Human Interface
Holy crap that seems so easy in comparison...

I spent a ton of hours cramming features into my knobs; I wonder what I could have done had I known my way around Ruby.

Re: Set GUI Controls to a Value - Halp?

Posted: Tue Apr 23, 2013 10:52 am
by oshex
Perfect Human Interface wrote:Holy crap that seems so easy in comparison...

I spent a ton of hours cramming features into my knobs; I wonder what I could have done had I known my way around Ruby.


I feel ya, spent days on this now, and i don't know ruby, just got lucky now from reading bits and pieces.
Good luck with your project, now i need to figure out how to do legato :/ :lol: