This approach will not work for a couple of reasons. One is the that the "if" is at i-time, so will loop four times during initialization. Second is that you did use an arate loop, you still can not run an oscillator like this. What you will end up doing is effectively running a single oscillator at x times the normal rate. I assume you want x number of different distinct oscilators. The only way to do that in Csound is to use a recursive User-Defined Opcode. steven On 8/30/07, ad80a wrote: > > I'm trying to do what I call an "accumulator" (I don't know if this the right > definition...in english). > In few words I would like to create an oscillator > > ares oscili iamp, ifrequ, ifn > > and the create a sort of loop that changes parameters of this oscillator and > mix it with prevoius instances... > index = 0 > amix init 0 > loop: > > asig oscili iamp, ifrequ, ifn > > amix = asig + amix > > index = index +1 > ifrequ = ifrequ + 100 > if index < 4 goto loop > > outs amix, amix > > It does NOT work right. I'm sure there is an error of procedure...first > thing, I don't know if it's possible to do this sort of loop...it's > implemented in adsynt opcode help, but non with signals...it creates an > array of numbers... > I well know that with adsynt I can do this sort of additive synthesis, but > what I want to do can improve the creation of arrays of signal generators, > filters for algoritmic crations of complex patterns... > Can csound help me in this way or my approach to the language is wrong? > Thank you very very much > > > -- > View this message in context: http://www.nabble.com/Accumulator-tf4356703.html#a12415417 > Sent from the Csound - General mailing list archive at Nabble.com. > > -- > Send bugs reports to this list. > To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk >