KnobMan, the VSTGUI AnimationKnob bitmap generator

DSP, Plugin and Host development discussion.
Post Reply New Topic
RELATED
PRODUCTS

Post

hehe - no rush :)

I've thought about using php + image-magic for this sort of post-render-cropping, but can't get it running ... my bad :oops:

if it makes it any easier to impliment as a post-render step that just acts to crop the output file then well ... that's cool too ... anything that makes this easier would be welcome :D

thanks for considering it Gaito - and a happy festive season to one and all :tu:
whiteLABEL - now set free : whiteLABEL ||

Post

daz.diamond wrote:hehe - no rush :)
I've thought about using php + image-magic for this sort of post-render-cropping, but can't get it running ... my bad :oops:
if it makes it any easier to impliment as a post-render step that just acts to crop the output file then well ... that's cool too ... anything that makes this easier would be welcome :D
thanks for considering it Gaito - and a happy festive season to one and all :tu:
For Paint.net there is a plugin "CodeLab" that allows to write graphic "effect plugins" to modify images - maybe it could be done there (copy/paste2layer selections and save as one image).
I used it to write an effect to make PNGs with premultiplied background transparency for Synthedit:

Code: Select all

#region UICode
ColorBgra Amount1 = ColorBgra.FromBgr(0,0,0); // Backgorund Color
#endregion
void Render(Surface dst, Surface src, Rectangle rect)
{
            ColorBgra BGCOL=Amount1;
            float BGa = (BGCOL.A / 255f) ;
            float BGr = (BGCOL.R / 255f) ;
            float BGg = (BGCOL.G / 255f) ;
            float BGb = (BGCOL.B / 255f) ;
    
    for (int y = rect.Top; y < rect.Bottom; y++)
    {
        for (int x = rect.Left; x < rect.Right; x++)
        {
            ColorBgra CurrentPixel = src[x,y];
 
            float a = (CurrentPixel.A / 255f) ;
            float r = (CurrentPixel.R / 255f) ;
            float g = (CurrentPixel.G / 255f) ;
            float b = (CurrentPixel.B / 255f) ;
             if (a==0)
            {
                r=BGr;
                g=BGg;
                b=BGb;
            }
 
             if (a<1)
            {
                //r= r*a + ((1-a)*BGr);
                //g= g*a + ((1-a)*BGg);
                //b= b*a + ((1-a)*BGb);
            }
            
            CurrentPixel.R = (byte)(r * 255);
            CurrentPixel.G = (byte)(g * 255);
            CurrentPixel.B = (byte)(b * 255);
            CurrentPixel.A = (byte)(a * 255);

           dst[x,y] = CurrentPixel;
        }
    }
}
[/size]
http://www.boltbait.com/pdn/codelab/help/
ImageImage

Post

Small bug report for Knobman.

If you try to open a new file and the current file is edited, it pops up the "Current file not saved... Are you sure?" dialog.

If you then click Cancel, and then select Save from the menu, it will save over the top of the file you just tried to open rather than the file which it should be.

IE the current file name is changed before the user has decided whether to proceed with opening the new file or not.

Post

nollock wrote:Small bug report for Knobman.

If you try to open a new file and the current file is edited, it pops up the "Current file not saved... Are you sure?" dialog.

If you then click Cancel, and then select Save from the menu, it will save over the top of the file you just tried to open rather than the file which it should be.

IE the current file name is changed before the user has decided whether to proceed with opening the new file or not.
hi,nollock

thank you for the report.
it seems an old bug. i'm sorry if you have lost the data by this bug.
i intend to release fixed version shortly.

Post

Hello,
KnobMan 1.42 is released.

http://www.g200kg.com/en/software/knobman.html

What's new in 1.42
* BugFix: unexpected overwrite to new file after canceling file-open.
* Warnig message is added when opening knob-file that use non-installed Fonts.

Post

thanks @WOK - sound a little complex, but I'll try take a look :)
whiteLABEL - now set free : whiteLABEL ||

Post

hi g200kg,

thanks for knobman!

I have 1.42 but find a problem with text.

If I try to use a text of all 127 midi note name, they get cut off before reaching the end of the list...

I think there must be some limit on how long a text file we can use? Can this be made at least 127 text items long please? I mean as a text item, whatever is between two commas, like C#-1,D-1,.... so D-1 is one text item.

thank you very much again,

max

Post

max wrote:hi g200kg,

thanks for knobman!

I have 1.42 but find a problem with text.

If I try to use a text of all 127 midi note name, they get cut off before reaching the end of the list...

I think there must be some limit on how long a text file we can use? Can this be made at least 127 text items long please? I mean as a text item, whatever is between two commas, like C#-1,D-1,.... so D-1 is one text item.

thank you very much again,

max
hello max,

Currently, the text length is limited to 256 chars.
Apparently this is too short for some uses.
Though I know conclusively this should not have any limitation, how about expand to 512 chars in the immediate future? still too short?

Post

Hi g200kg

512 might still be too little... I want to make a knob that is text of all midi notes by name, so the list will be:

C -1, C#- -1, etc. so each text unit can have 5 characters plus the comma [if commas get counted] and then need to be 128 of these. Can it maybe go to 1024? That would cover it for sure!

Thank you very much for your help.

Post

g200kg, thanks for a great tool and for updating it, i like it :)

/Magnus
Drummer of Treasure Land and Graphic designer
Guinious Graphic Design |
My MySpace | Treasure Land MySpace |

Post

hello,

KnobMan 1.43 is released :)
Just one modification:
* Text primitive max length is expanded to 1024 chars.

http://www.g200kg.com/en/software/knobman.html

Post

g200kg.... THANK YOU for the 1024 text... I will get and try it right NOW..
:)

OH YES! This works perfectly for what I wanted to get done... also the new features are very KEWL! :wink:

Post

OH WAIT... there seem to be a couple problems I think...
1- try to make a text string in note pad like this:

,#, ,#, , ,#, , ,

then copy and paste it into a layer in knobman... then move the cursor in knobman inside that string... what I see is that it does not match the spaces and characters... the cursor moves twice for each space but it should only move once ... I also find that the text does not always update the changes unless I go back to preferences and hit the SET button.

thanks for any help

Post

max wrote:OH WAIT... there seem to be a couple problems I think...
1- try to make a text string in note pad like this:

,#, ,#, , ,#, , ,

then copy and paste it into a layer in knobman... then move the cursor in knobman inside that string... what I see is that it does not match the spaces and characters... the cursor moves twice for each space but it should only move once ... I also find that the text does not always update the changes unless I go back to preferences and hit the SET button.

thanks for any help
hmm,... still I cant figure out your problem.
the string is "_,#,_,#,_,_,#,_,_,_" (the _ means a space) right?

cursor movement is...
Image

but did you mean the cursor move to the intermediate position between 1 and 2?

Post

thanks, I will have to double check what I'm seeing happen and see if I can be more clear about it. I'll be back... :)

Post Reply

Return to “DSP and Plugin Development”