scalet — Scales the values in a range of a vector.
tab -- table for operation.
kmin, kmax -- target minimum and maximum values.
kleft, kright -- range of table to use, defaulting to 0 and size of the vector.
Here is an example of the scalet opcode. It uses the file scalet.csd.
Example 738. Example of the scalet opcode.
See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
<CsoundSynthesizer> <CsInstruments> instr 1 t1 init 10,1 t1[3] = 42 scalet t1, 0, 1 k1 sumtab t1 printk2 k1 endin </CsInstruments> <CsScore> i1 0 0.1 e </CsScore> </CsoundSynthesizer>