Skip to content
Forum Archive

mega looping problem

11 posts

Tuggummi#

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 😢
I don't know what im doing wrong since in my mind it should work just fine 🧟

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.
S-uper_T-oast#
Yes, I notice it now, I didn't notice it when I was posting before 😛
What was wrong with it?
Tuggummi#
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 🙂
PAK-9#
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.
Tuggummi#
PAK-9, how many times I have to say this: You're just jealous, because im more creative than you, bitch. 😛

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