Trying to Resurrect an old Waveshape/Particle

Discussion forum for G-Force users

Moderators: BTT, andy55, b.dwall, juxtiphi

Post Reply
User avatar
JayPro
Posts: 738
Joined: Sat May 01, 2004 10:51 pm
Location: Huntington Station, Long Island, New York

Trying to Resurrect an old Waveshape/Particle

Post by JayPro »

It's Called Ted's Byte Snakes and it doesn't seem to do what I remember it did when I first saw it.

Here's the code w/ perhaps deprecated funcs (i.e seed(?)):



//Byte Snakes
Stps="fft(s)*6 * rnd(34)",
Aspc=0,

A0="rnd( 1 )", // seed function randomizer
A1=".02 + rnd ( .06 )", // box width
A2="t",
A3="rnd( 3 ) + 1", // speed

B0="flor( ( t - a2 ) * a3 )",
B1="1 - sqwv( 3 * ( b0 - b2 ) )", // movement timer
B2="b0", // last frame memory
B3="b3 + b1", // counter
B4="b3 % 2", // axis shifter
B5="seed( b3 + a0 )",
B6="sgn( rnd( 2 ) - 1 ) * a1 * b1", // movement tensor
B7="b7 + b6 * b4", // iterative X
B8="b8 + b6 * ( 1 - b4 )", // iterative Y

C0="flor( s * ( NUM_S_STEPS - 1 ) )", // convert steps to integers
C1="( b3 + c0 ) % 2", // axis shifter
C2="seed( b3 + c0 + a0 )",
C3="sgn( rnd( 2 ) - 1 ) * a1", // movement factor
C4="( c4 + c3 * c1 )* clip( c0 )", // iterative X
C5="( c5 + c3 * ( 1 - c1 ) ) * clip( c0 )", // iterative Y
C6="1.8 * trwv(b7+c4 + .45) - .9",
C7="1.8 * trwv(b8+c5 + .45) - .9",

X0=" c6",
Y0=" c7",
X1="-c6",
Y1=" c7",
X2=" c6",
Y2="-c7",
X3="-c6",
Y3="-c7",

Pen=".5 + .5 * s",

ConB=0,

LWdt="2"

Meta="reactive=1, detail=2, density=3, morphable=3",

Vers=270

// From Ted



It's supposed to react; but how to activate it is the question. Please advise; TYVM.
"God is syntax."

User avatar
BTT
Administrator
Posts: 2162
Joined: Sun Jun 20, 2010 9:34 pm
Location: United Kingdom

Post by BTT »

Hello JayPro

The colour used for the config is impossible to read.
.
Regards BTT

ColorMap Creator for G-Force and Aeon --- SoundSpectrum Forum Administrator.

User avatar
DanPin
Posts: 161
Joined: Tue Mar 15, 2016 8:43 pm
Location: Los Angeles County, California

Post by DanPin »

BTT wrote:The colour used for the config is impossible to read.
You're right; since this is an accessibility issue, you can't quite see it properly. Here, BTT, here's a better formatting of the text:

Code: Select all

//Byte Snakes 
Stps="fft(s)*6 * rnd(34)", 
Aspc=0, 

A0="rnd( 1 )", // seed function randomizer 
A1=".02 + rnd ( .06 )", // box width 
A2="t", 
A3="rnd( 3 ) + 1", // speed 

B0="flor( ( t - a2 ) * a3 )", 
B1="1 - sqwv( 3 * ( b0 - b2 ) )", // movement timer 
B2="b0", // last frame memory 
B3="b3 + b1", // counter 
B4="b3 % 2", // axis shifter 
B5="seed( b3 + a0 )", 
B6="sgn( rnd( 2 ) - 1 ) * a1 * b1", // movement tensor 
B7="b7 + b6 * b4", // iterative X 
B8="b8 + b6 * ( 1 - b4 )", // iterative Y 

C0="flor( s * ( NUM_S_STEPS - 1 ) )", // convert steps to integers 
C1="( b3 + c0 ) % 2", // axis shifter 
C2="seed( b3 + c0 + a0 )", 
C3="sgn( rnd( 2 ) - 1 ) * a1", // movement factor 
C4="( c4 + c3 * c1 )* clip( c0 )", // iterative X 
C5="( c5 + c3 * ( 1 - c1 ) ) * clip( c0 )", // iterative Y 
C6="1.8 * trwv(b7+c4 + .45) - .9", 
C7="1.8 * trwv(b8+c5 + .45) - .9", 

X0=" c6", 
Y0=" c7", 
X1="-c6", 
Y1=" c7", 
X2=" c6", 
Y2="-c7", 
X3="-c6", 
Y3="-c7", 

Pen=".5 + .5 * s", 

ConB=0, 

LWdt="2" 

Meta="reactive=1, detail=2, density=3, morphable=3", 

Vers=270 

// From Ted 
Just for your pleasure.

jerohm
Senior Member
Posts: 419
Joined: Fri Jan 09, 2009 5:19 pm

Post by jerohm »

Since I don't know what you remember... I will only suggest a GUESS.
>>> REMOVE ALL the comma's EXCEPT contained within the "META=..." statement. <<<
(See how nicely the BLUE shows up! :P )

The COMMA can act as a statement delimiter (in lieu of the more commonly used 'NEWLINE'), allowing you to put more than one statement on a single line. You 'may' find lines like:

Code: Select all

X0=" c6", Y0=" c7" 
in MY code, when I want to logically group certain operations. Although it is cute, there ARE reasons to avoid such notation. The use of the COMMA, in your posted code, is VALID (but superfluous) for the most part, and most likely is getting CONFUSED on the lines that also have trailing comments, i.e.,

Code: Select all

A0="rnd&#40; 1 &#41;", // seed function randomizer
Alternate possible solutions (that I DON'T recommend) would be to:
a) delete ALL the trailing comments, i.e.,

Code: Select all

A0="rnd&#40; 1 &#41;",
b) delete the COMMA ONLY on lines with trailing comments, i.e.,

Code: Select all

A0="rnd&#40; 1 &#41;" // seed function randomizer 
These solutions should technically work, but are poor form and confusing...
:roll:

update:
after playing with your post, the changes I suggested don't seem to change its output... You can bump up Lwdt and/or set ConB=1 and see if it gives you any clue. It generally seems way too busy.

This line:

Code: Select all

Stps="fft&#40;s&#41;*6 * rnd&#40;34&#41;"
is particularly squirrelly and I would assume nonsense IF Ted's name wasn't listed as the author

User avatar
BTT
Administrator
Posts: 2162
Joined: Sun Jun 20, 2010 9:34 pm
Location: United Kingdom

Post by BTT »

Hello DanPin

Thanks very much for your post, really appreciated.
.
Regards BTT

ColorMap Creator for G-Force and Aeon --- SoundSpectrum Forum Administrator.

Post Reply