// Rate creates a new ugen at a specific rate.
// If rate is an unsupported value this method will cause a runtime panic.
778732
func (sweep Sweep) Rate(rate int8) Input {
	CheckRate(rate)
	(&sweep).defaults()
	return NewInput("Sweep", rate, 0, 1, sweep.Trig, sweep.RaiseRate)
}
726508
func (l LFGauss) Rate(rate int8) Input {
	CheckRate(rate)
	(&l).defaults()
	done := C(float32(l.Done))
	return NewInput("LFGauss", rate, 0, 1, l.Duration, l.Width, l.IPhase, l.Loop, done)
}
702947
func (t ToggleFF) Rate(rate int8) Input {
	CheckRate(rate)
	(&t).defaults()
	return NewInput("ToggleFF", rate, 0, 1, t.Trig)
}
841906
func (s Slew) Rate(rate int8) Input {
	CheckRate(rate)
	(&s).defaults()
	return NewInput("Slew", rate, 0, 1, s.In, s.Up, s.Dn)
}
60416
func (p PSinGrain) Rate(rate int8) Input {
	CheckRate(rate)
	(&p).defaults()
	return NewInput("PSinGrain", rate, 0, 1, p.Freq, p.Dur, p.Amp)
}
363132
func (x LinXFade2) Rate(rate int8) Input {
	CheckRate(rate)
	(&x).defaults()
	// Not sure why Level doesn't show up in sclang's synthdefs that use LinXFade2
	return NewInput("LinXFade2", rate, 0, 1, x.A, x.B, x.Pan)
}
718453
func (ds DetectSilence) Rate(rate int8) Input {
	if ds.In == nil {
		panic("DetectSilence expects In to not be nil")
	}
	CheckRate(rate)
	(&ds).defaults()
	return NewInput("DetectSilence", rate, 0, 1, ds.In, ds.Amp, ds.Time, C(float32(ds.Done)))
}
390276
func (gv GVerb) Rate(rate int8) Input {
	CheckRate(rate)
	if gv.In == nil {
		panic("GVerb expects In to not be nil")
	}
	(&gv).defaults()
	return NewInput("GVerb", rate, 0, 2, gv.In, gv.RoomSize, gv.RevTime, gv.Damping, gv.InputBW, gv.Spread, gv.DryLevel, gv.EarlyRefLevel, gv.TailLevel, gv.MaxRoomSize)
}
755252
func (s Silent) Rate(rate int8) Input {
	CheckRate(rate)
	(&s).defaults()
	return NewInput("DC", rate, 0, s.NumChannels, C(0))
}
933908
func (g Gendy1) Rate(rate int8) Input {
	CheckRate(rate)
	g.rate = rate
	(&g).defaults()
	return NewInput("Gendy1", rate, 0, 1, g.AmpDist, g.DurDist, g.ADParam, g.DDParam, g.MinFreq, g.MaxFreq, g.AmpScale, g.DurScale, g.InitCPs, g.KNum)
}
77892
func (xline XLine) Rate(rate int8) Input {
	CheckRate(rate)
	(&xline).defaults()
	return NewInput("XLine", rate, 0, 1, xline.Start, xline.End, xline.Dur, C(float32(xline.Done)))
}
806562
func (out Out) Rate(rate int8) Ugen {
	CheckRate(rate)
	u := NewUgen("Out", rate, 0, 1, out.Bus, out.Channels)
	return *u
}
630937
func (m MouseY) Rate(rate int8) Input {
	CheckRate(rate)
	(&m).defaults()
	return NewInput("MouseY", rate, 0, 1, m.Min, m.Max, m.Warp, m.Lag)
}
760709
func (r RunningSum) Rate(rate int8) Input {
	CheckRate(rate)
	if r.In == nil {
		panic("RunningSum requires an input signal")
	}
	(&r).defaults()
	return NewInput("RunningSum", rate, 0, 1, r.In, r.NumSamp)
}
949715
func (o OneZero) Rate(rate int8) Input {
	CheckRate(rate)
	(&o).defaults()
	return NewInput("OneZero", rate, 0, 1, o.In, o.Coeff)
}
1275880
func (l Lag) Rate(rate int8) Input {
	CheckRate(rate)
	if l.In == nil {
		panic("Lag requires an input signal")
	}
	return NewInput("Lag", rate, 0, 1, l.In, l.LagTime)
}
1299188
func (brown BrownNoise) Rate(rate int8) Input {
	CheckRate(rate)
	return NewInput("BrownNoise", rate, 0, 1)
}