// Rate returns an Input at the specified rate.
// This method panics if rate is not a supported value.
18168
func (in In) Rate(rate int8) Input {
	CheckRate(rate)
	(&in).defaults()

	var (
		uin = NewInput("In", rate, 0, in.NumChannels, in.Bus)
		ins = make([]Input, in.NumChannels)
	)
	for i := range ins {
		ins[i] = uin
	}
	return Multi(ins...)
}
758128
func (tg TGrains) Rate(rate int8) Input {
	CheckRate(rate)
	(&tg).defaults()
	return NewInput("TGrains", rate, 0, tg.NumChannels, tg.Trigger, tg.BufNum, tg.GRate, tg.CenterPos, tg.Dur, tg.Pan, tg.Amp, tg.Interp)
}
515019
func (t Trig) Rate(rate int8) Input {
	CheckRate(rate)
	(&t).defaults()
	return NewInput("Trig", rate, 0, 1, t.In, t.Dur)
}
479665
func (r Resonz) Rate(rate int8) Input {
	CheckRate(rate)
	(&r).defaults()
	return NewInput("Resonz", rate, 0, 1, r.In, r.Freq, r.BWR)
}
1207391
func (m Median) Rate(rate int8) Input {
	CheckRate(rate)
	if m.In == nil {
		panic("Median requires an input signal")
	}
	(&m).defaults()
	return NewInput("Median", rate, 0, 1, m.Length, m.In)
}
180200
func (lftri LFTri) Rate(rate int8) Input {
	CheckRate(rate)
	(&lftri).defaults()
	return NewInput("LFTri", rate, 0, 1, lftri.Freq, lftri.Iphase)
}
992342
func (pan PanAz) Rate(rate int8) Input {
	CheckRate(rate)
	if pan.In == nil {
		panic("PanAz requires an input")
	}
	(&pan).defaults()
	return NewInput("PanAz", rate, 0, pan.NumChans, pan.In, pan.Pos, pan.Level, pan.Width, pan.Orientation)

}
1246380
func (sel Select) Rate(rate int8) Input {
	CheckRate(rate)
	inputs := append([]Input{sel.Which}, sel.Inputs...)
	return NewInput("Select", rate, 0, 1, inputs...)
}
380866
func (l LFClipNoise) Rate(rate int8) Input {
	CheckRate(rate)
	(&l).defaults()
	return NewInput("LFClipNoise", rate, 0, 1, l.Freq)
}
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)))
}
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)
}
1005216
func (envgen EnvGen) Rate(rate int8) Input {
	CheckRate(rate)
	(&envgen).defaults()
	ins := []Input{
		envgen.Gate,
		envgen.LevelScale,
		envgen.LevelBias,
		envgen.TimeScale,
		C(float32(envgen.Done)),
	}
	ins = append(ins, envgen.Env.Inputs()...)
	return NewInput("EnvGen", rate, 0, 1, ins...)
}
172243
func (hasher Hasher) Rate(rate int8) Input {
	CheckRate(rate)
	if hasher.In == nil {
		panic("Hasher requires an input signal")
	}
	return NewInput("Hasher", rate, 0, 1, hasher.In)
}
949715
func (o OneZero) Rate(rate int8) Input {
	CheckRate(rate)
	(&o).defaults()
	return NewInput("OneZero", rate, 0, 1, o.In, o.Coeff)
}
274146
func (fft FFT) Rate(rate int8) Input {
	CheckRate(rate)
	if fft.Buffer == nil {
		panic("FFT expects Buffer to not be nil")
	}
	if fft.In == nil {
		panic("FFT expects In to not be nil")
	}
	(&fft).defaults()
	return NewInput("FFT", rate, 0, 1, fft.Buffer, fft.In, fft.Hop, fft.WinType, fft.Active, fft.WinSize)
}
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)
}
137628
func (pc PulseCount) Rate(rate int8) Input {
	CheckRate(rate)
	(&pc).defaults()
	return NewInput("PulseCount", rate, 0, 1, pc.Trig, pc.Reset)
}