graphically GtkControllers

Programming applications for making music on Linux.

Moderators: MattKingUSA, khz

brummer

Re: graphically GtkControllers

Post by brummer »

What graphics do you need or want for the GtkReglerClass? If there's something you need I'll be happy to make it for you
:D Yea, Knob`s like you find it on "real" amp's would be great, knob size 50*50 is nice for big and small knobs (downscaling). Best results I get with a rotation from 3dgre etch step, 300dgre in total. With transparent background.(png or jpg)
The resulting rotations in Gimp are not the best, it seems to be not posible to rotate small pointers without they become uggly. So some nice 3D Knobs are realy welcome.
I think what you're saying here is that you'll use just one actual image for the knob, then create a sequence by rotating the knob image programatically? Is this correct? If so, is there anything specific you need the for the knob image?
That's what I do for the fallback image, when a needed grafik isn't found during class initial, I have build a inline grafik witch will be used then, so the app could start in any case. This is only one Knob image, and a half scale , witch fliped when the half value is ritch. The Image to use stick together during class initial. Here I need a nice Pointer witch rotate 180dgre in a 50*50 scale.

And I search for some nive scrollweel's, the view from the top (like you see the your mouseweel), therefor I need just Rectangle, long enogh to split it in some parts witch make it move, maybe 5-6 weelparts will be enogh for that.

regards hermann
brummer

Re: graphically GtkControllers

Post by brummer »

Some time is gone now, :lol: , anyhow, here is a GtkKnob klass in C under Public DomainImage
The knobs are drawn with cairo in the foreground window colour , eg. theme or Rcstyle-file.
They glow in green on positive values and in red on negative values.
They are scalable, so you can use them in a ZUI.
Default movement is linear vertical, with ctrl+mousebutton it turn to radial, with mousebutton+shift it slips in the fine tune mode.
here is a tar.bz2 included the knob class, a sample "helloknob" and a makefile.

greats brummer
Attachments
gtkknob.tar.bz2
GtkKnob Public Domain
(6.41 KiB) Downloaded 114 times
Post Reply