// Rate creates a new ugen at a specific rate.
// If rate is an unsupported value this method will cause a runtime panic.
515019
func (t Trig) Rate(rate int8) Input {
	CheckRate(rate)
	(&t).defaults()
	return NewInput("Trig", rate, 0, 1, t.In, t.Dur)
}
80786
func (fso FSinOsc) Rate(rate int8) Input {
	CheckRate(rate)
	(&fso).defaults()
	return NewInput("FSinOsc", rate, 0, 1, fso.Freq, fso.Phase)
}
880582
func (gfm GrainFM) Rate(rate int8) Input {
	CheckRate(rate)
	(&gfm).defaults()
	return NewInput("GrainFM", rate, 0, gfm.NumChannels, gfm.Trigger, gfm.Dur, gfm.CarFreq, gfm.ModFreq, gfm.ModIndex, gfm.Pan, gfm.EnvBuf, gfm.MaxGrains)
}
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)))
}
1246990
func (fv FreeVerb) Rate(rate int8) Input {
	CheckRate(rate)
	if fv.In == nil {
		panic("FreeVerb expects In to not be nil")
	}
	(&fv).defaults()
	return NewInput("FreeVerb", rate, 0, 1, fv.In, fv.Mix, fv.Room, fv.Damp)
}
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)
}
720532
func (g GrainSin) Rate(rate int8) Input {
	CheckRate(rate)
	(&g).defaults()

	in := NewInput("GrainSin", rate, 0, 1, g.Trigger, g.Dur, g.Freq, g.Pan, g.EnvBuf, g.MaxGrains)
	if g.NumChannels == 1 {
		return in
	}
	mult := make([]Input, g.NumChannels)
	for i := range mult {
		mult[i] = in
	}
	return Multi(mult...)
}
1336096
func (brf BRF) Rate(rate int8) Input {
	if brf.In == nil {
		panic("BRF expects In to not be nil")
	}
	CheckRate(rate)
	(&brf).defaults()
	return NewInput("BRF", rate, 0, 1, brf.In, brf.Freq, brf.RQ)
}
618856
func (l LinPan2) Rate(rate int8) Input {
	CheckRate(rate)
	if l.In == nil {
		panic("LinPan2 requires an input signal")
	}
	(&l).defaults()
	in := NewInput("LinPan2", rate, 0, 1, l.In, l.Pos, l.Level)
	return Multi(in, in)
}
479665
func (r Resonz) Rate(rate int8) Input {
	CheckRate(rate)
	(&r).defaults()
	return NewInput("Resonz", rate, 0, 1, r.In, r.Freq, r.BWR)
}
1246380
func (sel Select) Rate(rate int8) Input {
	CheckRate(rate)
	inputs := append([]Input{sel.Which}, sel.Inputs...)
	return NewInput("Select", rate, 0, 1, inputs...)
}
58803
func (o VOsc) Rate(rate int8) Input {
	CheckRate(rate)
	if o.BufNum == nil {
		panic("VOsc requires a buffer number")
	}
	(&o).defaults()
	return NewInput("VOsc", rate, 0, 1, o.BufNum, o.Freq, o.Phase)
}
326276
func (lfnoise LFNoise) Rate(rate int8) Input {
	CheckRate(rate)
	(&lfnoise).defaults()
	switch lfnoise.Interpolation {
	case NoiseStep:
		return NewInput("LFNoise0", rate, 0, 1, lfnoise.Freq)
	case NoiseLinear:
		return NewInput("LFNoise1", rate, 0, 1, lfnoise.Freq)
	case NoiseQuadratic:
		return NewInput("LFNoise2", rate, 0, 1, lfnoise.Freq)
	default:
		panic(fmt.Sprintf("Unknown Interpolation value for LFNoise: %d", lfnoise.Interpolation))
	}
}
462907
func (out OffsetOut) Rate(rate int8) Input {
	CheckRate(rate)
	return NewInput("OffsetOut", rate, 0, 1, out.Bus, out.Channels)
}
120545
func (g Gendy3) Rate(rate int8) Input {
	CheckRate(rate)
	(&g).defaults()
	return NewInput("Gendy3", rate, 0, 1, g.AmpDist, g.DurDist, g.ADParam, g.DDParam, g.Freq, g.AmpScale, g.DurScale, g.InitCPs, g.KNum)
}
366414
func (decay2 Decay2) Rate(rate int8) Input {
	CheckRate(rate)
	if decay2.In == nil {
		panic("Decay2 expects In to not be nil")
	}
	(&decay2).defaults()
	return NewInput("Decay2", rate, 0, 1, decay2.In, decay2.Attack, decay2.Decay)
}
60416
func (p PSinGrain) Rate(rate int8) Input {
	CheckRate(rate)
	(&p).defaults()
	return NewInput("PSinGrain", rate, 0, 1, p.Freq, p.Dur, p.Amp)
}