If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Bitmap knob arc
19 posts
• Page 2 of 2 • 1, 2
Re: Bitmap knob arc
The issue is with bitmap knobs, your example is a Vector knob, which I already said I know can do it. All the bitmap knobs I've encountered don't have those start angle/sweep angle floats inside, with the Rotate prim. But as I've said, I can get the bitmap knob limited to about a 90 degree angle of rotation, the issue is then the Steps don't work.
Website for the plugins : http://kbrownsynthplugins.weebly.com/
- k brown
- Posts: 1198
- Joined: Tue Aug 16, 2016 7:10 pm
- Location: San Francisco, CA USA
Re: Bitmap knob arc
hey,
Maybe it would be a solution to just browse the never-ending knob gallery there, and find the knob you're looking for?
https://www.g200kg.com/en/webknobman/gallery.php
Just another way of looking at the issue
Maybe it would be a solution to just browse the never-ending knob gallery there, and find the knob you're looking for?
https://www.g200kg.com/en/webknobman/gallery.php
Just another way of looking at the issue
"Essential random order for chaotic repetitive sequences"
-
tektoog - Posts: 141
- Joined: Sat Oct 30, 2010 11:49 pm
- Location: Geneva - Switzerland
Re: Bitmap knob arc
The schematic contains 2 knobs, neither of which you will like, because one of them doesn’t notch visually and the other one I just made in JKnobman (but it does notch and needs no modification to the knob framework). They do both go through a 180 degree arc though, so that’s something anyway.
So have a look anyway and see if they spark ideas.
Cheers
Spogg
So have a look anyway and see if they spark ideas.
Cheers
Spogg
- Attachments
-
- 180 degree knobs dev 4 .fsm
- 3.06
- (172.26 KiB) Downloaded 1305 times
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Bitmap knob arc
Thanks Spogg - yeah, the first example, the grey knob is a different spin on what I already tried - giving the Drag Y different values. But just as when I tried it, now the knob has no steps (and when Steps are turned on, the knob basically doesn't work).
Judging by your Knobman example, it appears the only way to get what I'm after is with a custom Knobman file that specifies the arc the knob will move through (or edit an existing file to do that).
I just find it hard to believe that there isn't a way to juggle the greens in the first (grey knob) example so that the Steps function will work.
I really want to do this with some beautiful knobs I found, and there's no chance of getting the Knobman files (if they were even made that way), in order to edit them.
Judging by your Knobman example, it appears the only way to get what I'm after is with a custom Knobman file that specifies the arc the knob will move through (or edit an existing file to do that).
I just find it hard to believe that there isn't a way to juggle the greens in the first (grey knob) example so that the Steps function will work.
I really want to do this with some beautiful knobs I found, and there's no chance of getting the Knobman files (if they were even made that way), in order to edit them.
Website for the plugins : http://kbrownsynthplugins.weebly.com/
- k brown
- Posts: 1198
- Joined: Tue Aug 16, 2016 7:10 pm
- Location: San Francisco, CA USA
Re: Bitmap knob arc
OK - I figured it out. The hang-up was that after setting a narrower range than 0-1 for the Drag Y, the number of Steps has to be greater than the desired number, because it's now being divided.
In my case I set the Drag Y to 0.33 min / 0.8 max. I wanted 4 steps so I entered 8 Steps into the Properties box. Voila - 100 degree centered rotation, with 4 steps. All that was needed to make a selector was subtracting the new min value (0.857143) from the output, so it starts at zero, setting the knob's regular Min/Max range to 0-3 (as one would normally do in making a knob a 4-input selector) and multiplying the final out value by 3 so it gets to the end of a four-input selector.
I'm sure the maths could be refined, etc., but it works for my current need. I just stumbled on this by (barely) educated guesses - would be great if someone could actually work out the formula for predictably setting angle of rotation vs number of desired steps, because they each affect the other.
Now I just need to get the blood-stains out of the carpet!
In my case I set the Drag Y to 0.33 min / 0.8 max. I wanted 4 steps so I entered 8 Steps into the Properties box. Voila - 100 degree centered rotation, with 4 steps. All that was needed to make a selector was subtracting the new min value (0.857143) from the output, so it starts at zero, setting the knob's regular Min/Max range to 0-3 (as one would normally do in making a knob a 4-input selector) and multiplying the final out value by 3 so it gets to the end of a four-input selector.
I'm sure the maths could be refined, etc., but it works for my current need. I just stumbled on this by (barely) educated guesses - would be great if someone could actually work out the formula for predictably setting angle of rotation vs number of desired steps, because they each affect the other.
Now I just need to get the blood-stains out of the carpet!
Website for the plugins : http://kbrownsynthplugins.weebly.com/
- k brown
- Posts: 1198
- Joined: Tue Aug 16, 2016 7:10 pm
- Location: San Francisco, CA USA
Re: Bitmap knob arc
k brown wrote:OK - I figured it out. The hang-up was that after setting a narrower range than 0-1 for the Drag Y, the number of Steps has to be greater than the desired number, because it's now being divided.
In my case I set the Drag Y to 0.33 min / 0.8 max. I wanted 4 steps so I entered 8 Steps into the Properties box. Voila - 100 degree centered rotation, with 4 steps. All that was needed to make a selector was subtracting the new min value (0.857143) from the output, so it starts at zero, setting the knob's regular Min/Max range to 0-3 (as one would normally do in making a knob a 4-input selector) and multiplying the final out value by 3 so it gets to the end of a four-input selector.
I'm sure the maths could be refined, etc., but it works for my current need. I just stumbled on this by (barely) educated guesses - would be great if someone could actually work out the formula for predictably setting angle of rotation vs number of desired steps, because they each affect the other.
Now I just need to get the blood-stains out of the carpet!
While I still wonder, whx this was posted in "DSP", I want to congratulate you! I hope you discovered that math is actually not your enemy, but there to help you realise your dreams
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Bitmap knob arc
Only code stuff here - I wasn't aware. Should have been General?
Website for the plugins : http://kbrownsynthplugins.weebly.com/
- k brown
- Posts: 1198
- Joined: Tue Aug 16, 2016 7:10 pm
- Location: San Francisco, CA USA
Re: Bitmap knob arc
I can't help anyone with the drag prims, they always acted un-intuitive to me. But I can help with the math part, in case others struggle as well. It's not very difficult, but sometimes we don't see the forest for the trees, so here we go.
The secret to it is normalising and the number of frames in the bitmap strip. If you have a drag value ranging from 0 to 1, it represents the frames(single images of the strip) 1 to N, so that you would switch to a new frame every 1/N, until N/N. Since normalised ranges are zero-based, the range of frames is 1 + (0 to N-1)
Also note that there is no such thing as half an image, or a quarter of an image. There is only a whole image. In math this is the equivalent of an integer. No decimals. Only frame 2, not frame 2.315
Now while dragging, each time the distance 1/N is covered, a new frame is reached. So all you have to do is multiplying the drag prim's output by N-1, add 1 and round the value down.
Example:
N = 30, drag value = 0.435, floor(1 + 0.435 * 29) ^= floor(1 + 12.615) ^= floor(13.615) = 13
N = 30, drag value = 1, floor(1 + 1 * 29) ^= floor(1 + 29) ^= floor(30) = 30
The secret to it is normalising and the number of frames in the bitmap strip. If you have a drag value ranging from 0 to 1, it represents the frames(single images of the strip) 1 to N, so that you would switch to a new frame every 1/N, until N/N. Since normalised ranges are zero-based, the range of frames is 1 + (0 to N-1)
Also note that there is no such thing as half an image, or a quarter of an image. There is only a whole image. In math this is the equivalent of an integer. No decimals. Only frame 2, not frame 2.315
Now while dragging, each time the distance 1/N is covered, a new frame is reached. So all you have to do is multiplying the drag prim's output by N-1, add 1 and round the value down.
Example:
N = 30, drag value = 0.435, floor(1 + 0.435 * 29) ^= floor(1 + 12.615) ^= floor(13.615) = 13
N = 30, drag value = 1, floor(1 + 1 * 29) ^= floor(1 + 29) ^= floor(30) = 30
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Bitmap knob arc
Thanks for that - I hope it's helpful to others, but it's utterly opaque to me.
Website for the plugins : http://kbrownsynthplugins.weebly.com/
- k brown
- Posts: 1198
- Joined: Tue Aug 16, 2016 7:10 pm
- Location: San Francisco, CA USA
19 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 61 guests