bpfSignal Generators:Linear and Exponential Generatorsbpfbpf
Break point function with linear interpolation
DescriptionPlugin opcode in emugens.
Break-point function with linear interpolation.
Syntaxky bpf kx, kx1, ky1, kx2, ..., kxn, kyniy bpf ix, ix1, iy1, ix2, ..., ixn, iynkys[] bpf kxs[], kx1, ky1, kx2, ..., kxn, kyniys[] bpf ixs[], ix1, iy1, ix2, ..., ixn, iynky bpf kx, kxs[], kys[]iy bpf ix, ixs[], iys[]ay bpf ax, kx1, ky1, kx2, ..., kxn, kynay bpf ax, kxs[], kys[]ky, kw bpf kx, kxs[], kys[], kws[]Performancekx -- Input value
kxn, kyn -- Defines a breakpoint. Can be
changed at krate, but all kxs must be sorted
The points (kx1, ky1), (kx2, ky2), etc, define a linearly
interpolated function. This function is evaluated at point
kx. This function extends to both -inf
and +inf, so if kx < kx1 then ky = ky1 and the same holds true
the other end.
These are equivalent:
ky bpf kx, 0, 0, 0.5, 10, 1.02, 200
itab ftgenonce 0, 0, -27, 0, 0, 50, 10, 102, 200
ky = tablei(limit(kx, 0, 1.02)*100, itab)
x values need to be sorted. Both x and y values can change but
x values must stay sorted.
Examples
Here is an example of the bpf opcode. It uses the file bpf.csd.
Example of the bpf opcode.See alsoLinear and Exponential GeneratorsCreditsBy: &nameeduardo; 2017