XHip--Please finish your synth!!
- KVRAF
- 12615 posts since 7 Dec, 2004
reset with ctrl-right works now: http://xhip.cjb.net/xhip/releases/0/6/1 ... 6.16.4.zip
i don't want to allow just a right click because it's too likely to happen by accident and some people may be used to the existing behaviour. this is part of the gui, so it can be modified if you get the xgdb archive. if you plan to do this let me know so i can give you the updated function header xhipfunc.h.
obviously you can just ask me to do it for you in a modified version as well, but i'm lazy so that'll be delayed until i feel like doing it.
i don't want to allow just a right click because it's too likely to happen by accident and some people may be used to the existing behaviour. this is part of the gui, so it can be modified if you get the xgdb archive. if you plan to do this let me know so i can give you the updated function header xhipfunc.h.
obviously you can just ask me to do it for you in a modified version as well, but i'm lazy so that'll be delayed until i feel like doing it.
- KVRAF
- 12615 posts since 7 Dec, 2004
was just fooling around and i thought this was a little bit cool.
http://xhip.cjb.net/temp/public/knobby.jpg
http://xhip.cjb.net/temp/public/knobby.xhipgui
not useful for anything, i was just cleaning up the knob controls and some other stuff. has anybody else done any more gui wrk yet?
http://xhip.cjb.net/temp/public/knobby.jpg
http://xhip.cjb.net/temp/public/knobby.xhipgui
not useful for anything, i was just cleaning up the knob controls and some other stuff. has anybody else done any more gui wrk yet?
- KVRAF
- 7185 posts since 19 Apr, 2002 from Utah
It looks like a good start, Aciddose! Thanks
--Sean
--Sean
-
- KVRist
- 32 posts since 13 May, 2005
You have to be kidding me...aciddose wrote:http://xhip.cjb.net/temp/public/knobby.jpg
-
- KVRAF
- 10815 posts since 26 Nov, 2004 from UK
aciddose wrote:was just fooling around and i thought this was a little bit cool.
http://xhip.cjb.net/temp/public/knobby.jpg
http://xhip.cjb.net/temp/public/knobby.xhipgui
not useful for anything, i was just cleaning up the knob controls and some other stuff. has anybody else done any more gui wrk yet?
ok your right!
the original gui was not THAT bad
Subz
- KVRAF
- 12615 posts since 7 Dec, 2004
it's "not useful for anything" remember 
that is a technical demonstration. download it (70kb) and adjust the knobs. you'll notice they have an infinite number of steps available and they're completely generated by code. bitmaps can also be used, or whatever.
you should also notice the low cpu use (ok, higher than bitmaps, but low) and extreme frame-rate.
the frame-rate can be set for individual controls, it supports animation, etc. so for example i could set 30fps "smooth" movement between states for a switch.
i've done a little more work:
http://xhip.cjb.net/temp/public/knobbyb.xhipgui
(164k, didn't compress this time)
so now it has even faster drawing, the code to generate the bitmaps is simplified and more organized and there is an extra "lighting" layer applied. notice the shading at the top vs. bottom of the knobs. also notice the grain of the shape changes as it rotates and the lighting is indeed applied statically as the inner portion is rotated.
the other version was using a filtered noise texture to make them "concrete" looking but it could be any texture, happy faces or whatever. in fact BWAHAHA back to work.

oh yeah, i added dither too so there is better blending without banding on the rectangular shaded areas.
that is a technical demonstration. download it (70kb) and adjust the knobs. you'll notice they have an infinite number of steps available and they're completely generated by code. bitmaps can also be used, or whatever.
you should also notice the low cpu use (ok, higher than bitmaps, but low) and extreme frame-rate.
the frame-rate can be set for individual controls, it supports animation, etc. so for example i could set 30fps "smooth" movement between states for a switch.
i've done a little more work:
http://xhip.cjb.net/temp/public/knobbyb.xhipgui
(164k, didn't compress this time)
so now it has even faster drawing, the code to generate the bitmaps is simplified and more organized and there is an extra "lighting" layer applied. notice the shading at the top vs. bottom of the knobs. also notice the grain of the shape changes as it rotates and the lighting is indeed applied statically as the inner portion is rotated.
the other version was using a filtered noise texture to make them "concrete" looking but it could be any texture, happy faces or whatever. in fact BWAHAHA back to work.

oh yeah, i added dither too so there is better blending without banding on the rectangular shaded areas.
- KVRAF
- 7185 posts since 19 Apr, 2002 from Utah
That looks a LOT better!!!!! Will you be able to do a combination? For example, for oscillator tuning have the knobs and for ADSR have vertical sliders?
--Sean
--Sean
- KVRAF
- 12615 posts since 7 Dec, 2004
of course, you can do anything even make a shell to type "filter = lowpass" or something.
with this thing i'm just playing with my knob control to improve it a little bit, and i'm writing a little bit of bitmap generation scripts to make fairly good looking controls. i should probably use a 3d renderer like blender instead it's just hard to get all the different layers and perfectly center them for rotation. that's why most guis use 1000s of bitmaps for each possible degree of rotation and different positions on the gui.
with this thing i'm just playing with my knob control to improve it a little bit, and i'm writing a little bit of bitmap generation scripts to make fairly good looking controls. i should probably use a 3d renderer like blender instead it's just hard to get all the different layers and perfectly center them for rotation. that's why most guis use 1000s of bitmaps for each possible degree of rotation and different positions on the gui.
-
- KVRist
- 294 posts since 6 Jan, 2005
Hey there,
It's good to see some progress in the gui department.
I've always liked the idea of a single screen for controls, or at least mainly tweaked parameters on single screen and this is imho one of the main reasons for the success and impact of Synth1. Its interface is very quick and rewarding to work with.
The first thing that struck me with the knob screen shot, was the lack of displayed values for parameters.
I'm interested in designing a screenshot for the gui, but have no idea what design limitations are relevant.
It's good to see some progress in the gui department.
I've always liked the idea of a single screen for controls, or at least mainly tweaked parameters on single screen and this is imho one of the main reasons for the success and impact of Synth1. Its interface is very quick and rewarding to work with.
The first thing that struck me with the knob screen shot, was the lack of displayed values for parameters.
I'm interested in designing a screenshot for the gui, but have no idea what design limitations are relevant.
- KVRAF
- 12615 posts since 7 Dec, 2004
"but have no idea what design limitations are relevant."
there are none.
http://xhip.cjb.net/xhip/xgdb/
you can write the code directly if you want, too.
the code i'm working on ISNT A GUI.
it's only A CONTROL.

there are none.
http://xhip.cjb.net/xhip/xgdb/
you can write the code directly if you want, too.
the code i'm working on ISNT A GUI.
it's only A CONTROL.
- KVRAF
- 12615 posts since 7 Dec, 2004

http://xhip.cjb.net/temp/public/one.xhipgui.png
the beginning of making this into a useful gui. so far i've spent about 1 hour actually inputting coordinates for the controls. i need to work more on the knob widget to get it to display in the various colors i want but so far it's looking good. obviously some things should be switches and so on, but this is only intended to demonstrate the gui library so that hopefully somebody will try to use it at some point in time.
http://xhip.cjb.net/temp/public/one.xhipgui
this gui is functional, but not all the controls are on it. that's another thing you can do with your gui design - if you like you can leave out controls, move them anywhere you want to combine them in various ways. for example you might make the filter mode switch list only "low, high, band, notch", and use a seperate control to input "off, 12db, 24db". it's a little bit tricky to get that to operate, more than just addknob(x,y,z) but it's actually quite easy.
here is the main source file for that gui. there is one additional file which generates the bitmaps for the background and the knobs but that isnt important.
http://xhip.cjb.net/temp/public/editor.onexhipgui.cpp
the main thing to pay attention to here is the middle section of the source where there are a heap of addpanel() and addknob() calls. those are the meat of the code you'd need to write if you wanted to customize this. it's even possible of course to contain these tables of x,y,z values in an external file. anything is possible.
this may evolve quickly into a proper gui - only complain about things if you're willing to fix them yourself. i will be happy to hear opinions though, just obviously not "x SHOULD be y since it's SO EASY"
Last edited by aciddose on Fri Sep 12, 2008 6:53 pm, edited 1 time in total.
- KVRAF
- 12615 posts since 7 Dec, 2004
http://xhip.cjb.net/temp/public/sphnkmaster.mp3
ok, i definitely know for certain that a gui influences your perception of a soft synth. this is absolutely no different from using any of the other guis, but the synth seems to sound for some reason specially awesome just because there are funny little knobs on the screen. even i fall for this, the author of the synth, and i know for a fact the synth hasn't changed in the slightest other than the gui.
damn you, funny little knob devils!
ok, i definitely know for certain that a gui influences your perception of a soft synth. this is absolutely no different from using any of the other guis, but the synth seems to sound for some reason specially awesome just because there are funny little knobs on the screen. even i fall for this, the author of the synth, and i know for a fact the synth hasn't changed in the slightest other than the gui.
damn you, funny little knob devils!
-
- KVRian
- 795 posts since 2 Apr, 2006
I haven't looked at the code yet, but is the gui library cross platform? or based on vstgui?
-
- KVRian
- 814 posts since 12 Sep, 2005 from Renton, WA
I just wanted to comment that I'm liking how this new gui is coming along. A nice easy to use/read interface will make programming this beast so much easier. (and fun!)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
