Hi, You might also want to take a look at vmultv, which if I understand correctly should avoid looping within csound. It should be more efficient: http://www.csounds.com/manual/html/vmultv.html http://www.csounds.com/manual/html/vmultv_i.html Cheers, Andres On 10/15/07, peiman wrote: > > Hi Again, > > I take that back! it's working beautifully. The glitches where due to my > system freezing (as a result of a previous csd I had rendered). I restarted > and the loop operation is working just find. Thanks for your helps again. > > Best > Peiman > > Tim Mortimer wrote: > > > > theres also vmultv opcode, but i've never used it. > > > > otherwise as alex said 'd be the way i'd go. > > > > ibins init 1024 > > > > kindex = 0 > > > > binloop: > > > > kval1 table kindex, 1 > > kval2 table kindex, 2 > > tablew kval1*kval2, kindex, 3 > > > > kindex = kindex+1 > > > > if kindex < ibins kgoto binloop > > > > then apply to the fsig on each kpass..... > > > > > > Alex Weiss-3 wrote: > >> > >> You could obtain the values of both tables for a given index with the > >> table opcode or a similar opcode (depending on whether you want > >> interpolated values or not), perform all necessary calculations, and > >> use tablew to write the results back into a table. Like so (I used k- > >> rate variables, i-rate should work as well): > >> > >> kval1 table kindex, 1 > >> kval2 table kindex, 2 > >> tablew kval1*kval2, kindex, 3 ; save it to a third table > >> > >> If you want to process the whole table that way, you could use a loop. > >> > >> - Alex > >> > >> > >> On Oct 15, 2007, at 1:22 PM, peiman wrote: > >> > >>> > >>> Dear list, > >>> > >>> I was wandering if there is a way to multiply one ftable with another: > >>> assuming that two tables have exactly the same size and number of > >>> index > >>> entries (there is a value for every index), is there a way to > >>> multiply the > >>> value of each index in the first table with the corresponding > >>> indexes in a > >>> second table? This is to make an instrument that can read fsig data > >>> into a > >>> table and scale each bin individually using a second table. Is this > >>> possible? If not could an opcode be implemented easily? > >>> > >>> Many Thanks > >>> Peiman > >>> -- > >>> View this message in context: http://www.nabble.com/multiplying- > >>> values-in-an-ftables-tf4626540.html#a13210855 > >>> 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 > >> > >> -- > >> Send bugs reports to this list. > >> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk > >> > >> > > > > > > -- > View this message in context: http://www.nabble.com/multiplying-values-in-an-ftables-tf4626540.html#a13214332 > 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 >