// two sine wavse, with moving frequencies, using Xline and Mix // the sine waves start at random freqs. // lp ( // give the variables some reasonable names var level, env, dur; level = 0.5; dur = 10; // Linen: attack time, sustain time, release time, sustain level env = Env.linen( 0.1* dur, 0.7 * dur, 0.2 * dur, level); play({ s = FSinOsc.ar(XLine.ar (1000.200.rand, 1000.200.rand, dur ), EnvGen.kr (env,1, 0, 0.8) ); t = FSinOsc.ar(XLine.ar (1000.200.rand, 1000.200.rand, dur ), EnvGen.kr (env,1, 0, 0.8) ); Mix.ar ( [s, t]) }) )