Programming Simple Pitch Wheel Behaviour

For general discussion related FlowStone
Post Reply
mwhlr
Posts: 7
Joined: Sat Nov 14, 2015 12:51 pm

Programming Simple Pitch Wheel Behaviour

Post by mwhlr »

Hi guys,

I'm wondering if anyone could assist me with programming a simple pitch wheel that I've made in Flow-stone.
The wheel is controlling the pitch of two oscillators, as can be seen in the attached image.


Untitled.png
Untitled.png (38.7 KiB) Viewed 8331 times


I would like to have the wheel snap to a value of 1 whenever it is not being used (whenever the mouse is not controlling it), but am unsure how I would program this. I am a beginner in terms of coding and have never used Ruby, so am pretty stuck for how I would go about it. Could anyone possibly assist me with this?

Many thanks,
Mwhlr
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: Programming Simple Pitch Wheel Behaviour

Post by Nubeat7 »

just trigger a default value (of 1) when release mouse (and maybe also afterload), nice animated knob, did you design it by yourself?
mwhlr
Posts: 7
Joined: Sat Nov 14, 2015 12:51 pm

Re: Programming Simple Pitch Wheel Behaviour

Post by mwhlr »

Nubeat7 wrote:just trigger a default value (of 1) when release mouse (and maybe also afterload), nice animated knob, did you design it by yourself?


Hi Nubeat, thanks for your response.

Yes, I made it after fiddling around with knobman for a few hours. :)

Does the method you've suggest involve the use of both primitives and coding? Excuse my ignorance, but as a complete beginner, I'm still struggling with how to go about this. I'm also aware that the animated knob itself would have to snap to it's position at "1". Is this more complicated than I initially thought?
mwhlr
Posts: 7
Joined: Sat Nov 14, 2015 12:51 pm

Re: Programming Simple Pitch Wheel Behaviour

Post by mwhlr »

Apologies for the double post. I'm still unsure about this and would appreciate some more help. Also happy to provide the animated pitch wheel if anyone is interested.
Post Reply