sccode = """
SynthDef.new(\\pink, {
	|amp=1, sus=1, pan=0, freq=440, vib=0, fmod=0, rate=0, bus=0|
	var osc, env;
	freq = In.kr(bus, 1);
	freq = [freq, freq+fmod];
	//osc = PinkNoise.ar() + PulseDPW(freq, freq, mul: 0.2);
	osc = PinkNoise.ar();
	env = EnvGen.ar(Env.new([1, 1], [1, 1]), doneAction: 0);
	osc = (osc * env * amp);
	osc = Mix(osc) * 0.25;
	osc = Pan2.ar(osc, pan);
	ReplaceOut.ar(bus, osc)
	},
metadata: (
	credit: "CrashServer",
	modified_by: "Jens Meisner",
	description: "",
	category: \\category,
	tags: [\\tag]
	)
).add;

"""

synth = SCInstrument(
    shortname="pink",
    fullname="Pink",
    description="Pink synth",
    code=sccode,
    arguments={}
)
