(
{
	var modEnv = EnvGen.kr(Env.adsr(1, 0.5, 0.1, 0.5), doneAction: 2);
    var modulator = SinOsc.ar(50) * 500 * modEnv;
	var carrier = SinOsc.ar(200 + modulator) * 0.1;
    carrier
}.play;
)


(
{
	var dur = 1.5;
	var gaussEnv = EnvGen.kr(
		Env.new(
			levels: [30, 60, 0],
			times: [1, 3, 4],
			curves: [-4, -20]  // Negative curves for smoother, bell-shaped fade in/out
		),
		doneAction: 2
	);

	var modulator = SinOsc.ar(10) * 500 * gaussEnv;
	var carrier = SinOsc.ar(10 + modulator) * 0.1;
	carrier = RLPF.ar(carrier, 1e4, 0.1);
}.play;
)
