Files
veejay/sandbox/veejay-current/libgoom/default_script.goom
Niels Elburg 90197d342b move stuff
git-svn-id: svn://code.dyne.org/veejay/trunk@1132 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
2008-11-01 03:31:40 +00:00

35 lines
615 B
Plaintext

/*
* specify here high-level properties of a flash.
*/
flash_occurs when (Sound.Goom_Detection > 50%) and (Sound.Sound_Speed > 14%);
max_flash = 200%;
slow_down_coef = 96%;
/*
* Here you have the fx's state machin behaviour.
*/
(locked) ? locked--;
(not locked) and (flash_occurs) ?
{
cur_power = Sound_Speed.Goom_Detection;
start flashing_up;
}
(not locked) and (flashing_up) ?
{
factor += cur_power * 2 * (speedvar / 4 + 0.95);
if (factor > max_flash) factor = max_flash;
(not flash_occurs) ?
{
locked = 200;
stop flashing_up;
}
}
factor *= slow_down_coef;