Archive: mega looping problem


25th November 2004 03:17 UTC

mega looping problem
Well i recently learned how to use megabuf&loops and all that stuff, but now it seems i've ran into a problem i can't figure out how to fix it.

My problem is that i've been trying to create a slow-motion scope a bit like el-vis's scopes in his latest pack.

The weirdest thing is that when i don't loop it, it works fine, but when i try to do it with loop() it just... doesn't work :cry:
I don't know what im doing wrong since in my mind it should work just fine :igor:

If someone could just help me out here, i've been banging my head to the keyboard for too long to realize the problem anymore.


25th November 2004 07:31 UTC

Nevermind anymore, TomyLobo already helped me over irc on this one ^^

Don't reply


25th November 2004 07:45 UTC

I'll look somemore into it latter, I dont see anything obvious wrong with it.


25th November 2004 09:05 UTC

you do realize that the man said not to reply, right? :)


25th November 2004 16:14 UTC

Yes, I notice it now, I didn't notice it when I was posting before :p
What was wrong with it?


25th November 2004 17:54 UTC

Well this is how i tried to do it:


loop(10,
exec2(assign(gp,gp+1),
assign(megabuf(gp),exec3(assign(bnd,bnd+1),
assign(g1,if(eql,getosc(bnd/n,0,0),g1)),
assign(g2,if(above(g1,g2),min(g1,g2+gs),max(g1,g2-gs)))))))


And well, basicly they g1 & g2 values needed to be made as megabuf, for example:


loop(10,
exec2(assign(gp,gp+2),
assign(megabuf(gp),exec3(assign(bnd,bnd+1),
assign(megabuf(gp),if(eql,getosc(bnd/n,0,0),megabuf(gp))),
assign(megabuf(gp+1),if(above(megabuf(gp),megabuf(gp+1)),min(megabuf(gp),megabuf(gp+1)+gs),max(megabuf(gp),megabuf(gp+1)-gs)))))))


Why they needed to be like this, i don't quite yet realize. I mean with my twisted logic, the 1st method should've worked "just fine" too, but it didn't. If you have a somewhat easy explanation, then id be glad to hear it :)

26th November 2004 07:22 UTC

Just add some min's and max's then sprinkle some voodoo magic dust like you always do... and try to make your variables one character instead of 2 to make it that little bit harder to read.


26th November 2004 08:45 UTC

PAK-9, how many times I have to say this: You're just jealous, because im more creative than you, bitch. :p

Anyway, i got it to work and it works like a charm! You'll see in my next pack! Bwahahahahahahah! *runs away screaming*


26th November 2004 15:33 UTC

Next pack!?

Weren't you one of the.,,. people.,.. that..,.... .,. ....


27th November 2004 15:17 UTC

The temptation to upload fabric 3 and shut you up for a month is almost overwhelming.


27th November 2004 17:31 UTC

... Tugg, change your sig.