{
 "version": 2,
 "name": "Ladybug",
 "board": {
  "rows": 13,
  "cols": 17,
  "kind": "strip"
 },
 "cuts": [
  "0,6",
  "1,13",
  "2,3",
  "3,8",
  "4,2",
  "4,8",
  "4,14",
  "5,8",
  "5,14",
  "6,8",
  "7,2",
  "7,8",
  "8,8",
  "9,4",
  "9,8",
  "9,12",
  "11,13",
  "12,13"
 ],
 "parts": [
  {
   "id": "ef001",
   "kind": "link",
   "ref": "J1",
   "pins": [
    [
     8,
     12
    ],
    [
     11,
     12
    ]
   ]
  },
  {
   "id": "ef002",
   "kind": "link",
   "ref": "J2",
   "pins": [
    [
     7,
     5
    ],
    [
     11,
     5
    ]
   ]
  },
  {
   "id": "ef003",
   "kind": "link",
   "ref": "J3",
   "pins": [
    [
     0,
     8
    ],
    [
     11,
     8
    ]
   ]
  },
  {
   "id": "ef004",
   "kind": "link",
   "ref": "J4",
   "pins": [
    [
     0,
     2
    ],
    [
     1,
     2
    ]
   ]
  },
  {
   "id": "ef005",
   "kind": "link",
   "ref": "J5",
   "pins": [
    [
     6,
     12
    ],
    [
     1,
     12
    ]
   ]
  },
  {
   "id": "ef006",
   "kind": "link",
   "ref": "J6",
   "pins": [
    [
     2,
     2
    ],
    [
     5,
     2
    ]
   ]
  },
  {
   "id": "ef007",
   "kind": "link",
   "ref": "J7",
   "pins": [
    [
     6,
     5
    ],
    [
     2,
     5
    ]
   ]
  },
  {
   "id": "ef008",
   "kind": "link",
   "ref": "J8",
   "pins": [
    [
     9,
     6
    ],
    [
     8,
     6
    ]
   ]
  },
  {
   "id": "ef009",
   "kind": "link",
   "ref": "J9",
   "pins": [
    [
     3,
     14
    ],
    [
     7,
     14
    ]
   ]
  },
  {
   "id": "ef010",
   "kind": "link",
   "ref": "J10",
   "pins": [
    [
     5,
     16
    ],
    [
     9,
     16
    ]
   ]
  },
  {
   "id": "ef011",
   "kind": "link",
   "ref": "J11",
   "pins": [
    [
     11,
     14
    ],
    [
     10,
     14
    ]
   ]
  },
  {
   "kind": "res",
   "value": "1M",
   "device": "fixed",
   "id": "ef012",
   "ref": "R1",
   "pins": [
    [
     9,
     15
    ],
    [
     6,
     15
    ]
   ]
  },
  {
   "kind": "res",
   "value": "100k",
   "device": "fixed",
   "id": "ef013",
   "ref": "R2",
   "pins": [
    [
     9,
     13
    ],
    [
     5,
     13
    ]
   ]
  },
  {
   "kind": "res",
   "value": "22k",
   "device": "fixed",
   "id": "ef014",
   "ref": "R3",
   "pins": [
    [
     4,
     11
    ],
    [
     1,
     11
    ]
   ]
  },
  {
   "kind": "res",
   "value": "1k",
   "device": "fixed",
   "mount": "vertical",
   "id": "ef015",
   "ref": "R4",
   "pins": [
    [
     11,
     15
    ],
    [
     12,
     15
    ]
   ]
  },
  {
   "kind": "res",
   "value": "10k",
   "device": "fixed",
   "mount": "vertical",
   "id": "ef016",
   "ref": "R5",
   "pins": [
    [
     0,
     14
    ],
    [
     1,
     14
    ]
   ]
  },
  {
   "kind": "res",
   "value": "1k",
   "device": "fixed",
   "id": "ef017",
   "ref": "R6",
   "pins": [
    [
     8,
     2
    ],
    [
     12,
     2
    ]
   ]
  },
  {
   "kind": "res",
   "value": "1k",
   "device": "fixed",
   "mount": "vertical",
   "id": "ef018",
   "ref": "R7",
   "pins": [
    [
     8,
     0
    ],
    [
     7,
     0
    ]
   ]
  },
  {
   "kind": "res",
   "value": "100k",
   "device": "fixed",
   "id": "ef019",
   "ref": "R8",
   "pins": [
    [
     8,
     4
    ],
    [
     4,
     4
    ]
   ]
  },
  {
   "kind": "res",
   "value": "100k",
   "device": "fixed",
   "mount": "vertical",
   "id": "ef020",
   "ref": "R9",
   "pins": [
    [
     3,
     3
    ],
    [
     4,
     3
    ]
   ]
  },
  {
   "kind": "res",
   "value": "100k",
   "device": "fixed",
   "mount": "vertical",
   "id": "ef021",
   "ref": "R10",
   "pins": [
    [
     6,
     6
    ],
    [
     5,
     6
    ]
   ]
  },
  {
   "kind": "res",
   "value": "68k",
   "device": "fixed",
   "mount": "vertical",
   "id": "ef022",
   "ref": "R11",
   "pins": [
    [
     2,
     0
    ],
    [
     1,
     0
    ]
   ]
  },
  {
   "kind": "res",
   "value": "1k",
   "device": "fixed",
   "mount": "vertical",
   "id": "ef023",
   "ref": "R12",
   "pins": [
    [
     3,
     0
    ],
    [
     4,
     0
    ]
   ]
  },
  {
   "kind": "cap",
   "value": "100n",
   "device": "box film",
   "id": "ef024",
   "ref": "C1",
   "pins": [
    [
     4,
     15
    ],
    [
     5,
     15
    ]
   ]
  },
  {
   "kind": "cap",
   "value": "1u",
   "device": "box film",
   "id": "ef025",
   "ref": "C2",
   "pins": [
    [
     0,
     9
    ],
    [
     1,
     9
    ]
   ]
  },
  {
   "kind": "ecap",
   "value": "10u",
   "polarized": true,
   "id": "ef026",
   "ref": "C3",
   "pins": [
    [
     2,
     1
    ],
    [
     0,
     1
    ]
   ]
  },
  {
   "kind": "ecap",
   "value": "100u",
   "polarized": true,
   "id": "ef027",
   "ref": "C4",
   "pins": [
    [
     2,
     4
    ],
    [
     1,
     4
    ]
   ]
  },
  {
   "kind": "cap",
   "value": "100n",
   "device": "ceramic disc",
   "id": "ef028",
   "ref": "C5",
   "pins": [
    [
     2,
     6
    ],
    [
     1,
     6
    ]
   ]
  },
  {
   "kind": "diode",
   "value": "1N5817",
   "polarized": true,
   "device": "schottky",
   "mount": "vertical",
   "id": "ef029",
   "ref": "D1",
   "pins": [
    [
     6,
     11
    ],
    [
     5,
     11
    ]
   ]
  },
  {
   "kind": "diode",
   "value": "1N4148",
   "polarized": true,
   "device": "switching",
   "mount": "vertical",
   "id": "ef030",
   "ref": "D2",
   "pins": [
    [
     9,
     11
    ],
    [
     10,
     11
    ]
   ]
  },
  {
   "kind": "diode",
   "value": "1N5817",
   "polarized": true,
   "device": "schottky",
   "id": "ef031",
   "ref": "D3",
   "pins": [
    [
     9,
     3
    ],
    [
     6,
     3
    ]
   ]
  }
 ],
 "ics": [
  {
   "id": "efic1",
   "ref": "IC1",
   "part": "LM324",
   "pins": 14,
   "pin1": [
    3,
    7
   ],
   "span": 3,
   "autoCuts": [
    "3,8",
    "4,8",
    "5,8",
    "6,8",
    "7,8",
    "8,8",
    "9,8"
   ]
  }
 ],
 "pads": [
  {
   "id": "efp01",
   "label": "+9V",
   "at": [
    9,
    1
   ],
   "to": "the power switch, then the DC jack center pin or the battery's plus",
   "parts": [
    {
     "id": "SW1",
     "kind": "toggle",
     "lug": "C",
     "value": "SPST",
     "role": "power"
    }
   ]
  },
  {
   "id": "efp02",
   "label": "GND",
   "at": [
    0,
    5
   ],
   "to": "DC jack sleeve or the battery's minus, every jack sleeve, the LED cathode, RELEASE pot wiper",
   "parts": [
    {
     "id": "DC1",
     "kind": "dc",
     "lug": "-",
     "value": "9 V"
    },
    {
     "id": "JK1",
     "kind": "jack",
     "lug": "S",
     "value": "1/4 in",
     "role": "in"
    },
    {
     "id": "JK2",
     "kind": "jack",
     "lug": "S",
     "value": "1/4 in",
     "role": "thru"
    },
    {
     "id": "JK3",
     "kind": "jack",
     "lug": "S",
     "value": "1/4 in",
     "role": "CV out"
    },
    {
     "id": "JK4",
     "kind": "jack",
     "lug": "S",
     "value": "1/4 in",
     "role": "inverted CV out"
    },
    {
     "id": "LED1",
     "kind": "led",
     "lug": "K",
     "value": "indicator",
     "role": "CV"
    },
    {
     "id": "POT3",
     "kind": "pot",
     "lug": "W",
     "value": "B1M",
     "role": "release"
    }
   ]
  },
  {
   "id": "efp03",
   "label": "IN",
   "at": [
    4,
    16
   ],
   "to": "IN jack tip, and the THRU jack tip wired straight across it",
   "parts": [
    {
     "id": "JK1",
     "kind": "jack",
     "lug": "T",
     "value": "1/4 in",
     "role": "in"
    }
   ]
  },
  {
   "id": "efp04",
   "label": "SENS_A",
   "at": [
    4,
    13
   ],
   "to": "SENSITIVITY pot (A1M) lug 1. A variable resistor: lug 3 stays empty",
   "parts": [
    {
     "id": "POT1",
     "kind": "pot",
     "lug": "1",
     "value": "A1M",
     "role": "sensitivity"
    }
   ]
  },
  {
   "id": "efp05",
   "label": "SENS_W",
   "at": [
    3,
    15
   ],
   "to": "SENSITIVITY pot wiper. Turned down is x1, up is about x46",
   "parts": [
    {
     "id": "POT1",
     "kind": "pot",
     "lug": "W",
     "value": "A1M",
     "role": "sensitivity"
    }
   ]
  },
  {
   "id": "efp06",
   "label": "ATT_A",
   "at": [
    12,
    14
   ],
   "to": "ATTACK pot (B100K) lug 1",
   "parts": [
    {
     "id": "POT2",
     "kind": "pot",
     "lug": "1",
     "value": "B100K",
     "role": "attack"
    }
   ]
  },
  {
   "id": "efp07",
   "label": "ATT_W",
   "at": [
    11,
    7
   ],
   "to": "ATTACK pot wiper. Lug 3 stays empty",
   "parts": [
    {
     "id": "POT2",
     "kind": "pot",
     "lug": "W",
     "value": "B100K",
     "role": "attack"
    }
   ]
  },
  {
   "id": "efp08",
   "label": "REL_A",
   "at": [
    1,
    16
   ],
   "to": "RELEASE pot (B1M) lug 1; its wiper goes to GND, lug 3 stays empty",
   "parts": [
    {
     "id": "POT3",
     "kind": "pot",
     "lug": "1",
     "value": "B1M",
     "role": "release"
    }
   ]
  },
  {
   "id": "efp09",
   "label": "CV",
   "at": [
    12,
    12
   ],
   "to": "CV OUT jack tip, through 1k: 0 to about 7 V, rising with the sound",
   "parts": [
    {
     "id": "JK3",
     "kind": "jack",
     "lug": "T",
     "value": "1/4 in",
     "role": "CV out"
    }
   ]
  },
  {
   "id": "efp10",
   "label": "LED_A",
   "at": [
    7,
    1
   ],
   "to": "LED anode, the long leg; the cathode to GND",
   "parts": [
    {
     "id": "LED1",
     "kind": "led",
     "lug": "A",
     "value": "indicator",
     "role": "CV"
    }
   ]
  },
  {
   "id": "efp11",
   "label": "INV",
   "at": [
    4,
    1
   ],
   "to": "INV OUT jack tip, through 1k: about 7 V in silence, falling as the sound rises",
   "parts": [
    {
     "id": "JK4",
     "kind": "jack",
     "lug": "T",
     "value": "1/4 in",
     "role": "inverted CV out"
    }
   ]
  }
 ],
 "netlist": "# Ladybug - an envelope follower, written from the design\n# Audio in, CV out. One LM324 on 9 V.\n# D (12-14): sensitivity, x1 to about x46 with the SENS pot over R3 22k.\n#   On one supply the negative halves clip at 0 V: a half-wave rectifier\n#   for free. D1 keeps pin 12 from being dragged below ground.\n# C (8-10): the peak catcher. D2 inside the loop, so no diode drop is lost.\n#   ATTACK: R4 1k plus the pot into C2. RELEASE: R5 10k plus the pot.\n# B (5-7): the buffer, so the jack and the LED never drain C2.\n# A (1-3): the inverter. INV = 2 x VREF - CV, VREF about 3.5 V.\n# Attack about 1 to 100 ms, release about 10 ms to 1 s, CV 0 to about 7 V.\n\nRAW:   @+9V D3.A\nV+:    D3.B IC1.4 R10.A C4.A C5.A\nGND:   @GND IC1.11 R1.B R3.B R11.B C2.B C3.B C4.B C5.B D1.A\nIN:    @IN C1.A\nINC:   C1.B R1.A R2.A\nINP:   IC1.12 R2.B D1.B\nFB:    IC1.13 R3.A @SENS_A\nGAIN:  IC1.14 IC1.10 @SENS_W\nPKO:   IC1.8 D2.A\nPK:    D2.B R4.A\nATT:   R4.B @ATT_A\nHOLD:  IC1.9 IC1.5 C2.A R5.A @ATT_W\nREL:   R5.B @REL_A\nCV:    IC1.6 IC1.7 R6.A R7.A R8.A\nCV_J:  R6.B @CV\nLED:   R7.B @LED_A\nVREF:  IC1.3 R10.B R11.A C3.A\nINVN:  IC1.2 R8.B R9.B\nINV:   IC1.1 R9.A R12.A\nINV_J: R12.B @INV\n",
 "offboard": [
  "JK1.T - JK2.T",
  "DC1.+ - SW1.1"
 ]
}
