// Rate5 returns the five-minute moving average rate of events per second.
963872
func (m *StandardMeter) Rate5() float64 {
	m.lock.RLock()
	rate5 := m.snapshot.rate5
	m.lock.RUnlock()
	return rate5
}
282517
func (decay Decay) Rate(rate int8) Input {
	CheckRate(rate)
	if decay.In == nil {
		panic("Decay expects In to not be nil")
	}
	(&decay).defaults()
	return NewInput("Decay", rate, 0, 1, decay.In, decay.Decay)
}
151265
func (o VOsc3) Rate(rate int8) Input {
	CheckRate(rate)
	if o.BufNum == nil {
		panic("VOsc3 requires a buffer number")
	}
	(&o).defaults()
	return NewInput("VOsc3", rate, 0, 1, o.BufNum, o.Freq1, o.Freq2, o.Freq3)
}
1168085
func (vs VarSaw) Rate(rate int8) Input {
	CheckRate(rate)
	(&vs).defaults()
	return NewInput("VarSaw", rate, 0, 1, vs.Freq, vs.IPhase, vs.Width)
}
208279
func (dust2 Dust2) Rate(rate int8) Input {
	CheckRate(rate)
	(&dust2).defaults()
	return NewInput("Dust2", rate, 0, 1, dust2.Density)
}
778732
func (sweep Sweep) Rate(rate int8) Input {
	CheckRate(rate)
	(&sweep).defaults()
	return NewInput("Sweep", rate, 0, 1, sweep.Trig, sweep.RaiseRate)
}
1367588
func (m *CountMeter) Rate15() float64 {
	m.mtx.RLock()
	defer m.mtx.RUnlock()
	return m.rate15()
}
173891
func (sin SinOsc) Rate(rate int8) Input {
	CheckRate(rate)
	(&sin).defaults()
	return NewInput("SinOsc", rate, 0, 1, sin.Freq, sin.Phase)
}
1161191
func (rlpf RLPF) Rate(rate int8) Input {
	if rlpf.In == nil {
		panic("RLPF expects In to not be nil")
	}
	CheckRate(rate)
	(&rlpf).defaults()
	return NewInput("RLPF", rate, 0, 1, rlpf.In, rlpf.Freq, rlpf.RQ)
}
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)
}
1033234
func (apc Allpass) Rate(rate int8) Input {
	if apc.In == nil {
		panic("Allpass expects In to not be nil")
	}
	CheckRate(rate)

	(&apc).defaults()

	switch apc.Interpolation {
	case InterpolationNone:
		return NewInput("AllpassN", rate, 0, 1, apc.In, apc.MaxDelayTime, apc.DelayTime, apc.DecayTime)
	case InterpolationLinear:
		return NewInput("AllpassL", rate, 0, 1, apc.In, apc.MaxDelayTime, apc.DelayTime, apc.DecayTime)
	case InterpolationCubic:
		return NewInput("AllpassC", rate, 0, 1, apc.In, apc.MaxDelayTime, apc.DelayTime, apc.DecayTime)
	default:
		panic(fmt.Errorf("invalid interpolation: %d", apc.Interpolation))
	}
}
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)
}
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)
}
451946
func (v Vibrato) Rate(rate int8) Input {
	CheckRate(rate)
	(&v).defaults()
	return NewInput("Vibrato", rate, 0, 1, v.Freq, v.Speed, v.Depth, v.Delay, v.Onset, v.RateVariation, v.DepthVariation, v.IPhase)
}
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)
}
1098108
func (hpf HPF) Rate(rate int8) Input {
	if hpf.In == nil {
		panic("HPF expects In to not be nil")
	}
	CheckRate(rate)
	(&hpf).defaults()
	return NewInput("HPF", rate, 0, 1, hpf.In, hpf.Freq)
}
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...)
}