Archive: on type enable disable effect list


9th December 2003 16:24 UTC

on type enable disable effect list
It will be very cool expecialy for live performace have the possibility to definite keyboard key to meke enable disable effect list. Like have in effect list the options "Enable on Type :" q (for example) and "disable on type:" a (for example). It will be cool have checkbox in preset/hotkey that you can definite a directory to play and play if alfabetic-numeric order (fist 1-intro, 2-blabla, 3-blablabla ....) not only in random mode have 2 ways load another preset: number of second automatic(every xx second) and for example on type "+" manual.
Another very cool thing for vj it can be have an option in superscope, dinamic moviment ecc. have a string "on type"
keyboard-key(event). for example "on type": d(n=rand(50));f(alpha=1):g(alpha=0);q(vel=vel+1) ecc.

tanks for all


10th December 2003 05:06 UTC

Familiarize yourself with the acronym "rtfm" and get back to us.


10th December 2003 08:47 UTC

Atero: it's not that obvious. To process one keystroke you need to track when the key transitions from up to down.

If you have the latest AVS (check at the bottom of the 2.8b1 thread for AVS2.8b2), you can something like this in the effect list coding (don't forget to check the override box):

init:

last=0;en=1;

frame:
key=getkbmouse(16);en=if(band(key,bnot(last)),bnot(en),en);last=key;enabled=en;

This will make the effect list toggle when you press the shift key.

For a different key, change the number 16 into something else. There's a keylist here, though it contains values in hexadecimal (you can convert to decimal with windows calculator).

10th December 2003 09:53 UTC

thanks a lot i will download new avs and take a try
that'so great
:-)


10th December 2003 12:30 UTC

Some tips & tricks for you in advance:

Keep in mind that the AVS window needs to be focused to make this work.

Furthermore should you use keys that won't execute standard avs/winamp functions or your vj-set will get messed immediately.

Using Overhead VJ-Tools makes things even more complicated. Hotlist has a keystroke passtrough function. I guess Playlister hasn't I can't tell for sure.

Hope this will help.


10th December 2003 13:06 UTC

Magic: actually it works even if AVS (or Winamp for that matter) is focused. That's because we do the keystroke checking ourselves, all AVS says is "that key is down/up" which is always available.


10th December 2003 13:37 UTC

Hmm, yes of course.
/me bangs head against wall
*ouch*

It has to be on-code checking, otherwise AVS had to capture the keystroke if one occurs and insert it into the next frame.

This would reduce cpu usage, but coding this would be a pain in the ass ... an probably buggier than the current method.

Nevertheless, I don't like the idea of simultaneously executing undesired operations.
This gotta be fixed somehow otherwise we'll have a lot of crying n00bs "when I play my avs game winamp stops playback on fire!"