Page 1 of 1

A couple of questions

PostPosted: Thu Jul 30, 2020 12:43 am
by Ricciardo
Greetings,

1. is it possible to hide mouse cursor while interacting with a ruby knob?

2. preset manage with categories, is it possible?
*in this matter i tried to be creative by using multiple managers connected to selectors and basically use a manager per category, but that didnt worked out.

Anyways, i have been deeply imersed into flowstone since the lockdown, i have messing around with old projects and working in a new oscillator,, by the way this is a current project
https://www.youtube.com/watch?v=e2uwe2y ... e=youtu.be

regards

Re: A couple of questions

PostPosted: Thu Jul 30, 2020 4:22 am
by tulamide
Ricciardo wrote:Greetings,

1. is it possible to hide mouse cursor while interacting with a ruby knob?

2. preset manage with categories, is it possible?
*in this matter i tried to be creative by using multiple managers connected to selectors and basically use a manager per category, but that didnt worked out.

Anyways, i have been deeply imersed into flowstone since the lockdown, i have messing around with old projects and working in a new oscillator,, by the way this is a current project
https://www.youtube.com/watch?v=e2uwe2y ... e=youtu.be

regards

First, congrats on your project. The freely crossfading oscillators look and sound very promising!

1. Yes. Use the function
Code: Select all
showCursor(true)
showCursor(false)
but be careful, as it is a direct windows function, and its use is unusual. For every false call, there needs to be true call, as the function uses a counter based system. If the cursor is currently visible, and you call true, you would already need 2 false calls to hide the cursor. Don't panic if you cursor is stuck invisible. Save your work and close Flowstone. Then start it again and look through the code to find where you need to add true calls.

2. Possible? Yes. But not with the stock layout. And only with presets that are stored on disk. Has it been done already? No.

Re: A couple of questions

PostPosted: Fri Jul 31, 2020 1:33 am
by Ricciardo
Thank you for the kind words, took me a while to make that oscillator

About the code, i have been trying to use it, but i am not fluent in ruby enough

so far i didn't managed to do it, or maybe i am using it in the wrong seccion of the syntax.

its meant to be inside of the interaction
"def
end"

right?

Re: A couple of questions

PostPosted: Fri Jul 31, 2020 7:28 am
by tulamide
Ricciardo wrote:its meant to be inside of the interaction
"def
end"

right?

Yes and no. I think you may be on the wrong path. When you do a mouse drag with the knob, you have 3 methods:
mouseLDown
mouseMoveCaptured
mouseLUpCaptured

you call showCursor(false) in mouseLDown and showCursor(true) in mouseLUpCaptured. See example.

Re: A couple of questions

PostPosted: Fri Jul 31, 2020 9:08 am
by Ricciardo
Thanks a lot for the exaample, hidding the mouse will be very usefull when using in high sensitivity knobs
that require long rotations.

I leave an example of an animated knob with steps with mouse hide function