Set GUI Controls to a Value - Halp?

For general discussion related FlowStone
oshex
Posts: 2
Joined: Tue Apr 23, 2013 10:03 am

Re: Set GUI Controls to a Value - Halp?

Post 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
Perfect Human Interface
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: Set GUI Controls to a Value - Halp?

Post 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.
oshex
Posts: 2
Joined: Tue Apr 23, 2013 10:03 am

Re: Set GUI Controls to a Value - Halp?

Post 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:
Post Reply