suppose you're thinkin' about a plate o' shrimp. Suddenly someone'll say, like, plate, or shrimp, or plate o' shrimp out of the blue, no explanation. No point in lookin' for one, either. It's all part of a cosmic unconciousness.
here's the response from drlava on implementing the requested strobe effect. posting it here so others can learn.
[00:02] <drlava> symmetry = 0;result = sqr2(Phase*Phase*2,symmetry)*0.5+0.5
[00:02] <drlava> adjust symmetry above or below zero to change the duty cycle
[00:02] <drlava> use this in an intensity event
suppose you're thinkin' about a plate o' shrimp. Suddenly someone'll say, like, plate, or shrimp, or plate o' shrimp out of the blue, no explanation. No point in lookin' for one, either. It's all part of a cosmic unconciousness.
Why does he do phase*phase*2? That would be etimeČ*8*piČ... the strobe frequency would go faster as the event progresses. If you want to use a constant strobe frequency use
(if the event is one second long, the frequency value will be the actual frequency, otherwise the actual frequency will be frequency variable value / event duration)Code:frequency=10; symmetry=0; result=sqr2(phase*frequency,symmetry)*0.5+0.5
suppose you're thinkin' about a plate o' shrimp. Suddenly someone'll say, like, plate, or shrimp, or plate o' shrimp out of the blue, no explanation. No point in lookin' for one, either. It's all part of a cosmic unconciousness.
There is no symmetry function. The "=" operator assigns a value to a variable.
This just assigns the value '10' to a variable called 'frequency' and the value '0' to the variable 'symmetry'. These variables are used in the last line:Code:frequency = 10; symmetry = 0;
which is then equivalent to:Code:result=sqr2(phase*frequency, symmetry)*0.5+0.5
It doesn't matter what you name them. As long as you don't overwrite LSX variables (x, y, z, idx, etime, time, phase and so on) you're free to name them as you want. There's no need to initialise variables and you don't even need to assign them if you want. Every variable is '0' by default. So, the "symmetry = 0" line is not necessary to make that expression work, if you remove it completely it won't change anything. There won't be an error on the last line because 'symmetry' is undefined, it would just assume its default value of 0. But of course that would not make it obvious that that is something you can play around with.Code:result=sqr2(phase*10, 0)*0.5+0.5
and from our LSX discussion on the #photonlexicon irc channel:
[10:13] <swamidog> cmb.. what's the "symmetry" function?
[10:13] <swamidog> in lsx
[10:13] <cmb___> the duty cycle of the square wave
[10:13] <swamidog> oh ok
[10:13] <cmb___> set symmetry=mousex
[10:14] <dkumpula> hehee . . cmb said doody-cycle!
[10:14] <swamidog> heheheeh
[10:15] <cmb___> damn lsx and its oscillatory movements!
suppose you're thinkin' about a plate o' shrimp. Suddenly someone'll say, like, plate, or shrimp, or plate o' shrimp out of the blue, no explanation. No point in lookin' for one, either. It's all part of a cosmic unconciousness.
Watching Lasers Since 1981
Then use time instead of etime.
This makes the frequency completely independent of event length and playback speed. It will strobe even when the show is paused over the event. But the frequency is now the actual strobe frequency no matter what you do.Code:frequency=4; result=sqr2(2*pi*frequency*time*0.001,0)*0.5+0.5
This will do a nice trick, I surely will use it later.sqr2(Phase*Phase*2,symmetry)*0.5+0.5
Yes, that`s what I got in mind. Now wrap things all together in an event, and I will be totally happy.This makes the frequency completely independent of event length and playback speed. It will strobe even when the show is paused over the event. But the frequency is now the actual strobe frequency no matter what you do.![]()
Just place an intensity event, set lower limit to 0, set type of animation to expression and paste those two lines into the expression box.