Hi all,
somehow I really missed a knob gui object in PD, so I wrote one. Well, in fact, I only changed g_hslider.c a bit. My knob looks very much like the knobs in a popular new audio software made in Berlin. That's intended, because I like those knobs.
::from_the_readme::
"knob" is a new gui object for PD based on the IEMGUI-hslider included in PD. It is only tested on Linux, but it should work on other platforms with little changes.
Distribution form is as a patch to PD in version pd-0.35-test17.linux.tar.gz
This is the first known bug: knob should be an external!
It has at least one other known bug: While moving the knob, the dial line is wrong. Also the computing of geometries needs to be cleaned up and the Properties dialog still includes the not used height entry renamed to NONE, to make clear that this value is ignored.
I will fix these bugs someday, but I'll have to dig the hslider code some more. Maybe someone wants to help??? Also maybe some have ideas how to extent the knob, make it more ergonomic and such.
Knob is available at http://footils.radio-worldwi.de Screenshots are there as well. Direct download adress is: http://footils.radio-worldwi.de/knob-0.01.tgz
It was written reusing very very much IEM code, so props go out to Thomas Musil.
Frank Barknecht _ _______footils__
Hi Frank,
trying to build pd after patching it yields:
m_conf.o: In function conf_init': m_conf.o(.text+0x36): undefined reference to
g_knob_setup'
collect2: ld returned 1 exit status
make: *** [../bin/pd] Error 1
What's wrong?
Yours, Orm
Am Donnerstag, den 02. Mai 2002 um 13:11:37 Uhr (+0200) schrieb Frank Barknecht:
Hi all,
somehow I really missed a knob gui object in PD, so I wrote one. Well, in fact, I only changed g_hslider.c a bit. My knob looks very much like the knobs in a popular new audio software made in Berlin. That's intended, because I like those knobs.
::from_the_readme::
"knob" is a new gui object for PD based on the IEMGUI-hslider included in PD. It is only tested on Linux, but it should work on other platforms with little changes.
Distribution form is as a patch to PD in version pd-0.35-test17.linux.tar.gz
This is the first known bug: knob should be an external!
It has at least one other known bug: While moving the knob, the dial line is wrong. Also the computing of geometries needs to be cleaned up and the Properties dialog still includes the not used height entry renamed to NONE, to make clear that this value is ignored.
I will fix these bugs someday, but I'll have to dig the hslider code some more. Maybe someone wants to help??? Also maybe some have ideas how to extent the knob, make it more ergonomic and such.
Knob is available at http://footils.radio-worldwi.de Screenshots are there as well. Direct download adress is: http://footils.radio-worldwi.de/knob-0.01.tgz
It was written reusing very very much IEM code, so props go out to Thomas Musil.
ciao,
Frank Barknecht _ _______footils__
Hi Orm, Orm Finnendahl hat gesagt: // Orm Finnendahl wrote:
trying to build pd after patching it yields:
m_conf.o: In function
conf_init': m_conf.o(.text+0x36): undefined reference to
g_knob_setup' collect2: ld returned 1 exit status make: *** [../bin/pd] Error 1What's wrong?
Hmm, I hope, the patch is correct, here it does work. These files should get patched:
patching file src/g_all_guis.h' patching file
src/g_canvas.c'
patching file src/g_knob.c' patching file
src/g_text.c'
patching file src/m_conf.c' patching file
src/makefile.in'
patching file `src/u_main.tk'
g_knob.c is a new file including the main code for the knob. The function "g_knob_setup" is defined in there. Does g_knob.o get built? It should be in ./obj/.
The makefile.in should add "g_knob.c" to the sources in $SRC while configuring. In m_conf.c and all the other files I just added the setup functions and struct definition needed. Make sure, all of these have something with "knob" in it that looks like the corresponding functions for hslider.
I have now put these files on my webpage. You might want to check them out at: http://footils.radio-worldwi.de/knob-sources-0.01.tgz
Frank Barknecht _ _______footils__
Hi Frank, hi all,
Frank Barknecht wrote:
This is the first known bug: knob should be an external!
I've fixed this, it's now an external called 'knob'. It's a rather fast hack but seems to work (win32, pd0.35 test17). Find it at http://www.akustische-kunst.de/puredata/knob.zip (I had to copy some stuff from within the Pd sources into knob.c. Couldn't find the place where to get sys_noloadbang from....)
Olaf
Hi Olaf, Olaf Matthes schrieb:
I've fixed this, it's now an external called 'knob'. It's a rather fast hack but seems to work (win32, pd0.35 test17). Find it at http://www.akustische-kunst.de/puredata/knob.zip
Impressive, Olaf, you're the man!
Now, that makes one bug less to fix, I'll go over the inlet/outlet problem at the weekend.
(I had to copy some stuff from within the Pd sources into knob.c. Couldn't find the place where to get sys_noloadbang from....)
I can't check this right now, because I'm still at work and here I only have an older PD, but in that sys_noloadbang is declared in s_main.c and maybe a line "extern int sys_noloadbang;" can fix the problem...
Frank Barknecht barknecht@dradio-online.de -= www.dradio.de =- DeutschlandRadio-Online * Redaktion Köln