// binOpClip2 clips input wave a to +/- b
972615
func binOpClip2(rate int8, x, y Input, numOutputs int) Input {
	CheckRate(rate)
	return NewInput(BinOpUgenName, rate, BinOpClip2, numOutputs, x, y)
}
586173
func (pm *PickleMachine) opcode_BININT1() error {
	var v uint8
	err := pm.readBinaryInto(&v, false)
	if err != nil {
		return err
	}
	pm.push(int64(v))
	return nil
}
707365
func (ls Layers) Clip(box orb.Bound) {
	for _, l := range ls {
		l.Clip(box)
	}
}
507419
func binOpExcess(rate int8, x, y Input, numOutputs int) Input {
	CheckRate(rate)
	return NewInput(BinOpUgenName, rate, BinOpExcess, numOutputs, x, y)
}
627999
func (u *Ugen) HypotApx(val Input) Input {
	return binOpHypotApx(u.Rate, u, val, u.NumOutputs)
}
1276983
func binOpGTE(rate int8, x, y Input, numOutputs int) Input {
	CheckRate(rate)
	return NewInput(BinOpUgenName, rate, BinOpGTE, numOutputs, x, y)
}
1092984
func binOpSqrdif(rate int8, x, y Input, numOutputs int) Input {
	CheckRate(rate)
	return NewInput(BinOpUgenName, rate, BinOpSqrdif, numOutputs, x, y)
}
69733
func (l *Layer) Clip(box orb.Bound) {
	for _, f := range l.Features {
		g := clip.Geometry(box, f.Geometry)
		f.Geometry = g
	}
}
1302658
func binOpTrunc(rate int8, x, y Input, numOutputs int) Input {
	CheckRate(rate)
	return NewInput(BinOpUgenName, rate, BinOpTrunc, numOutputs, x, y)
}
869868
func (as ArraySpec) Clip2(val Input) Input {
	return as.proc(func(i Input) Input {
		return i.Clip2(val)
	})
}
613982
func (c C) Clip2(val Input) Input {
	return c.Max(val.Neg()).Min(val)
}
1036066
func (f *File) GetClipping(clip bool) bool {
	return f.genericBoolBoolCmd(C.SFC_GET_CLIPPING, false)
}
1102955
func (ins Inputs) SoftClip() Input {
	clipped := make([]Input, len(ins))
	for i, in := range ins {
		clipped[i] = in.SoftClip()
	}
	return Inputs(clipped)
}
617187
func (m *Matrix) Clip(start, end float32) *Matrix {
	newMat := make([][]float32, m.Rows)
	var wg sync.WaitGroup
	for y := 0; y < int(m.Rows); y++ {
		wg.Add(1)
		go m.clip(newMat, y, start, end, &wg)
	}
	wg.Wait()
	return NewMatrix(newMat)
}
838390
func (u *Ugen) Pow(val Input) Input {
	return binOpPow(u.Rate, u, val, u.NumOutputs)
}
1028738
func (u *Ugen) Amclip(val Input) Input {
	return binOpAmclip(u.Rate, u, val, u.NumOutputs)
}
735448
func waitOpenClipboard() error {
	started := time.Now()
	limit := started.Add(time.Second)
	var r uintptr
	var err error
	for time.Now().Before(limit) {
		r, _, err = openClipboard.Call(0)
		if r != 0 {
			return nil
		}
		time.Sleep(time.Millisecond)
	}
	return err
}