Copy link to clipboard
Copied
I want to draw the wave like this:
How can I draw this wave by using expression?
Copy link to clipboard
Copied
I got you partially there thanks to Wikipedia:
A function of the form should give a good fit.
The parameters can be computed from data. See also Fourier series and Fourier transform. -- Meni Rosenfeld 19:40, 25 March 2010 (UTC)
Any Expression or math gurus out there who can convert that into something AE can understand?
Copy link to clipboard
Copied
You'd just combine multiple functions and use one to define the inputs of the other. E.g. If you use Math.round(Math.sin(time), you get 1 and 0 as return values, which you can then use as multipliers for anotehr sinus to switch it on and off. Similarly, you can remap the output using linear() or custom formulas and equally use it as a multiplier. Lots of options, especialyl when you include other functions.
Mylenium
Copy link to clipboard
Copied
Why bother? If it is this regular, you can just as well draw it one, then repeat it using Motion Tile.
Mylenium
Copy link to clipboard
Copied
True enough! But it would be fun to do one just via expressions.