Skip to content

chipap-dev/luthier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Luthier - Fret Calculator

A Django app that calculates precise fret positions for string instruments and generates print-ready, 1:1 scale PDF plans.

No database. No configuration. Clone and run.


What it does

  • Calculates fret distances from nut using the 17.817 constant
  • Supports any scale length and fret count
  • Shows an SVG diagram of the fretboard
  • Generates downloadable PDFs: fret table, single-page plan, multi-page plan
  • Presets for Guitar, Electric, Bass and Ukulele
  • Metric (mm) and imperial (inches) units

Run locally

git clone https://github.com/chipap-dev/luthier.git
cd luthier
python -m venv venv
source venv/bin/activate      # venv\Scripts\activate on Windows
pip install -r requirements_luthier.txt
python manage_luthier.py runserver

Open http://localhost:8000


Architecture

No ORM, no migrations, no database.

luthier/
├── services/
│   ├── calculo.py     # fret distance calculation (17.817 constant)
│   ├── diagrama.py    # SVG fretboard data
│   ├── pdf.py         # PDF generation with ReportLab
│   └── landing.py     # view context
├── views/
│   ├── index.py       # main calculator view
│   └── pdf.py         # PDF download endpoint
└── forms/             # LuthierForm (scale length, fret count, unit)

Stack

Python 3.11 · Django 4.2 · ReportLab · Whitenoise · Vanilla JS · CSS custom properties


Built by Claudia Cáceres · LinkedIn · Buenos Aires, Argentina

About

Fret position calculator for string instruments, with 1:1 scale printable PDF plans.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages