<CsoundSynthesizer><CsOptions></CsOptions><CsInstruments>sr=44100ksmps=128nchnls=20dbfs=1.0; Example file for lincos.csd/* lincos similar to cosseg, but with an explicit input for time lincos can be used ease-in / out any linear ramp ky lincos kx, ky0, ky1, kx0=0, kx1=1 iy lincos ix, iy0, iy1, ix0=0, ix1=1*/seed0instr1; Map a value within the range 1-3 to the range 0-10.iylincos1.5,0,10,1,3printiykxline1,p3,3kylincoskx,0,10,1,3printks"kx: %f ky: %f\n",1/kr,kx,kyendininstr2; lincos can be used to create amplitude or pitch envelopesktriginit0krnddust1,1ktrig=lineto(tirghold(krnd&~ktrig,0.5),1)kpitch=lincos:k(ktrig,60,61)a0oscili0.7,mtof(kpitch)kfadelincoslinsegr(0,1.5,1,1.5,0),0,1kcresclincosktrig,0.25,1outch1,a0*interp(kfade*kcresc)endin</CsInstruments><CsScore>i100.2i2020</CsScore></CsoundSynthesizer>