On Tuesday 21 February 2006 00:36, Tobiah wrote: > How do you envision this working through macros? Of course, macros are only an option if the number of oscillators is constant (otherwise you would need the dynamic instantiation of oscillators that is possible with user defined opcodes and subinstruments). The example below is uglier than the previous one, but is faster. sr = 48000 ksmps = 32 nchnls = 1 #define OSCIL1 # atmp oscils 1000, rnd(1000) + 100, 0 vincr aout, atmp # #define OSCIL10 # $OSCIL1 $OSCIL1 $OSCIL1 $OSCIL1 $OSCIL1 $OSCIL1 $OSCIL1 $OSCIL1 $OSCIL1 $OSCIL1 # #define OSCIL100 # $OSCIL10 $OSCIL10 $OSCIL10 $OSCIL10 $OSCIL10 $OSCIL10 $OSCIL10 $OSCIL10 $OSCIL10 $OSCIL10 # instr 1 aout = 0 $OSCIL100 out aout * 0.4 endin i 1 0 3 e