{
 "version": 2,
 "name": "Termite Mk II",
 "board": {
  "rows": 20,
  "cols": 39,
  "kind": "strip"
 },
 "cuts": [
  "2,13",
  "2,26",
  "3,18",
  "4,13",
  "4,26",
  "5,13",
  "5,26",
  "6,9",
  "6,17",
  "6,26",
  "7,9",
  "7,17",
  "7,26",
  "8,9",
  "8,15",
  "8,26",
  "9,9",
  "9,15",
  "9,26",
  "10,9",
  "10,16",
  "10,26",
  "11,9",
  "11,22",
  "11,26",
  "12,9",
  "12,22",
  "12,26",
  "13,9",
  "13,26",
  "14,26",
  "15,11",
  "16,12",
  "16,19"
 ],
 "parts": [
  {
   "id": "lk01",
   "kind": "link",
   "ref": "J1",
   "value": "",
   "pins": [
    [
     0,
     37
    ],
    [
     18,
     37
    ]
   ]
  },
  {
   "id": "lk02",
   "kind": "link",
   "ref": "J2",
   "value": "",
   "pins": [
    [
     1,
     36
    ],
    [
     19,
     36
    ]
   ]
  },
  {
   "id": "lk03",
   "kind": "link",
   "ref": "J3",
   "value": "",
   "pins": [
    [
     0,
     10
    ],
    [
     6,
     10
    ]
   ]
  },
  {
   "id": "lk04",
   "kind": "link",
   "ref": "J4",
   "value": "",
   "pins": [
    [
     13,
     3
    ],
    [
     19,
     3
    ]
   ]
  },
  {
   "id": "lk05",
   "kind": "link",
   "ref": "J5",
   "value": "",
   "pins": [
    [
     0,
     29
    ],
    [
     6,
     29
    ]
   ]
  },
  {
   "id": "lk06",
   "kind": "link",
   "ref": "J6",
   "value": "",
   "pins": [
    [
     7,
     27
    ],
    [
     12,
     27
    ]
   ]
  },
  {
   "id": "lk07",
   "kind": "link",
   "ref": "J7",
   "value": "",
   "pins": [
    [
     12,
     33
    ],
    [
     19,
     33
    ]
   ]
  },
  {
   "id": "lk08",
   "kind": "link",
   "ref": "J8",
   "value": "",
   "pins": [
    [
     7,
     18
    ],
    [
     4,
     18
    ]
   ]
  },
  {
   "id": "lk09",
   "kind": "link",
   "ref": "J9",
   "value": "",
   "pins": [
    [
     4,
     14
    ],
    [
     1,
     14
    ]
   ]
  },
  {
   "id": "lk10",
   "kind": "link",
   "ref": "J10",
   "value": "",
   "pins": [
    [
     12,
     24
    ],
    [
     19,
     24
    ]
   ]
  },
  {
   "id": "lk11",
   "kind": "link",
   "ref": "J11",
   "value": "",
   "pins": [
    [
     11,
     1
    ],
    [
     4,
     1
    ]
   ]
  },
  {
   "id": "lk12",
   "kind": "link",
   "ref": "J12",
   "value": "",
   "pins": [
    [
     4,
     12
    ],
    [
     8,
     12
    ]
   ]
  },
  {
   "id": "lk13",
   "kind": "link",
   "ref": "J13",
   "value": "",
   "pins": [
    [
     6,
     2
    ],
    [
     3,
     2
    ]
   ]
  },
  {
   "id": "lk14",
   "kind": "link",
   "ref": "J14",
   "value": "",
   "pins": [
    [
     3,
     17
    ],
    [
     8,
     17
    ]
   ]
  },
  {
   "id": "lk15",
   "kind": "link",
   "ref": "J15",
   "value": "",
   "pins": [
    [
     8,
     19
    ],
    [
     13,
     19
    ]
   ]
  },
  {
   "id": "lk16",
   "kind": "link",
   "ref": "J16",
   "value": "",
   "pins": [
    [
     7,
     16
    ],
    [
     9,
     16
    ]
   ]
  },
  {
   "id": "lk17",
   "kind": "link",
   "ref": "J17",
   "value": "",
   "pins": [
    [
     10,
     17
    ],
    [
     11,
     17
    ]
   ]
  },
  {
   "id": "lk18",
   "kind": "link",
   "ref": "J18",
   "value": "",
   "pins": [
    [
     12,
     2
    ],
    [
     15,
     2
    ]
   ]
  },
  {
   "id": "lk19",
   "kind": "link",
   "ref": "J19",
   "value": "",
   "pins": [
    [
     15,
     10
    ],
    [
     11,
     10
    ]
   ]
  },
  {
   "id": "lk20",
   "kind": "link",
   "ref": "J20",
   "value": "",
   "pins": [
    [
     9,
     29
    ],
    [
     11,
     29
    ]
   ]
  },
  {
   "id": "p01",
   "kind": "diode",
   "ref": "D10",
   "value": "1N4148",
   "pins": [
    [
     14,
     7
    ],
    [
     11,
     7
    ]
   ],
   "polarized": true
  },
  {
   "id": "p02",
   "kind": "diode",
   "ref": "D3",
   "value": "1N4148",
   "pins": [
    [
     14,
     12
    ],
    [
     9,
     12
    ]
   ],
   "polarized": true
  },
  {
   "id": "p03",
   "kind": "diode",
   "ref": "D6",
   "value": "1N4148",
   "pins": [
    [
     14,
     6
    ],
    [
     10,
     6
    ]
   ],
   "polarized": true
  },
  {
   "id": "p04",
   "kind": "res",
   "ref": "R2",
   "value": "1M",
   "pins": [
    [
     8,
     30
    ],
    [
     13,
     30
    ]
   ],
   "device": "fixed"
  },
  {
   "id": "p05",
   "kind": "res",
   "ref": "R11",
   "value": "1M",
   "pins": [
    [
     11,
     23
    ],
    [
     12,
     23
    ]
   ],
   "device": "fixed",
   "mount": "vertical"
  },
  {
   "id": "p06",
   "kind": "res",
   "ref": "R10",
   "value": "220k",
   "pins": [
    [
     9,
     13
    ],
    [
     16,
     13
    ]
   ],
   "device": "fixed"
  },
  {
   "id": "p07",
   "kind": "diode",
   "ref": "D7",
   "value": "1N4148",
   "pins": [
    [
     14,
     5
    ],
    [
     9,
     5
    ]
   ],
   "polarized": true
  },
  {
   "id": "p08",
   "kind": "diode",
   "ref": "D4",
   "value": "1N4148",
   "pins": [
    [
     14,
     14
    ],
    [
     10,
     14
    ]
   ],
   "polarized": true
  },
  {
   "id": "p09",
   "kind": "cap",
   "ref": "C1",
   "value": "1n",
   "pins": [
    [
     10,
     31
    ],
    [
     13,
     31
    ]
   ]
  },
  {
   "id": "p10",
   "kind": "diode",
   "ref": "D1",
   "value": "1N5817",
   "pins": [
    [
     2,
     8
    ],
    [
     0,
     8
    ]
   ],
   "polarized": true,
   "mount": "vertical"
  },
  {
   "id": "p11",
   "kind": "diode",
   "ref": "D8",
   "value": "1N4148",
   "pins": [
    [
     14,
     4
    ],
    [
     8,
     4
    ]
   ],
   "polarized": true
  },
  {
   "id": "p12",
   "kind": "res",
   "ref": "R1",
   "value": "10k",
   "pins": [
    [
     11,
     32
    ],
    [
     14,
     32
    ]
   ],
   "device": "fixed"
  },
  {
   "id": "p13",
   "kind": "res",
   "ref": "R9",
   "value": "100k",
   "pins": [
    [
     10,
     15
    ],
    [
     16,
     15
    ]
   ],
   "device": "fixed"
  },
  {
   "id": "p14",
   "kind": "diode",
   "ref": "D5",
   "value": "1N4148",
   "pins": [
    [
     14,
     16
    ],
    [
     11,
     16
    ]
   ],
   "polarized": true
  },
  {
   "id": "p15",
   "kind": "res",
   "ref": "R6",
   "value": "100k",
   "pins": [
    [
     5,
     15
    ],
    [
     4,
     15
    ]
   ],
   "device": "fixed",
   "mount": "vertical"
  },
  {
   "id": "p16",
   "kind": "res",
   "ref": "R7",
   "value": "10k",
   "pins": [
    [
     6,
     20
    ],
    [
     0,
     20
    ]
   ],
   "device": "fixed"
  },
  {
   "id": "p17",
   "kind": "cap",
   "ref": "C3",
   "value": "100n",
   "pins": [
    [
     18,
     12
    ],
    [
     19,
     12
    ]
   ]
  },
  {
   "id": "p18",
   "kind": "cap",
   "ref": "C2",
   "value": "100n",
   "pins": [
    [
     0,
     4
    ],
    [
     4,
     4
    ]
   ]
  },
  {
   "id": "p19",
   "kind": "diode",
   "ref": "D9",
   "value": "1N4148",
   "pins": [
    [
     14,
     17
    ],
    [
     12,
     17
    ]
   ],
   "polarized": true
  },
  {
   "id": "p20",
   "kind": "diode",
   "ref": "D2",
   "value": "1N4148",
   "pins": [
    [
     4,
     16
    ],
    [
     5,
     16
    ]
   ],
   "polarized": true,
   "mount": "vertical"
  },
  {
   "id": "p21",
   "kind": "res",
   "ref": "R3",
   "value": "100k",
   "pins": [
    [
     4,
     3
    ],
    [
     1,
     3
    ]
   ],
   "device": "fixed"
  },
  {
   "id": "p22",
   "kind": "res",
   "ref": "R12",
   "value": "10k",
   "pins": [
    [
     14,
     20
    ],
    [
     18,
     20
    ]
   ],
   "device": "fixed"
  },
  {
   "id": "p23",
   "kind": "res",
   "ref": "R5",
   "value": "100k",
   "pins": [
    [
     2,
     19
    ],
    [
     5,
     19
    ]
   ],
   "device": "fixed"
  },
  {
   "id": "p24",
   "kind": "res",
   "ref": "R8",
   "value": "47k",
   "pins": [
    [
     11,
     18
    ],
    [
     16,
     18
    ]
   ],
   "device": "fixed"
  },
  {
   "id": "p25",
   "kind": "res",
   "ref": "R4",
   "value": "2.2k",
   "pins": [
    [
     0,
     35
    ],
    [
     3,
     35
    ]
   ],
   "device": "fixed"
  },
  {
   "id": "p26",
   "kind": "ecap",
   "ref": "C4",
   "value": "10u",
   "pins": [
    [
     7,
     6
    ],
    [
     5,
     6
    ]
   ],
   "polarized": true
  },
  {
   "id": "p27",
   "kind": "trans",
   "ref": "Q1",
   "value": "2N3904",
   "pins": [
    [
     4,
     21
    ],
    [
     5,
     21
    ],
    [
     6,
     21
    ]
   ],
   "device": "2N3904"
  }
 ],
 "ics": [
  {
   "id": "ic1",
   "ref": "U1",
   "part": "CD4015",
   "pins": 16,
   "pin1": [
    6,
    8
   ],
   "span": 3
  },
  {
   "id": "ic2",
   "ref": "U2",
   "part": "CD4077",
   "pins": 14,
   "pin1": [
    6,
    25
   ],
   "span": 3
  }
 ],
 "pads": [
  {
   "id": "pd01",
   "label": "9V",
   "at": [
    2,
    0
   ],
   "to": "DC jack + lug (outer sleeve), through the power switch",
   "parts": [
    {
     "id": "SW2",
     "kind": "toggle",
     "lug": "C",
     "value": "SPST",
     "role": "power"
    }
   ]
  },
  {
   "id": "pd02",
   "label": "GND",
   "at": [
    1,
    0
   ],
   "to": "DC jack - lug (center pin)",
   "parts": [
    {
     "id": "DC1",
     "kind": "dc",
     "lug": "-",
     "value": "9 V"
    }
   ]
  },
  {
   "id": "pd03",
   "label": "GND_P",
   "at": [
    19,
    0
   ],
   "to": "panel grounds: every jack sleeve, VOLUME and CV DEPTH lug 1, LED short leg",
   "parts": [
    {
     "id": "JK1",
     "kind": "jack",
     "lug": "S",
     "value": "3.5 mm, switched",
     "role": "clock in"
    },
    {
     "id": "JK2",
     "kind": "jack",
     "lug": "S",
     "value": "1/4 in",
     "role": "out"
    },
    {
     "id": "JK3",
     "kind": "jack",
     "lug": "S",
     "value": "3.5 mm",
     "role": "CV out"
    },
    {
     "id": "POT2",
     "kind": "pot",
     "lug": "1",
     "value": "A100K",
     "role": "volume"
    },
    {
     "id": "POT3",
     "kind": "pot",
     "lug": "1",
     "value": "B100K",
     "role": "CV depth"
    },
    {
     "id": "LED1",
     "kind": "led",
     "lug": "K",
     "value": "power",
     "role": "power"
    }
   ]
  },
  {
   "id": "pd04",
   "label": "LED",
   "at": [
    3,
    38
   ],
   "to": "power LED long leg (short leg to GND_P)",
   "parts": [
    {
     "id": "LED1",
     "kind": "led",
     "lug": "A",
     "value": "power",
     "role": "power"
    }
   ]
  },
  {
   "id": "pd05",
   "label": "CLK_T",
   "at": [
    2,
    15
   ],
   "to": "CLOCK IN jack tip",
   "parts": [
    {
     "id": "JK1",
     "kind": "jack",
     "lug": "T",
     "value": "3.5 mm, switched",
     "role": "clock in"
    }
   ]
  },
  {
   "id": "pd06",
   "label": "CLK_SW",
   "at": [
    10,
    38
   ],
   "to": "CLOCK IN jack switch lug (touches the tip with nothing plugged in)",
   "parts": [
    {
     "id": "JK1",
     "kind": "jack",
     "lug": "N",
     "value": "3.5 mm, switched",
     "role": "clock in"
    }
   ]
  },
  {
   "id": "pd07",
   "label": "PITCH_W",
   "at": [
    13,
    38
   ],
   "to": "PITCH B500K wiper",
   "parts": [
    {
     "id": "POT1",
     "kind": "pot",
     "lug": "W",
     "value": "B500K",
     "role": "pitch"
    }
   ]
  },
  {
   "id": "pd08",
   "label": "PITCH_3",
   "at": [
    14,
    38
   ],
   "to": "PITCH B500K lug 3 (lug 1 unused)",
   "parts": [
    {
     "id": "POT1",
     "kind": "pot",
     "lug": "3",
     "value": "B500K",
     "role": "pitch"
    }
   ]
  },
  {
   "id": "pd09",
   "label": "PAT_C",
   "at": [
    11,
    24
   ],
   "to": "PATTERN toggle middle lug",
   "parts": [
    {
     "id": "SW1",
     "kind": "toggle",
     "lug": "C",
     "value": "SPDT",
     "role": "pattern: long, short"
    }
   ]
  },
  {
   "id": "pd10",
   "label": "PAT_L",
   "at": [
    12,
    20
   ],
   "to": "PATTERN toggle lug for LONG (127 steps)",
   "parts": [
    {
     "id": "SW1",
     "kind": "toggle",
     "lug": "1",
     "value": "SPDT",
     "role": "pattern: long, short"
    }
   ]
  },
  {
   "id": "pd11",
   "label": "PAT_S",
   "at": [
    10,
    0
   ],
   "to": "PATTERN toggle lug for SHORT (15 steps)",
   "parts": [
    {
     "id": "SW1",
     "kind": "toggle",
     "lug": "2",
     "value": "SPDT",
     "role": "pattern: long, short"
    }
   ]
  },
  {
   "id": "pd12",
   "label": "CV_3",
   "at": [
    16,
    17
   ],
   "to": "CV DEPTH B100K lug 3 (wiper to CV OUT jack tip, lug 1 to GND_P)",
   "parts": [
    {
     "id": "POT3",
     "kind": "pot",
     "lug": "3",
     "value": "B100K",
     "role": "CV depth"
    }
   ]
  },
  {
   "id": "pd13",
   "label": "VOL_3",
   "at": [
    5,
    0
   ],
   "to": "VOLUME A100K lug 3 (wiper to OUT jack tip, lug 1 to GND_P)",
   "parts": [
    {
     "id": "POT2",
     "kind": "pot",
     "lug": "3",
     "value": "A100K",
     "role": "volume"
    }
   ]
  }
 ],
 "netlist": "# Termite Mk II - the intended circuit, written from the design\n# CD4015 shift register and CD4077 XNOR, with a clock input, a pattern toggle, a 3-bit CV out and a lockup reset\nVIN:    @9V D1.A\nVCC:    D1.B C2.A C3.A R4.A R7.B R12.B U1.16 U2.14\nLEDA:   R4.B @LED\nGND:    @GND @GND_P U1.8 U2.2 U2.7 U2.8 U2.13 C3.B R3.B R6.B R11.B D2.A Q1.E\nRST:    U1.6 U1.14 C2.B R3.A D10.B\nONES:   R12.A D3.A D4.A D5.A D6.A D7.A D8.A D9.A D10.A\nN1:     U2.11 U2.9 R1.A\nOSC:    U2.12 R2.A\nJUNC:   R2.B C1.B @PITCH_W\nLUG:    R1.B @PITCH_3\nINT:    U2.10 C1.A @CLK_SW\nCLKIN:  R5.A @CLK_T\nBASE:   R5.B R6.A D2.B Q1.B\nCOL:    Q1.C R7.A U2.1\nCLK:    U2.3 U1.1 U1.9\nFB:     U2.4 U1.15\nTAP:    U2.6 R11.A @PAT_C\nQ1B:    U1.13 D3.B R10.A\nQ2B:    U1.12 D4.B R9.A\nQ3B:    U1.11 U1.7 U2.5 D5.B R8.A\nQ1A:    U1.5 D6.B @PAT_S\nQ2A:    U1.4 D7.B\nQ3A:    U1.3 D8.B\nQ4A:    U1.10 D9.B @PAT_L\nCV:     R8.B R9.B R10.B @CV_3\nQOUT:   U1.2 C4.A\nOUT:    C4.B @VOL_3\n",
 "offboard": [
  "POT2.W - JK2.T",
  "POT3.W - JK3.T",
  "DC1.+ - SW2.1"
 ]
}
