Sometimes, you need to use more than the first radian of i to properly display a graph. To display many graphs (circles,
for example) you need at least 2*pi to display the full graph. Thus, one must multiply i by 2*3.14159 to display all of your
graph. However, by defining another variable, you can prevent having to type out '2*3.14159' every time you need to
expand i into many radians.
Thus, we can do this:
Init
|
n = 100;
|
On Beat
|
 
|
Per Frame
|
 
|
Per Point
|
r = i*2*3.14159;
x = cos(r)*(1+.3*v);
y = sin(r)*(1+.3*v);
|
The Breakdown
- n = 100
- This sets the number of points to define at 100. The higher n is, the more detailed the scope is.
- r = i*2*3.14159;
- Here's how we simplify the equation. By defining r as i times 2 pi, one only needs to type it once, and simply use r
instead of i in the definitions of x and y.
- x = cos(r)*(1+.3*v);
y = sin(r)*(1+.3*v);
- Here, the cos(r) and sin(r) make the graph a parametric circle, while the (1+.3*v) causes the scope to vibrate from the
center, rather than only with respect to the x or y axis.
Other Info
Along with this superscope module, don't forget to use a fadeout or blur from the +>Trans menu, or you'll end up with
little more than a blob.
|
|