KINSPIRATIONSoftware for the K2700Waitlist
KOACH · FUNs · Level 1 · FUN Essentials · Lesson 2 of 7

diode(a−b)

diodes= a - b, or 0 where that is negative

Passes how far a is above b and nothing below: a one-sided window. Only positive results matter: a negative result becomes 0, which limits a bipolar signal to unipolar values.

SEE IT MOVE

SCOPE · LAST 2 S
THE MAP · OUTPUT FOR EVERY a AND b
a0.00
b0.00
OUTPUT0.00

Computed in your browser with KINSPIRATION's FUN engine. Drag on the map to try any a and b.

WHAT TO KNOW

INPUTS

a: the signal (AttVel, KeyNum, an LFO, a controller); b: the threshold, usually a constant (OFF passes a's positive half).

OUTPUT RANGE

0..+1 (never negative; at most 1 - b for a unipolar a)

USE IT FOR

Velocity layers that grow only above a velocity, as a depth control: AttVel - 0.44 opens from velocity 57 (418 factory slots), 0.84 from 108, 0.50 from 65, 0.26 from 34; key-range modulation above a split: KeyNum - 0.56 from C5, 0.58 from D#5, 0.64 from A#5; only the upper half of an LFO (b OFF).

WATCH OUT

The output is not rescaled: AttVel - 0.84 reaches only 0.16 at velocity 127, so the destination needs a large depth. A velocity v passes a constant c when v > 128 × c, a key k when k > 128 × c (C4 = 0.47, C5 = 0.5625).

IN THE FACTORY PROGRAMS

In 1894 FUN slots of the factory programs: FUN2 814, FUN3 612, FUN1 415, FUN4 49, GFUN2 3, GFUN4 1. GFUN2 and GFUN4 are the program's global FUNs.

MOST USED INPUTS (a, b)

AttVel, 0.44418
KeyNum, 0.56203
AttVel, 0.84187
AttVel, 0.50178
KeyNum, 0.58166
AttVel, 0.26116
AttVel, 0.7680
AttVel, 0.5870

WHERE THE OUTPUT GOES

AMP src2 depth control655
2POLE LOWPASS LP Frq src2 depth control306
2POLE LOWPASS LP Res src2 depth control207
FUN4 b165
PARA MID Mid Lvl src2 depth control124
PARA MID Mid Frq src2 depth control104
AMP src1103
HIGH SHELF Shlf Amp src2 depth control59

FIND THEM ON YOUR K2700

673 1-Note PowerRifflayer 1 · FUN3 · a KeyNum, b 0.64
675 Lucid Brasslayer 1 · FUN1 · a KeyNum, b 0.58
676 Brass Fanfarelayer 1 · FUN1 · a KeyNum, b 0.58
677 Fast Orch Brasslayer 1 · FUN1 · a KeyNum, b 0.58
678 Epic Low Brasslayer 8 · FUN2 · a AttVel, b 0.26
679 Low Brass Choralelayer 1 · FUN2 · a AttVel, b 0.26

HOW TO ON YOUR K2700 · 721 Lead Clarinet

Lead Clarinet uses diode(a-b) on its layer 1: see it, then where it goes.

  1. In Program mode choose 721 Lead Clarinet (KEYPAD, 721, ENTER).

    Program mode with 721 Lead Clarinet
  2. Press EDIT, then MORE and LFO+. The FUN2 row: Input a AttVel, Input b 0.44, Function diode(a-b).

    The LFO+ page of 721 Lead Clarinet, layer 1, the cursor on Function (diode(a-b))
  3. Where it goes: MORE, DSP MOD. On the LP Frq row FUN2 is the Depth Ctl: it sets Source 2's (ENV2) depth from -1100 ct to 4000 ct.

    The DSP MOD page of 721 Lead Clarinet, layer 1, the cursor on Depth Ctl (FUN2)
  4. Play softly, then hard: the LP Frq row follows FUN2.

  5. Press EXIT and answer NO to leave the factory program as it was, or SAVE to keep your version on a USER ID.