

TheLine parametric
A faust-to-fpga compiler toolchain
- Size
- 959.7 × 110 mm
- Copper layers
- 4
- Thickness
- 1.6 mm
- Parts
- 175
- Nets
- 141
- Pads
- 591
- Tracks, vias
- 1,169, 150
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 9.0 (file 20241229)
- Created
- 18 Feb 2022
- Updated
- 3 Jun 2026
Overview
TheLine parametric is an open-source printed circuit board by inria-emeraude, from the inria-emeraude/syfala repository on GitHub. It is a 4-layer board of 959.7 × 110 mm with 175 parts on 141 nets, routed with 1,169 tracks and 150 vias.
Its parts include 40 capacitors, 17 resistors, 10 ICs, 4 connectors and 1 diode.
README
PCB/TheLine/README.md
The LINE
This directory contains the KiCad source files for The LINE, a modular 8-channel loudspeaker PCB module, along with autogenerate.py, a parametric generation script that can adapt the board layout to different loudspeaker dimensions and spacings without any manual PCB editing.
Background
The LINE is an open-source, modular loudspeaker array platform designed for spatial audio research and artistic deployment. Each PCB module integrates eight MAX98357A digital audio amplifiers (DAC + Class-D power stage in one chip) and eight PCB-mounted loudspeakers. Modules are daisy-chained via identical 2×20 connectors and driven by an FPGA system-on-module (ALINX AC7020C, Xilinx Zynq-7000). A single FPGA can control up to three independent arrays of 32 modules each, for a theoretical maximum of 768 channels.
The PCB design is intentionally built around a repeated, identical functional block (one per loudspeaker) which makes the layout amenable to parametric generation. By specifying the loudspeaker width, height, and inter-speaker gap, autogenerate.py regenerates the full board layout automatically, repositioning all components, routing, zones, and silkscreen elements accordingly.
This approach was used, for instance, to adapt the board to the Tang Band W2-2136S loudspeakers used at the EMPAC/CCRMA installation at Stanford University, without modifying any schematic or routing logic by hand.
The full system is described in:
Maxime Popoff, Romain Michon, Pierre Cochard, and Tanguy Risset.
Embedded, Modular, and Affordable High-Density Loudspeaker Arrays.
NIME '26, London, UK.
Repository Structure
.
├── TheLine.kicad_pcb # Template PCB (8-channel, default loudspeaker)
├── TheLine.kicad_sch # KiCad schematic
├── TheLine.kicad_pro # KiCad project file
├── autogenerate.py # Parametric PCB generation script
├── gerbers/ # Pre-generated Gerber files for the default design
└── README.mdThe autogenerate.py script reads TheLine.kicad_pcb as its template and writes a new .kicad_pcb file with the updated geometry. It does not modify the schematic or the netlist.
Dependencies
The script uses the KiCad Python scripting API (pcbnew), which is bundled with KiCad 7 and later. It does not require any additional Python packages.
Requirements:
- KiCad 7.x or 8.x installed
- Python 3.8+ (the one bundled with KiCad, or a system install where
pcbnewis importable)
Tested on Linux only
Usage
Basic usage: change loudspeaker dimensions
python autogenerate.py \
--input TheLine.kicad_pcb \
--output TheLine_custom.kicad_pcb \
--speaker-width 30.0 \
--speaker-spacing 2.5 \
--speaker-height 95.0This generates a new board where each loudspeaker slot is 30 mm wide, separated by 2.5 mm gaps, with a board height of 95 mm. All component placements, tracks, copper zones, and silkscreen elements are repositioned accordingly.
Preview without writing (dry run)
python autogenerate.py \
--input TheLine.kicad_pcb \
--output TheLine_custom.kicad_pcb \
--speaker-width 30.0 \
--dry-runThe script prints a summary of the computed geometry without writing any file. Useful for checking dimensions before committing.
Replace the loudspeaker footprint
If your loudspeakers have a different pad layout than the default ASB05708CO-LW100-R, you can supply a custom footprint from a separate .kicad_pcb file. The script will extract the first LS*-referenced footprint from that file and substitute it for every speaker position on the generated board.
python autogenerate.py \
--input TheLine.kicad_pcb \
--output TheLine_custom.kicad_pcb \
--speaker-width 38.0 \
--speaker-spacing 3.0 \
--custom-footprint my_speaker_footprint.kicad_pcbThe custom footprint board should contain exactly one footprint with a reference matching LS\d+ (e.g. LS1). Pad net assignments are inferred automatically by pad number from the original design.
Command-line Reference
| Argument | Type | Default | Description |
|---|---|---|---|
--input | path | ../TheLine.kicad_pcb | Input template PCB file |
--output | path | TheLine_parametric.kicad_pcb | Output PCB file |
--speaker-width | float (mm) | 23.0 | Width of one loudspeaker/amplifier block |
--speaker-spacing | float (mm) | 2.0 | Gap between two adjacent blocks |
--speaker-height | float (mm) | 90.0 | Board height (minimum 90 mm) |
--custom-footprint | path | (none) | Path to a .kicad_pcb file whose first LS* footprint replaces every speaker footprint |
--dry-run | flag | False | Print geometry summary without writing output |
How the Script Works
The script operates entirely through the pcbnew API and does not touch the KiCad file as raw text (except for the footprint substitution step, which uses S-expression parsing for UUID deduplication).
At a high level, it:
- Loads the template board and locates all
LS*speaker footprints. - Computes the desired X positions of each speaker based on the requested width and spacing, starting from the leftmost speaker's current position.
- For each component, track, copper zone, and silkscreen element in the parametric channel band, it determines which loudspeaker "column" it belongs to and applies the corresponding X offset.
- Long horizontal bus tracks (the shared I²S/TDM signal bus) are stretched or compressed at both ends independently to span the full new board width.
- The fixed solder-jumper strip (JP1–JP32, used for module addressing) is moved as a rigid group to stay flush with the right edge.
- Connectors J1/J2 (left side) and J3/J4 (right side) are repositioned to maintain their distance from the board edges.
- Power plane zones are redrawn to fill the new board outline.
- Copper zones are refilled.
- Speaker outlines are redrawn on
Dwgs.UserandF.Silkscreen.
The script preserves clock buffering connections and all net assignments. It does not regenerate routing for the signal fanout; those sections are moved rigidly.
PCB Manufacturing Notes
The design targets standard 2-layer PCB manufacturing (1.6 mm FR4). The default board is approximately 190 × 90 mm. Most prototype PCB services (JLCPCB, PCBWay, etc.) can manufacture this size at low cost.
The maximum board size supported by this parametric approach, given typical manufacturer panel limits, is around 600 × 700 mm (which would accommodate a minimum loudspeaker spacing of approximately 75 mm in the most constrained configuration).
Pre-generated Gerber files for the default 8-speaker, 24 mm pitch configuration are in the gerbers/ directory.
Parts
175| Qty | Value | Footprint | References |
|---|---|---|---|
| 32 | Jumper_2_Open | Jumper:SolderJumper-2_P1.3mm_Open_TrianglePad1.0x1.5mm | JP1, JP2, JP10, JP11, JP12, JP13, JP14, JP15, JP16, JP17, JP18, JP19, JP20, JP21, JP22, JP23 +16 |
| 16 | 220p | Capacitor_SMD:C_0805_2012Metric | C3, C4, C7, C8, C11, C12, C15, C16, C19, C20, C23, C24, C27, C28, C31, C32 |
| 16 | Ferrite | Inductor_SMD:L_0805_2012Metric | FB1, FB2, FB3, FB4, FB5, FB6, FB7, FB8, FB9, FB10, FB11, FB12, FB13, FB14, FB15, FB16 |
| 8 | 0.1uF | Capacitor_SMD:C_0805_2012Metric | C1, C5, C9, C13, C17, C21, C25, C29 |
| 8 | 10uF | Capacitor_SMD:C_0805_2012Metric | C2, C6, C10, C14, C18, C22, C26, C30 |
| 8 | MAX98357A | Package_DFN_QFN:TQFN-16-1EP_3x3mm_P0.5mm_EP1.23x1.23mm | U2, U3, U4, U5, U6, U7, U8, U9 |
| 8 | Speaker | userlib:ASB05708CO-LW100-R | LS1, LS2, LS3, LS4, LS5, LS6, LS7, LS8 |
| 6 | DNP | Capacitor_SMD:C_0805_2012Metric | C34, C35, C36, C38, C39, C40 |
| 4 | , , , | ||
| 4 | 0 | Resistor_SMD:R_1206_3216Metric | R11, R13, R15, R17 |
| 3 | 1M | Resistor_SMD:R_1206_3216Metric | R4, R6, R8 |
| 3 | 634k | Resistor_SMD:R_1206_3216Metric | R3, R5, R7 |
| 3 | jumper | Jumper:SolderJumper-3_P1.3mm_Bridged12_Pad1.0x1.5mm | JP100, JP101, JP102 |
| 2 | 100k | Resistor_SMD:R_1206_3216Metric | R1, R2 |
| 2 | 100n | Capacitor_SMD:C_0805_2012Metric | C33, C37 |
| 2 | 10k | Resistor_SMD:R_1206_3216Metric | R12, R16 |
| 2 | 22 | Resistor_SMD:R_1206_3216Metric | R10, R14 |
| 2 | LMK1C1102PWR | userlib:SOP65P640X120-8N | IC1, IC2 |
| 1 | 1k | Resistor_SMD:R_1206_3216Metric | R9 |
| 1 | Conn_01x02 | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Horizontal | J4 |
| 1 | Conn_01x02 | Connector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_Horizontal | J1 |
| 1 | Conn_02x20_Odd_Even | Connector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_Horizontal | J2 |
| 1 | Conn_02x20_Odd_Even | Connector_PinHeader_2.54mm:PinHeader_2x20_P2.54mm_Horizontal | J3 |
| 1 | LED | LED_SMD:LED_0603_1608Metric | D1 |
The 135 most common of 175 parts.
More from inria-emeraude/syfala
3- 4 layers191.8 × 90 mm

