per Gemini: The "experiment by swapping" method is a cornerstone of Lunetta synthesis, treating logic chips like modular building blocks rather than fixed electronic components. Because most 4000-series CMOS chips share a standardized power pin layout, you can safely swap them into the same socket to radically alter the logic, rhythm, or timbre of a circuit without rewiring. ## The Swapping "Safety Zone" In a standard Lunetta setup, you are safe to swap chips if they share the same pin count and power rail positions. • 14-Pin Standard: V_{SS} (Ground) is Pin 7; V_{DD} (Positive) is Pin 14. • 16-Pin Standard: V_{SS} (Ground) is Pin 8; V_{DD} (Positive) is Pin 16. ## The "Hot-Swap" Compatibility List Below are the chips that can be most effectively swapped to change a circuit's behavior. ### Group A: The 14-Pin Logic Gates These are the most common "experimental" swaps. Swapping these into a socket wired for an oscillator (like a 40106) will change how that oscillator interacts with other signals. `Warning: Avoid swapping the 4049 and 4050 into standard sockets. Unlike almost every other 14-pin chip, their power pins are in non-standard locations (Pin 1 is V_{DD}), and they can actually short out your power supply if swapped blindly.` | Chip | Logic Type | Effect When Swapped | | ---------------- | ------------ | ------------------------------------------------------------------------------------ | | **40106 / 4069** | Hex Inverter | Standard square wave behavior; the baseline for oscillators. | | **4093** | Quad NAND | Oscillators that can be "muted" or synced by an external gate. | | **4011** | Quad NAND | Similar to 4093 but lacks "Schmitt-trigger" inputs, making it more glitchy. | | **4001** | Quad NOR | Logic is reversed; oscillators might stay "high" instead of "low" when gated. | | **4070** | Quad XOR | Used for frequency doubling; creates metallic, ring-modulated textures. | | **4081** | Quad AND | Only produces sound when two specific conditions are met; great for rhythmic gating. | | **4066** | Quad Switch | Acts as an analog gate; swaps logic for "on/off" signal routing. | ### Group B: The 16-Pin Clock & Dividers These are usually swapped to change rhythmic patterns or frequency divisions. They are generally not compatible with Group A sockets. | Chip | Function | Use Case | |---|---|---| | **4040** | 12-Stage Ripple Counter | Creates 12 different sub-octaves from one clock source. | | **4024** | 7-Stage Ripple Counter | A smaller version of the 4040; useful for tighter sub-divisions. | | **4017** | Decade Counter | Creates a sequential 1-to-10 rhythm; perfect for basic sequencers. | | **4022** | Octal Counter | Similar to 4017 but counts to 8; more "musical" for 4/4 time signatures. | | **4060** | Counter + Oscillator | Has a built-in oscillator; swapping it can turn a divider into a sound source. | ## Why Swapping Works (The Chaos Factor) When you swap a 40106 (1 input per gate) for a 4093 (2 inputs per gate), the second input pin on the 4093 becomes "floating" if not connected. In high-precision engineering, this is a mistake. In a Lunetta, a floating pin acts like an antenna, picking up electromagnetic noise or cross-talk from nearby oscillators, leading to chaotic, generative patterns that you could never intentionally program. `While the 4000-series is remarkably robust, truly "hot-swapping" (pulling the chip while the power is on) is risky. CMOS chips are sensitive to Static Discharge (ESD). It is always safer to flick the power switch, swap the chip, and power back up—it only takes a second and saves you from a "dead" chip.`