Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > a3fb2f0968cfbded1bb3038bbcfa4a58 > files > 10

xmms-gdancer-0.4.5-2mdk.ppc.rpm

I based the theme code on xmms_speakers so it works the same way
that xmms_speaker's themes work.

the first time you use the gdancer plugin it will create a directory in
~/.xmms/gdancer_themes/
so if your username was bob you'd have the directory
/home/bob/.xmms/gdancer_themes/

all you need to do is make the following images:
neutral
bass
treble
midrange

optional (for transition, explained at bottom):
bass-neutral
neutral-treble
midrange-neutral
bass-treble
bass-midrange
midrange-treble

Themes can be any size and any image format (as long as you compile in
gdk-pixbuf support and use image formats that it gdk-pixbuf supports)
you wish. Each image of a theme must be the same size.  GDancer
uses the neutral image to decide what size to make the window, and if other
images are different sizes you get a very nasty effect where the mask of the
image is combined to the window in a different spot then the image is drawn.

Save them all in a directory inside the gdancer_themes directory
the name of the directory you save them in will be the name of the theme.

So if you want to make bobs_theme you would save the files to
/home/bob/.xmms/gdancer_themes/bobs_theme/

Thats all there is to it.  You should be able to go into the gdancer
configuration and pick bobs_theme from the pulldown list.

Have fun.
And tar up those themes you make and email them on over to me.

Travis Emslander
hexix@figz.com


TRANSITION FRAMES
=================
Allright, you're probably wondering what the transition pictures are for.
Well, it was Steve Pomeroy's idea to have frames for inbetween the other main
frames.  Like between treble and bass you'd have the bass-treble frame
to make the animation look smoother.

I tried to pull this off but couldn't get it to draw an image before it draws
the main frame because the main frame would overdraw the transition frame too
quickly, and I think because of the fact the drawing routine was in a thread
I couldn't use usleep to pause it. (if anyone has ideas email me)

So I did something else with transition themes, when there is bass in the song
instead of just drawing the bass frame it draws the transition frame from
whatever frame you are currently at to the bass.  so if you were at neutral and
some bass came in the song it would draw the bass-neutral frame.  And thats it
for that routine.  But then if bass comes again directly after that draw then
it will draw the actual bass image.  So the transition is more like a
semi-bass image.

I don't know if that came out of my head well, but hopefully you understand.
I think it will still give a pretty good effect, maybe even better then the
original idea.

TRANSITION NAMING CONVENTION
============================
its really pretty easy.  If you want to make the image for when it goes from
neutral to treble then it would be neutral-treble if you would make
an image for going to treble to neutral (treble-neutral) it'd still be
neutral-treble because they are in alphabetical order.  And it should be the
same picture since its going between the same main frames.

So if you want the neutral to bass image it would be bass-neutral because
bass comes first in the alphabet.  There are a possibility of 6 frames

bass-neutral
neutral-treble
midrange-neutral
bass-treble
bass-midrange
midrange-treble

you do not need to use any or all off the transition frames.  If you leave any
or all out, gdancer just ignores it and doesn't use it.