Skip to the content
4 layers959.7 × 110 mmTheLine parametric, the printed circuit board in 3D

TheLine parametric

inria-emeraude/syfala137

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

TheLine banner

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

text
.
├── 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.md

The 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 pcbnew is importable)

Tested on Linux only


Usage

Basic usage: change loudspeaker dimensions

bash
python autogenerate.py \
  --input TheLine.kicad_pcb \
  --output TheLine_custom.kicad_pcb \
  --speaker-width 30.0 \
  --speaker-spacing 2.5 \
  --speaker-height 95.0

This 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)

bash
python autogenerate.py \
  --input TheLine.kicad_pcb \
  --output TheLine_custom.kicad_pcb \
  --speaker-width 30.0 \
  --dry-run

The 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.

bash
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_pcb

The 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

ArgumentTypeDefaultDescription
--inputpath../TheLine.kicad_pcbInput template PCB file
--outputpathTheLine_parametric.kicad_pcbOutput PCB file
--speaker-widthfloat (mm)23.0Width of one loudspeaker/amplifier block
--speaker-spacingfloat (mm)2.0Gap between two adjacent blocks
--speaker-heightfloat (mm)90.0Board height (minimum 90 mm)
--custom-footprintpath(none)Path to a .kicad_pcb file whose first LS* footprint replaces every speaker footprint
--dry-runflagFalsePrint 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:

  1. Loads the template board and locates all LS* speaker footprints.
  2. Computes the desired X positions of each speaker based on the requested width and spacing, starting from the leftmost speaker's current position.
  3. 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.
  4. 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.
  5. The fixed solder-jumper strip (JP1–JP32, used for module addressing) is moved as a rigid group to stay flush with the right edge.
  6. Connectors J1/J2 (left side) and J3/J4 (right side) are repositioned to maintain their distance from the board edges.
  7. Power plane zones are redrawn to fill the new board outline.
  8. Copper zones are refilled.
  9. Speaker outlines are redrawn on Dwgs.User and F.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
QtyValueFootprintReferences
32Jumper_2_OpenJumper:SolderJumper-2_P1.3mm_Open_TrianglePad1.0x1.5mmJP1, JP2, JP10, JP11, JP12, JP13, JP14, JP15, JP16, JP17, JP18, JP19, JP20, JP21, JP22, JP23 +16
16220pCapacitor_SMD:C_0805_2012MetricC3, C4, C7, C8, C11, C12, C15, C16, C19, C20, C23, C24, C27, C28, C31, C32
16FerriteInductor_SMD:L_0805_2012MetricFB1, FB2, FB3, FB4, FB5, FB6, FB7, FB8, FB9, FB10, FB11, FB12, FB13, FB14, FB15, FB16
80.1uFCapacitor_SMD:C_0805_2012MetricC1, C5, C9, C13, C17, C21, C25, C29
810uFCapacitor_SMD:C_0805_2012MetricC2, C6, C10, C14, C18, C22, C26, C30
8MAX98357APackage_DFN_QFN:TQFN-16-1EP_3x3mm_P0.5mm_EP1.23x1.23mmU2, U3, U4, U5, U6, U7, U8, U9
8Speakeruserlib:ASB05708CO-LW100-RLS1, LS2, LS3, LS4, LS5, LS6, LS7, LS8
6DNPCapacitor_SMD:C_0805_2012MetricC34, C35, C36, C38, C39, C40
4, , ,
40Resistor_SMD:R_1206_3216MetricR11, R13, R15, R17
31MResistor_SMD:R_1206_3216MetricR4, R6, R8
3634kResistor_SMD:R_1206_3216MetricR3, R5, R7
3jumperJumper:SolderJumper-3_P1.3mm_Bridged12_Pad1.0x1.5mmJP100, JP101, JP102
2100kResistor_SMD:R_1206_3216MetricR1, R2
2100nCapacitor_SMD:C_0805_2012MetricC33, C37
210kResistor_SMD:R_1206_3216MetricR12, R16
222Resistor_SMD:R_1206_3216MetricR10, R14
2LMK1C1102PWRuserlib:SOP65P640X120-8NIC1, IC2
11kResistor_SMD:R_1206_3216MetricR9
1Conn_01x02Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_HorizontalJ4
1Conn_01x02Connector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_HorizontalJ1
1Conn_02x20_Odd_EvenConnector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_HorizontalJ2
1Conn_02x20_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x20_P2.54mm_HorizontalJ3
1LEDLED_SMD:LED_0603_1608MetricD1

The 135 most common of 175 parts.

More from inria-emeraude/syfala

3
  • 4 layers191.8 × 90 mmTheLine, the printed circuit board in 3D

    TheLine

    inria-emeraude/syfala

    A faust-to-fpga compiler toolchain

    135 parts137
  • 2 layers129 × 83.8 mmControllerBoard, the printed circuit board in 3D

    ControllerBoard

    inria-emeraude/syfala

    A faust-to-fpga compiler toolchain

    60 parts137
  • 2 layersSpeaker custom, the printed circuit board in 3D

    Speaker custom

    inria-emeraude/syfala

    A faust-to-fpga compiler toolchain

    6 parts137

Similar boards

  • 4 layers174 × 104 mmTd deflect, the printed circuit board in 3D

    Td deflect

    tdaede/td-crt

    tubes

    175 parts373
  • 4 layers73.7 × 72.4 mmVna control, the printed circuit board in 3D

    Vna control

    loxodes/vna

    Under development open hardware microwave vector network analyzer

    175 parts205
  • 4 layers179.5 × 128.5 mmSynth diy, the printed circuit board in 3D

    Synth diy

    tpcarlson/synth-diy

    Mostly Eurorack projects

    175 parts107
  • 4 layers84.2 × 118.3 mmHub20, the printed circuit board in 3D

    Hub20

    joshajohnson/Hub20

    Hub20 is a numpad with a bunch of features you never knew you needed.

    175 parts68
  • 4 layers115 × 85 mmDual adc usb, the printed circuit board in 3D

    Dual adc usb

    devbisme/ai-circuit-design-tests

    Tests of KiCad-related AI tools.

    175 parts10
  • 4 layers100 × 82 mmEMBARCADOS CURSO PCB, the printed circuit board in 3D

    EMBARCADOS CURSO PCB

    andremdaraujo/EMBARCADOS-CURSO-PCB

    Projeto desenvolvido durante o curso Projeto de PCB para Sistemas Embarcados

    175 parts9
  • 4 layers165 × 142.5 mmTestboard, the printed circuit board in 3D

    Testboard

    anthonydotmoe/68040pc

    A general purpose computer platform for retrocomputing enthusiasts

    175 parts9
  • 4 layers160 × 100.2 mmCsa ultracpu, the printed circuit board in 3D

    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.