- 2 layers129 × 83.8 mm

- 2 layers

Similar boards
- 4 layers174 × 104 mm

- 4 layers73.7 × 72.4 mm

- 4 layers179.5 × 128.5 mm

- 4 layers84.2 × 118.3 mm

Hub20
joshajohnson/Hub20
Hub20 is a numpad with a bunch of features you never knew you needed.
175 parts68 - 4 layers115 × 85 mm

- 4 layers100 × 82 mm

EMBARCADOS CURSO PCB
andremdaraujo/EMBARCADOS-CURSO-PCB
Projeto desenvolvido durante o curso Projeto de PCB para Sistemas Embarcados
175 parts9 - 4 layers165 × 142.5 mm

Testboard
anthonydotmoe/68040pc
A general purpose computer platform for retrocomputing enthusiasts
175 parts9 - 4 layers160 × 100.2 mm

Csa ultracpu
fachat/csa_ultracpu
The CPU board for a 17MHz Colour-PET clone with modern interfaces
175 parts9GPL-3.0
Questions
How big is the TheLine parametric PCB?
It measures 959.7 × 110 mm and has 4 copper layers, 1.6 mm thick.
What parts does the TheLine parametric use?
175 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the TheLine parametric KiCad files?
From the inria-emeraude/syfala repository on GitHub, at the commit this page was made from: the board is PCB/TheLine/script/TheLine_parametric.kicad_pcb and its schematic PCB/TheLine/TheLine.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the TheLine parametric design in my own project?
Its repository states no licence, so its author keeps all rights: ask inria-emeraude before reusing the design.