Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   AVS (http://forums.winamp.com/forumdisplay.php?f=85)
-   -   difficulty with keyboard/mouse input (http://forums.winamp.com/showthread.php?t=165159)

Warrior of the Light 16th January 2004 16:15

difficulty with keyboard/mouse input
 
1 Attachment(s)
I'm working on a preset called AvsCAD and I want to be able to set the linewidth from 1 to 2 .. to 5 and back to 1. This is not a problem, it's just that if you hold the key for multiple frames, the counter keeps adding on. I thought I had a solution, but it doesn't seem to work.

Could anyone tell me what I'm doing wrong?
I've attached a tryout instead of the preset itself to prevent people from making remixes before final release.

Edit: general idea of what it does:
code:


qpulse=
if qold=qnew
then
0
else
if qold=0
then
1
else
0


--So:-----

keyold|keynew|goal
------|------|----
0|0 =|0
0|1 =|1
1|0 =|0
1|1 =|0



Neoavs 16th January 2004 17:23

1 Attachment(s)
Well, I've attached the fixed file. It seems to work now. If you would add a counter such as reg01=reg01+reg27; then you would see that it is really working. Coz' on high FPS you wont able to see the 0 changing to 1, of course, I slowed my FPS to minimum and tested. The first line of text really changes from 0 to 1 and then quickly back to 0

Warrior of the Light 16th January 2004 18:01

Thanks a lot for fixing that. I had been staring at it 'til I didn't understand my own code anymore :igor:

Neoavs 16th January 2004 19:06

No problem. Keep up the work. Do you have any AVS packs, I would like to see some?

Warrior of the Light 16th January 2004 22:03

1 Attachment(s)
You can check out my website, but all that is at least 1.5 years old (EyeCandy minipack being the newest, (don't bother looking at the so called 'new' presets on the site))

I've been neglecting my packs since to do tests and master SSC's.

But a few days ago I decided to start with my second pack, and here's an underway preview of the preset I needed your help for. It leakes out my new nickname and it will be in my new pack (if I get it all done).

(wow, I've been working on this all night from 18:30 to now, 00:05) :eek:

piR 16th January 2004 23:47

You can have also a more concise code replacing:

qpulse=if(equal(qold,qnew),0,if(equal(qold,0),1,0));

by:

qpulse=qnew*bnot(qold)

It may be also faster ...

Warrior of the Light 17th January 2004 19:09

@piR:
Thanks, I'll use that.

Just wondering: What are the opinions on this kind of presets (and this one in special :) ), do you like it or is it too far off from 'music visualization'?

Shock Value 18th January 2004 04:42

Well personally I think these kinds of presets are great if you can do something origional. You're off to a great start with this preset, but keep adding features to make it more interesting. Right now I'm working on an architectual design preset where you can design your own buildings floor-by-floor, for example.

UnConeD 18th January 2004 10:57

I don't see the point in releasing this as part of a preset-pack with visualisations.

I'll take fsk's digital artist preset over this any time.

Warrior of the Light 19th January 2004 09:55

As the comment says, there'll be at least a line option and there is a bonus in already... try to find it ;)

Neoavs 19th January 2004 10:31

Found It. It is a rect-coords disabled movement. Enable rect coords to get paintbrush effect. Got any cookies for finding that?

Warrior of the Light 19th January 2004 13:12

nope, as I said, it's a bonus for now - In the fianl version, it'll probably be just an option

Neoavs 19th January 2004 15:33

You'll have to find a way to combine both paintbrush and normal modes. Then you can do cool drawings.

fragmer 19th January 2004 19:32

Hey how did you read my mind? I'm working on the MSPaint simulator right now :P

Warrior of the Light 19th January 2004 20:53

Please leave out the MS-part - unless you want to include the systemcrashes of course ;)

fragmer 20th January 2004 02:48

Oh wait! I have an idea! AVS-OS!
Complete shell emulator done in AVS :)
Noone touch this idea! I'm making it already :F


All times are GMT. The time now is 22:25.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.