Maybe try opening a .wav with the sample picker,
SM doesn't load MP3s.
hmm, it sounds like it is wired up properly.
I'll try in fruity myself







Moderators: electrogear, exonerate

alphanimal wrote:Here's the code! Enjoy!
- Code: Select all
streamin l;
streamin r;
streamout pos;
float speed=0.5; //speed multiplier
float lvl, x, px, d; //Level, x, previous x, slope
hop(16)
{
//x = ratio between L and R (gives tangens of disk position)
x = r!=0 & (l/r);
//calculate slope/direction (difference between previous and current value)
d = (x-px);
//ignore slope if it is steeper than 3, to compensate for jumps in tangens
d = (d<3 & (d > -3)) & d;
//calculate level
lvl = l*l+r*r;
//intergate position
pos = pos + lvl * speed * ( 1 - (d<0) & (2));
//store value for use as previous value in next cycle
px = x;
}
Was a long way to go compared to the amound of code produced
Without comments that would have been like 2 hours of work for every line...
Users browsing this forum: No registered users and 3 guests